Stateflow | ![]() ![]() |
Debugging Data Range Violations
Stateflow detects the following data range violations during simulation:
Detecting Data Range Violations
To detect data range violations during a simulation:
Data Range Violation Example
This Stateflow diagram has a data range violation.
The data a
is defined to have an Initial and Minimal value of 0 and a Maximum value of 2. Each time an event awakens this Stateflow diagram and state A
is active, a
is incremented. The value of a
quickly becomes a data range violation.
![]() | Debugging Conflicting Transitions | Debugging Cyclic Behavior | ![]() |