Stateflow transition with timer
43 ビュー (過去 30 日間)
古いコメントを表示
Hi all, I'm trying to design a stateflow chart and I've those requirements:
- Move from state A to state B if incomming signal (T) from Simulink is up a threshold for at least 10 seconds (Time out expired).
- if (T > threshold) but not for 10 sec THAN reset the timer and still in A
- if next time that T > threshold , the timer restart from 0
I would design the chart with only two state (A and B) and describe the timer condition on transition link, but I don't found a solution. Any suggestion?
Thanks !!!
1 件のコメント
Daniel Lengauer
2017 年 10 月 18 日
I am looking for the same solution. Is there a suggestion to solve this in only two states ?
回答 (1 件)
prashant chavan
2017 年 10 月 26 日
1. Use counter as input which will increment continuously outside the state 2. Add transition from A to B : condition (T > threshold) && counter > 10 sec action : timer reset to 0
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!