MATLAB: How to reset a stateflow state machine on external event

state machinestateflow

Is it possible to re-initialize a state machine on an event generated by an other state machine?

Best Answer

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.