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 variants and system constant value sets for controlling variants in the component.
In Simulink®, you model AUTOSAR variants using variant blocks or symbolic dimensions, depending on the component requirements.
AUTOSAR system constants serve as inputs to control component variation points.
To model system constants, use
Configure variation points to enable or disable AUTOSAR elements based on defined conditions.
Specify variant condition logic to vary the implementation of an AUTOSAR runnable.
Model and export variation points for AUTOSAR parameters, per-instance memory, and inter-runnable variables.
Use a symbolic array size to flexibly vary AUTOSAR element dimensions.
Specify predefined value combinations for AUTOSAR variant conditions at model creation time.