Main Content

Inf or NaN block output

Diagnostic action to take if block produces Inf or NaN output value

Model Configuration Pane: Diagnostics / Data Validity

Description

The Inf or NaN block output parameter specifies the diagnostic action to take if a block produces an Inf or NaN output value. This parameter is not supported in accelerator mode simulations or for model references that simulate in accelerator mode.

This diagnostic applies only to floating-point overflows for double, single, or half data types. To check for integer and fixed-point overflows, use the Saturate on overflow and Wrap on overflow parameters.

Settings

none (default) | warning | error
none

The software does not issue a diagnostic if a block produces an Inf or NaN output value.

warning

The software issues a warning if a block produces an Inf or NaN output value.

error

The software issues an error and terminates the simulation if a block produces an Inf or NaN output value.

Tips

To identify model references for which the software changes configuration parameter settings, use the Model Advisor.

  1. In the Simulink® Toolstrip, on the Modeling tab, click Model Advisor.

  2. Click OK.

  3. In the Model Advisor, click the arrow to expand the By Task list. Then, click the arrow to expand the Model Referencing list.

  4. Select and run the Check diagnostic settings ignored during accelerated model reference simulation check.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: SignalInfNanChecking
Type: string | character vector
Value: "none" | "warning" | "error"
Default: "none"

Version History

Introduced in R2006a