Replacement Name: boolean
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, boolean_T
.
Specify character vectors for the code generator to use as names for built-in Simulink data types.
For ERT S-functions, the replacement data type can be only an 8-bit integer,
int8
, or uint8
.
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 replace the Code Generation Name
boolean_T
:
For a
Simulink.AliasType
object, set theBaseType
object property toboolean
,uint8
,int8
, orint
n
, wheren
is the number of bits set for Configuration Parameters > Hardware Implementation > Number of bits: int. Specify the name of theSimulink.AliasType
object in the Replacement Name column.For a
Simulink.NumericType
object, to replacereal_T
, set theDataTypeMode
object property toBoolean
. Specify the name of theSimulink.NumericType
object in the Replacement Name column.To use the Simulink Name built-in data type name which matches the Code Generation name, in the Replacement Name column, specify
uint8
,int8
, orint
n
, wheren
is the number of bits set for Configuration Parameters > Hardware Implementation > 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.boolean |
Type: character vector |
Value: The Simulink
Name , a Simulink.AliasType object, or 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 |