MATLAB Examples

Super Step

This model shows the use of super step semantics on a Stateflow® chart which allows the chart to repeatedly take all possible transitions from the current state to get to a stable state configuration before going to the next simulation step. This example shows two exactly identical Stateflow charts except that one has the super step mode disabled and the other has the super step mode enabled.

Run the simulation and compare the output from the two charts on the scopes. In the output from the chart 'Without Super Step' the value changes in steps till it reaches its final steady state whereas in the chart 'With Super Step' the value immediately reaches its steady state because of the super step semantics.