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 ElementsConfigure variation points to enable or disable AUTOSAR elements based on defined conditions. 
- Configure Variants for AUTOSAR Runnable ImplementationsSpecify variant condition logic to vary the implementation of an AUTOSAR runnable. 
- Export Variation Points for AUTOSAR Calibration DataModel and export variation points for AUTOSAR parameters, per-instance memory, and inter-runnable variables. 
- Configure Dimension Variants for AUTOSAR Array SizesUse a symbolic array size to flexibly vary AUTOSAR element dimensions. 
- Control AUTOSAR Variants with Predefined Value CombinationsSpecify predefined value combinations for AUTOSAR variant conditions at model creation time. 
- Configure Postbuild Variant Conditions for AUTOSAR Software ComponentsSpecify postbuild variant conditions and criterion for AUTOSAR components. 
- Configure Variant Parameter Values for AUTOSAR ElementsSpecify value combinations for AUTOSAR elements prior to code compile or at model startup time.