Replacement Name: int
Description
Specify names for built-in Simulink® 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, int_T
.
Specify character vectors for the code generator to use as names for built-in Simulink data types.
Specify the replacement name as one of the following:
A
Simulink.AliasType
object.The Simulink Name built-in data type name.
To replace the Code Generation Name
int_T
:
For a
Simulink.AliasType
objectSet the
BaseType
object property toint
n
. Specify the name of theSimulink.AliasType
object in the Replacement Name column.To use the Simulink Name for int_T, in the Replacement Name column, specify
int
n
.
n
is the number of bits displayed in the
Configuration Parameters dialog box, Hardware Implementation
pane > Number of bits: int.
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.int |
Type: character vector |
Value: The Simulink
Name or the name of a Simulink.AliasType ,
where the object exists in the base workspace. |
Default:
'' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | A valid value |
Efficiency | No impact |
Safety precaution | No recommendation |