MATLAB Examples


This model shows the use of Superstep 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 Superstep mode disabled and the other has the Superstep mode enabled.

Run the simulation and compare the output from the two charts on the scopes. You will notice that in the output from the chart 'Without Superstep' the value changes in steps till it reaches its final steady state whereas in the chart 'With Superstep' the value immediately reaches its steady state because of the Superstep semantics.