| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
| On this page… |
|---|
Types of Data Range Violations |
Stateflow software detects the following data range violations during simulation:
When a data object equals a value outside the range of the values set in the Initial, Minimum, and Maximum fields specified in the Data properties dialog box
See Setting Data Properties in the Data Dialog Box for a description of the Initial, Minimum, and Maximum fields in the Data properties dialog box.
When the result of a fixed-point operation overflows its bit size
See Detecting Overflow for Fixed-Point Types for a description of the overflow condition in fixed-point numbers.
To detect data range violations during a simulation:
The following chart has a data range violation.

Assume that the data a has an Initial and Minimum value of 0 and a Maximum value of 2. Each time an event awakens this chart and state A is active, a increments. The value of a quickly becomes a data range violation.
![]() | Debugging Conflicting Transitions in a Chart | Debugging Cyclic Behavior in a Chart | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |