When you set breakpoints on chart objects, you can control chart execution directly from the Stateflow® Editor.
In the editor, start simulation by selecting Simulation > Run.
When simulation stops at a breakpoint:
An execution status badge appears in the graphical object where execution pauses:
Execution stopped in a state's during action, graphical function, or truth table function.
Execution stopped before entering a chart or state.
Execution stopped after exiting a state.
Execution stopped before taking a valid transition.
Execution stopped before transition is tested.
Options for controlling chart execution appear in the editor tool bar and the Simulation menu.
Skip the entire execution of a function call and suspend the simulation.
Run the next execution step and suspend the simulation.
Skip the rest of the execution of a function call and suspend the simulation.
Hover over the badge to see execution status.
A tooltip indicates:
Where execution stopped
Current event, if the chart is processing a local or input event
View data values in the chart. See Watch Stateflow Data Values
Select options for continuing execution, such as Step Over, Step In, or Step Out.
Set conditions and enable/disable breakpoints in the Stateflow Breakpoints and Watch Data window. For more information, see Manage Stateflow Breakpoints and Watch Data.