Replacement Name: single
Description
Specify a name for single
built-in data types in generated
code.
Category: Code Generation > Data Type Replacement
Settings
Default:
''
If a value is not specified, the code generator uses the Code Generation
Name, real32_T
.
Specify a character vector for the code generator to use as a name for
single
built-in data types.
Specify the replacement name as one of the following:
A
Simulink.AliasType
object.A
Simulink.NumericType
object.The Simulink Name built-in data type name.
To use the Simulink Name, specify single
in the Replacement Name column.
To replace the Code Generation Name for
single
with an object:
For a
Simulink.AliasType
object, set theBaseType
object property tosingle
.For a
Simulink.NumericType
object, set theDataTypeMode
object property toSingle
.Specify the object name in the Replacement Name column.
An error occurs, if:
A replacement data type specification is inconsistent with the Simulink Name data type.
The
Simulink.AliasType
object has the Data scope parameter set toExported
.
Dependency
Replace data type names in the generated code enables this parameter.
Command-Line Information
Parameter:
ReplacementTypes, replacementName.single |
Type: character vector |
Value: The Simulink
Name , the name of a Simulink.AliasType
object, or the name of a Simulink.NumericType object, where
the object exists in the base workspace. |
Default:
'' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | A valid character vector |
Efficiency | No impact |
Safety precaution | No recommendation |