Saturate on overflow
Diagnostic action to take if signal value is too large for signal data type
Model Configuration Pane: Diagnostics / Data Validity
Description
The Saturate on overflow parameter specifies the diagnostic action to take if the value of a signal is too large for the data type of the signal to represent, resulting in saturation. This parameter applies only to overflows that saturate for integer and fixed-point data types.
To check for floating-point overflows, such as Inf
or NaN
values for signals that have the double
or single
data type, use the Inf or NaN block output parameter.
Settings
warning
(default) | error
| none
warning
The software issues a warning if a signal value is too large to be represented by the signal data type.
error
The software issues an error and terminates the simulation or code generation if a signal value is too large to be represented by the signal data type.
During code generation, the software might simulate one or more blocks in the model for optimization purposes. If the value of a signal becomes too large to be represented by the signal data type in this process, the software issues an error and terminates code generation.
none
The software does not issue a diagnostic if a signal value is too large to be represented by the signal data type.
Recommended Settings
Application | Setting |
---|---|
Debugging | warning |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |
Programmatic Use
Parameter: IntegerSaturationMsg |
Type: string | character vector |
Value: "none" | "warning" | "error" |
Default: "warning" |
Version History
Introduced in R2014b