In case of either wrap or saturate, you may want to know when overflow occurs.
You can define how Simulink handles each of these overflow
conditions in the model by clicking on the Model Configuration
Parameters command () on the tool bar menu, or typing
Ctrl-E
. In the Configuration Parameters dialog box, under the 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 will be displayed in the diagnostic viewer. The next warning for the same block will be ignored, and simulation will continue.
- error: An error message will be displayed in the diagnostic viewer and the simulation will be terminated.
Tip: Help for this dialog box can be
found under Model Configuration Parameters: Data Validity
Diagnostics.