Detect underflow
Diagnostic action to take when fixed-point constant underflow occurs
Model Configuration Pane: Diagnostics / Type Conversion
Description
The Detect underflow parameter specifies the diagnostic action to take when a fixed-point constant underflow occurs during simulation.
Dependencies
This parameter requires a Fixed-Point Designer™ license.
Settings
none (default) | warning | errornoneSimulink® software takes no action.
warningSimulink software displays a warning.
errorSimulink 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.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter:FixptConstUnderflowMsg |
Value: 'none' | 'warning' | 'error' |
Default: 'none' |
Version History
Introduced in R2009b