| Using Stateflow | Search  Help Desk |
Example: Flow Cyclic Behavior Not Detected
This Stateflow diagram shows an example of cyclic behavior in a flow diagram that is not detected by the Debugger.
i is set to zero in the condition action of the default transition. i is incremented in the next transition segment condition action. The transition to the third connective junction is valid only when the condition [i < 0] is true. This condition will never be true in this flow diagram and there is a cycle.
This cycle is not detected by the Debugger because it does not involve event broadcast recursion. Detecting cycles that are involved with data values is not currently supported.