フィルターのクリア

How to reset a stateflow state machine on external event?

23 ビュー (過去 30 日間)
olivier
olivier 2012 年 9 月 3 日
コメント済み: Song 2016 年 2 月 10 日
Is it possible to re-initialize a state machine on an event generated by an other state machine?

採用された回答

TAB
TAB 2012 年 9 月 3 日
AFAIK, there is no such provision in stateflow. But you can design your stateflow chart logic with an external trigger input in such a way that it resets all the states and data (locals & outputs) when trigger is enabled.
  2 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 9 月 4 日
編集済み: John Kelly 2015 年 2 月 26 日
The documentation also suggests placing Stateflow charts inside Enabled Subsystems and setting the "States when enabling" parameter to "reset" to force re-initialization: http://www.mathworks.com/help/stateflow/ug/controlling-states-when-function-call-inputs-reenable-charts.html?searchHighlight=States%20when%20enabling
Song
Song 2016 年 2 月 10 日
Do you have a example of this? That would be extremely helpful

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by