Main Content

Inf or NaN block output


Select the diagnostic action to take if the value of a block output is Inf or NaN at the current time step.


Accelerator mode does not support any runtime diagnostics.

Category: Diagnostics


Default: none


Simulink® software takes no action.


Simulink software displays a warning.


Simulink software terminates the simulation and displays an error message.


  • This diagnostic applies only to floating-point overflows for double or single data types.

  • To check for integer and fixed-point overflows, select the Wrap on overflow diagnostic. (See Wrap on overflow for more information.)

  • For models referenced in accelerator mode, Simulink ignores the Info or NaN block output 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, in the Modeling tab, click Model Advisor, then click OK.

    2. Select By Task.

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

Command-Line Information

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

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics