Specify the default data type to use for inherited data types if Simulink® software could not infer the data type of a signal during data type propagation.
Category: Math and Data Types
Default:
double
double
Sets the data type for underspecified data types during data type
propagation to double
. Simulink uses double
as the data type for
inherited data types.
single
Sets the data type for underspecified data types during data type
propagation to single
. Simulink uses single
as the data type for
inherited data types.
This setting affects both simulation and code generation.
For embedded designs that target single-precision processors, set this
parameter to single
to avoid the introduction of
double data types.
Use the Model Advisor Identify questionable operations for strict single-precision design check to identify the double-precision usage in your model.
Parameter:
DefaultUnderspecifiedDataType |
Value:
'double' | 'single'
|
Default:
'double' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | single (when target hardware supports efficient single
computations) double (otherwise) |
Safety precaution | No impact |