Main Content

Detect underflow

Specifies diagnostic action to take when a fixed-point constant underflow occurs during simulation.

Description

Select the diagnostic action to take if Simulink®software detects a 32-bit integer value was converted to a floating-point value.

Category:Diagnostics

Settings

Default:none

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 fixed-point constants (net slope and net bias).

  • Fixed-point constant underflow occurs when Simulink software encounters a fixed-point constant whose data type does not have enough precision to represent the ideal value of the constant because the ideal value is too small.

  • When fixed-point constant underflow occurs, casting the ideal value to the data type causes the value of the fixed-point constant to become zero, and therefore to differ from its ideal value.

Dependency

This parameter requires a Fixed-Point Designer™ license.

Command-Line Information

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

Recommended Settings

Application Setting
Debugging No impact
Traceability No impact
Efficiency No impact
Safety precaution No impact

Related Topics