Documentation

Saturate on overflow

Description

Select the diagnostic action to take if the value of a signal is too large to be represented by the signal data type, resulting in a saturation.

Category:Diagnostics

Settings

Default:warning

none

金宝app®software takes no action.

warning

Simulink software displays a warning.

error

Simulink software terminates the simulation and displays an error message.

Tips

  • This diagnostic applies only to overflows which saturate for integer and fixed-point data types.

  • To check for floating-point overflows (for example,InforNaN)doubleorsingledata types, select theInf or NaN block outputdiagnostic. (SeeInf or NaN block outputfor more information.)

Command-Line Information

Parameter:IntegerSaturationMsg
Value:'none'|'warning'|'error'
Default:'warning'

Recommended Settings

Application Setting
Debugging warning
Traceability No impact
Efficiency No impact
Safety precaution error

Related Topics