How can I start a timer when the value of a signal becomes zero?

4 ビュー (過去 30 日間)
Sonal R Patel
Sonal R Patel 2013 年 11 月 16 日
回答済み: Guy Rouleau 2013 年 11 月 17 日
I want to start a counter when the value of a signal becomes zero.
After that, when the time in the timer becomes 2 sec, I need to change a flag status.
I need help in doing these in simulink.
Thanks,

回答 (1 件)

Guy Rouleau
Guy Rouleau 2013 年 11 月 17 日
Use Stateflow... it allows you to express this type of procedural logic in a very intuitive way.
If you need to use Simulink only, then a combination of basic math (Sum, Switch, Delay, etc) will do it.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by