Main Content

Maximum SHORT-NAME length

Maximum length for SHORT-NAME elements generated in XML files

Model Configuration Pane: Code Generation > AUTOSAR Code Generation Options


Set maximum length for SHORT-NAME XML elements generated in XML files for the AUTOSAR Adaptive Platform


128 (default) | integer

The AUTOSAR standard specifies that the maximum length of SHORT-NAME XML elements is 128 characters. To configure a maximum length for SHORT-NAME elements exported by the code generator, specify an integer value between 32 and 128, inclusive.


All models in a model hierarchy must specify the same value for this parameter.

Recommended Settings

DebuggingNo Impact
TraceabilityNo Impact
EfficiencyNo Impact
Safety precautionNo Impact

Programmatic Use

Parameter: AutosarMaxShortNameLength
Type: integer
Value: integer value between 32 and 128, inclusive
Default: 128

Version History

Introduced in R2011a