Main Content

AUTOSAR Variants

Configure component variation points and system constants

AUTOSAR software components use variants to enable or disable AUTOSAR interfaces or implementations in the execution path, based on defined conditions. Variation points in a component present a choice between two or more variants. Components can:

  • Enable or disable an AUTOSAR port or runnable.

  • Vary the implementation of an AUTOSAR runnable.

  • Vary the array size of an AUTOSAR port.

  • Specify predefined value combinations for controlling variants in the component.

  • Specify postbuild variant conditions.

In Simulink®, you model AUTOSAR variants using variant blocks, variant parameters, or symbolic dimensions, depending on the component requirements.

AUTOSAR system constants serve as inputs to control component variation points. To model system constants, use AUTOSAR.Parameter data objects.


createComponentAsModelCreate Simulink representation of AUTOSAR ARXML atomic software component
createCompositionAsModelCreate Simulink representation of AUTOSAR ARXML software composition