How to reset a stateflow state machine on external event?
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is it possible to re-initialize a state machine on an event generated by an other state machine?
0 comentarios
Respuesta aceptada
TAB
el 3 de Sept. de 2012
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 comentarios
Kaustubha Govind
el 4 de Sept. de 2012
Editada: John Kelly
el 26 de Feb. de 2015
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Complex Logic en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!