Replacement Name: boolean
Name for boolean data type in generated code
Model Configuration Pane: Code Generation / Data Type Replacement
Description
The Replacement Name: boolean parameter specifies the name to use for the built-in data type boolean in the generated code.
Dependencies
To enable this parameter, select the Specify custom data type names parameter.
Settings
If a value is not specified, the code generator uses the Code Generation Name:
boolean_Tif Data type replacement isUse coder typedefs.boolif Data type replacement isUse C data types with fixed-width integers.
You can specify a replacement name by using one of the following:
A
Simulink.AliasTypeobject.A
Simulink.NumericTypeobject.The Simulink Name built-in data type name.
To use a Simulink.AliasType object:
Set the
BaseTypeobject property toboolean,uint8,int8, orintn, wherenis the number of bits set for Configuration Parameters > Hardware Implementation > Number of bits: int.Set the
HeaderFileobject property to the name of the header file that provides the type definition.In the Replacement Name column, specify the object name.
To use a Simulink.NumericType object:
Set the
DataTypeModeobject property toBoolean.Set the
HeaderFileobject property to the name of the header file that provides the type definition.In the Replacement Name column, specify the name of the
Simulink.NumericTypeobject.
To use the Simulink Name:
In the Replacement Name column, specify
uint8,int8, orintn, wherenis the number of bits set for Configuration Parameters > Hardware Implementation > Number of bits: int.
For ERT S-functions, the replacement data type can be only an 8-bit integer,
int8, or uint8.
An error occurs, if:
A replacement data type specification is inconsistent with the Simulink Name data type.
The
Simulink.AliasTypeobject has the Data scope parameter set toExported.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | A valid character vector |
| Efficiency | No impact |
| Safety precaution | No recommendation |
Programmatic Use
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: '' |
Version History
Introduced in R2007a