This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Wrap on overflow

Description

Select the diagnostic action to take if the value of a signal overflows the signal data type and wraps around.

Category: Diagnostics

Settings

Default: warning

none

Simulink® 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 wrap for integer and fixed-point data types.

  • This diagnostic also reports division by zero for all data types, including floating-point data types.

  • To check for floating-point overflows (for example, Inf or NaN) for double or single data types, select the Inf or NaN block output diagnostic. (See Inf or NaN block output for more information.)

  • For models referenced in accelerator mode, Simulink ignores the Wrap on overflow parameter setting if you set it to a value other than None.

    You can use the Model Advisor to identify referenced models for which Simulink changes configuration parameter settings during accelerated simulation.

    1. In the Simulink Editor, select Analysis > Model Advisor.

    2. Select By Task.

    3. Run the Check diagnostic settings ignored during accelerated model reference simulation check.

Command-Line Information

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

Recommended Settings

ApplicationSetting
Debuggingwarning
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics