Main Content

Generate XML file for schema version

Generate AUTOSAR XML files for specified schema version

Model Configuration Pane: Code Generation > AUTOSAR Code Generation Options

Description

Select the AUTOSAR Classic Platform schema version to use when generating XML files

Dependencies

To enable this parameter, set the SystemTargetFile parameter to autosar.tlc.

Settings

R22-11 (default) | R21-11 | R20-11 | R19-11 | 4.4 | 4.3 | 4.2 | 4.1 | 4.0

  • R22-11 — Use schema version R22-11

  • R21-11 — Use schema version R21-11

  • R20-11 — Use schema version R20-11

  • R19-11 — Use schema version R19-11

  • 4.4 — Use schema version 4.4 (revision 4.4.0)

  • 4.3 — Use schema version 4.3 (revision 4.3.1)

  • 4.2 — Use schema version 4.2 (revision 4.2.2)

  • 4.1 — Use schema version 4.1 (revision 4.1.3)

  • 4.0 — Use schema version 4.0 (revision 4.0.3)

Tips

  • Selecting the AUTOSAR target for your model for the first time sets the schema version parameter to the default value, R22-11.

  • When you import ARXML code into Simulink®, the ARXML importer detects the schema version and sets the schema version parameter in the model. For a list of AUTOSAR schema revisions supported for ARXML import, see Select AUTOSAR Classic Schema (AUTOSAR Blockset).

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

  • To configure other AUTOSAR options, use the AUTOSAR code perspective. From the Apps tab, open the AUTOSAR Component Designer app.

Recommended Settings

ApplicationSetting
DebuggingNo Impact
TraceabilityNo Impact
EfficiencyNo Impact
Safety precautionNo Impact

Programmatic Use

Parameter: AutosarSchemaVersion
Type: character vector
Value: 'R22-11' | 'R21-11' | 'R20-11' | 'R19-11' | '4.4' | '4.3' | '4.2' | '4.1' | '4.0'
Default: 'R22-11'

Version History

Introduced in R2011a

expand all