AUTOSAR Variants
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.
Functions
createComponentAsModel | Create Simulink representation of AUTOSAR ARXML atomic software component |
createCompositionAsModel | Create Simulink representation of AUTOSAR ARXML software composition |
Topics
- Configure Variants for AUTOSAR Elements
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.
- Configure Postbuild Variant Conditions for AUTOSAR Software Components
Specify postbuild variant conditions and criterion for AUTOSAR components.
- Configure Variant Parameter Values for AUTOSAR Elements
Specify value combinations for AUTOSAR elements prior to code compile or at model startup time.