Simulink stateflow condition for single pulse input

13 ビュー (過去 30 日間)
Aadithya Iyer
Aadithya Iyer 2021 年 1 月 26 日
回答済み: Birdman 2021 年 1 月 26 日
How do I generate a single pulse in SImulink??
I want to give a single pulse source to a subsystem only when a certain condition is met. When I try doing it using simulation time, it has already given the input pulse. I want it to be activated only when the condition is met. Can this be done using Stateflow or Matlab function??
I just need a single pulse, But I get like continuous pulse, when I keep i as local variable and define it as 0 initially.
I want to define i as global so that after 3 iterations it goes back
Any help is appreciated. Thank you,

採用された回答

Birdman
Birdman 2021 年 1 月 26 日
Try the attached model. Note how the inside of Stateflow is built.

その他の回答 (0 件)

カテゴリ

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