| Stateflow User's Guide | ![]() |
Debugging Data Range Violations
Stateflow detects the following data range violations during simulation:
See Setting Data Properties in the Data Dialog for a description of the Initial, Minimum, and Maximum fields in the data properties dialog.
See Overflow Detection for Fixed-Point Types for a description of the overflow condition in fixed-point numbers.
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 | ![]() |
© 1994-2005 The MathWorks, Inc.