How to reset a stateflow state machine on external event?
34 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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
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
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!