Field name of global types - Customize generated field names of global types - MATLAB (original) (raw)

Main Content

Customize generated field names of global types

Model Configuration Pane: Global Variables / Identifiers

Description

Customize generated field names of global types.

Dependencies

This parameter:

Settings

$N$M (default) | string

Enter a macro that specifies whether, and in what order, certain text is to be included in the generated identifier. The macro can include a combination of the following format tokens.

Token Description
$A Insert data type acronym into signal and work vector identifiers. For example, i32 for int32_t.
$H Insert tag indicating system hierarchy level. For root-level blocks, the tag is the text root_. For blocks at the subsystem level, the tag is of the form sN_, where N is a unique system number assigned by the Simulink® software.
$M Insert name-mangling text if required to avoid naming collisions.Required.
$N Insert name of object (block, signal or signal object, state, parameter or parameter object) for which identifier is being generated.
U∣InserttextthatyouspecifyfortheU Insert text that you specify for the UInserttextthatyouspecifyfortheU token. Use the Custom token text parameter to specify this text.

Tips

Application Setting
Debugging No impact
Traceability Use default
Efficiency No impact
Safety precaution No recommendation

Programmatic Use

Parameter: CustomSymbolStrField
Type: character vector
Value: valid combination of tokens
Default: NNNM

Version History

Introduced in R2006b