| Using Stateflow | Search  Help Desk |
Example: Data Range Violation
This Stateflow diagram has a data range violation.
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.