How to open the electrical switch again after it closed

4 ビュー (過去 30 日間)
SmaShBr0ther
SmaShBr0ther 2017 年 11 月 14 日
回答済み: Sabin 2025 年 6 月 4 日
Hello everybody,
I'm currently modeling a simple eltrical circuit and I've implemented the switch from the electrical foundaiton library. Since the Switch should close and open over time I used the Clock block as the physical signal input. In practise the switch should close after 1 sec. and reopen again after 1.5 sec. The problem I have now is that the switch closes when the time reaches 1 but i don't see any possibility to open the switch again after 1.5 sec.
Is there any solution to my problem?
  2 件のコメント
Birdman
Birdman 2017 年 11 月 14 日
Can you share your Simulink model(export to R2017a)?
SmaShBr0ther
SmaShBr0ther 2017 年 11 月 14 日
This is just for testing purposes. I already went ahead and implemented a IF-Block to get the needed results. I just feel like there must be a better way.

サインインしてコメントする。

回答 (1 件)

Sabin
Sabin 2025 年 6 月 4 日
You can use a Pulse Generator block to control the switch: https://mathworks.com/help/simulink/slref/pulsegenerator.html

カテゴリ

Help Center および File ExchangeSources についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by