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
orNaN
output value.warning
The software issues a warning if a block produces an
Inf
orNaN
output value.error
The software issues an error and terminates the simulation if a block produces an
Inf
orNaN
output value.
Tips
To identify model references for which the software changes configuration parameter settings, use the Model Advisor.
In the Simulink® Toolstrip, on the Modeling tab, click Model Advisor.
Click OK.
In the Model Advisor, click the arrow to expand the By Task list. Then, click the arrow to expand the Model Referencing list.
Select and run the Check diagnostic settings ignored during accelerated model reference simulation check.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |
Programmatic Use
Parameter:
SignalInfNanChecking |
Type: string | character vector |
Value: "none" | "warning" | "error" |
Default: "none" |
Version History
Introduced in R2006a