Main Content

Replacement Name: int32

Name for int32 data type in generated code

Model Configuration Pane: Code Generation / Data Type Replacement

Description

The Replacement Name: int32 parameter specifies the name to use for the built-in data type int32 in the generated code.

Dependencies

To enable this parameter, select the Specify custom data type names parameter.

Settings

no default

If a value is not specified, the code generator uses the Code Generation Name, int32_T.

Specify character vectors for the code generator to use as names for built-in Simulink® data types.

  • A Simulink.AliasType object.

  • The Simulink Name built-in data type name.

To replace the Code Generation Name int32_T:

  • For a Simulink.AliasType object, set the BaseType object property to int32.

  • To use the built-in data type name that matches the Code Generation Name, specify int32 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 to Exported.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityA valid character vector
EfficiencyNo impact
Safety precautionNo recommendation

Programmatic Use

Parameter: ReplacementTypes, replacementName.int32
Type: character vector
Value: The Simulink Name or the name of a Simulink.AliasType object, where the object exists in the base workspace.
Default: ''

Version History

Introduced in R2007a