Stateflow |
 |
Debugging Run-Time Errors Example
The following topics describe the steps used in a typical debugging scenario to resolve run-time errors in an example model:
- Create the Model and Stateflow Diagram --Create a Simulink model with a Stateflow diagram to debug.
- Define the sfun Target -- Gives the right settings for the simulation target (
sfun
).
- Invoke the Debugger and Choose Debugging Options -- Helps you set up the debugger for simulation.
- Start the Simulation -- Tells you how to start simulation and what happens when you do.
- Debug the Simulation Execution -- Shows you how to monitor the behavior of the simulating Stateflow diagram.
- Resolve Run-Time Error and Repeat -- Shows you how to deal with the run-time error you encounter.
See Debugged Stateflow Diagram to inspect the debugged Stateflow diagram example.
| Error Checking Options | | Create the Model and Stateflow Diagram |  |