Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Is there a switch that turns on for a specific amount of time? That does not depend on the system's time.

1 回表示 (過去 30 日間)
Aggariyo Wanagiri
Aggariyo Wanagiri 2019 年 5 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Is there a switch in simulink that turns on for a specific amount of time then turns off?
For context, the orange signal runs for 1s and I want a switch that becomes closed when the orange signal < 0 and sends a yellow signal that runs for 0.5s.
Capture.PNG
Currently i am using a switch that is set at >= -0.00001 (when the signal goes down)
Captur22e.PNG
Any help is appreciated! Thank you!
  1 件のコメント
Aggariyo Wanagiri
Aggariyo Wanagiri 2019 年 5 月 15 日
I need something like this. This is done manually with a pulse generator, but I need it to be conditioned by the orange signal.
Capture3.PNG

回答 (1 件)

Shivam Sardana
Shivam Sardana 2019 年 5 月 23 日
An Enabled Subsystem can be used for your requirement. Whenever orange signal is less than 0, an enabler can be set to 1 and send to Enabled Subsystem which runs yellow signal for 0.5 seconds. A Switch can be used whose output can be passed to Scope.
  1 件のコメント
Aggariyo Wanagiri
Aggariyo Wanagiri 2019 年 5 月 30 日
How do I run the yellow signal for o.5 seconds or 5 seconds? I see no time setting in the enabled subsystem.

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by