Documentation

Model Configuration Parameters: Type Conversion Diagnostics

The Diagnostics > Type Conversion category includes parameters for detecting issues related to data type conversions (for example, from int32 to single).

On the Configuration Parameters dialog box, the following configuration parameters are on the Commonly Used tab on the Diagnostics > Type Conversion pane, or on the All Parameters tab in the Diagnostics > Type Conversion category.

ParameterDescription

Unnecessary type conversions

Select the diagnostic action to take when Simulink® software detects a Data Type Conversion block used where no type conversion is necessary.

Vector/matrix block input conversion

Select the diagnostic action to take when Simulink software detects a vector-to-matrix or matrix-to-vector conversion at a block input.

32-bit integer to single precision float conversion

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

Detect underflow

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

Detect precision loss

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

Detect overflow

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

Related Examples

Was this topic helpful?