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 AUTOSAR.Parameter
data
objects.
createComponentAsModel | Create Simulink representation of AUTOSAR ARXML atomic software component |
createCompositionAsModel | Create Simulink representation of AUTOSAR ARXML software composition |
Configure Variants for AUTOSAR Ports and Runnables
Configure variation points to enable or disable AUTOSAR elements based on defined conditions.
Configure Variants for AUTOSAR Runnable Implementations
Specify variant condition logic to vary the implementation of an AUTOSAR runnable.
Export Variation Points for AUTOSAR Calibration Data
Model and export variation points for AUTOSAR parameters, per-instance memory, and inter-runnable variables.
Configure Dimension Variants for AUTOSAR Array Sizes
Use a symbolic array size to flexibly vary AUTOSAR element dimensions.
Control AUTOSAR Variants with Predefined Value Combinations
Specify predefined value combinations for AUTOSAR variant conditions at model creation time.