Main Content

Replacement Name: int

Name for int data type in generated code

Model Configuration Pane: Code Generation / Data Type Replacement


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


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


no 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 object

    Set the BaseType object property to intn. Specify the name of the Simulink.AliasType object in the Replacement Name column.

  • To use the Simulink Name for int_T, in the Replacement Name column, specify intn.

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 to Exported.

Recommended Settings

DebuggingNo impact
TraceabilityA valid value
EfficiencyNo impact
Safety precautionNo recommendation

Programmatic Use

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

Version History

Introduced in R2007a