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 | errornoneThe software does not issue a diagnostic if a block produces an
InforNaNoutput value.warningThe software issues a warning if a block produces an
InforNaNoutput value.errorThe software issues an error and terminates the simulation if a block produces an
InforNaNoutput 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