Stateflow    

Debugging Cyclic Behavior

When a step or sequence of steps is indefinitely repeated (recursive), this is called cyclic behavior. The Debugger cycle detection algorithms detect a class of infinite recursions caused by event broadcasts.

To detect cyclic behavior during a simulation, do the following:

  1. Build the target with debugging enabled.
  2. Invoke the Debugger and enable Detect Cycles.
  3. Start the simulation.

See the following sections for examples of cyclic behavior:


  Debugging Data Range Violations Cyclic Behavior Example