Main Content

Replacement Name: int64

Name for int64 data type in generated code

Since R2018b

Model Configuration Pane: Code Generation / Data Type Replacement

Description

The Replacement Name: int64 parameter specifies the name to use for the built-in data type int64 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, int64_T.

Specify character vectors for the code generator to use as names for 64-bit integer Simulink® data types.

Specify the replacement name as one of the following:

  • A Simulink.NumericType object.

  • The Simulink Name built-in data type name.

To replace the Code Generation Name int64_T:

  • For a Simulink.NumericType object, set these properties:

    • DataTypeMode - Fixed-point: binary point scaling

    • Signedness - Signed

    • WordLength - 64

    • IsAlias - true

  • To use the built-in data type name that matches the Code Generation Name, specify int64 in the Replacement Name column.

An error occurs, if:

  • A replacement data type specification is inconsistent with the Simulink Name data type.

  • The object is Simulink.AliasType.

Recommended Settings

ApplicationSetting
DebuggingNoimpact
TraceabilityA valid character vector
EfficiencyNoimpact
Safety precautionNo recommendation

Programmatic Use

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

Version History

Introduced in R2018b