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:

  1. Create the Model and Stateflow Diagram --Create a Simulink model with a Stateflow diagram to debug.
  2. Define the sfun Target -- Gives the right settings for the simulation target (sfun).
  3. Invoke the Debugger and Choose Debugging Options -- Helps you set up the debugger for simulation.
  4. Start the Simulation -- Tells you how to start simulation and what happens when you do.
  5. Debug the Simulation Execution -- Shows you how to monitor the behavior of the simulating Stateflow diagram.
  6. 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