Replacement Name: char
Name for char data type in generated code
Model Configuration Pane: Code Generation / Data Type Replacement
Description
The Replacement Name: char parameter specifies the name to use for the built-in data type char 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:
char_Tif Data type replacement isUse coder typedefs.charif Data type replacement isUse C data types with fixed-width integers.
You can specify a replacement name by using a Simulink.AliasType object:
Set the
BaseTypeobject property tointn.nis the number of bits set for Configuration Parameters > Hardware Implementation > Number of bits: char.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 object.
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.char |
| Type: character vector |
Value: The name of a Simulink.AliasType object, where the object exists in the base workspace. |
Default: '' |
Version History
Introduced in R2007a