In case of either wrap or saturate, you want to know when overflow occurs. You
can define how Simulink handles each of these
overflow conditions in the model by modifying the Model Configuration Parameters. Open
the Model Configuration Parameters by selecting , or typing
Ctrl-E. In the Configuration
Parameters dialog box, under the Diagnostics > Data
Validity tab, you can specify values for the
Wrap on Overflow and
Saturate on Overflow
fields. Each of these fields can have one of the following settings:- none
- Simulink takes no special action to report or handle the overflow.
- warning
- A message displays in the diagnostic viewer. The next warning for the same block is ignored, and simulation continues.
- error
- The diagnostic viewer displays an error message, and the simulation terminates.
Tip: You can find help for this dialog
box under Model Configuration Parameters: Data Validity
Diagnostics.