Variant Systems
Create custom model versions to support different specifications, without duplication
In Simulink®, you can create models that are based on a modular design platform that comprises a fixed common structure with a finite set of variable components. The variability helps you develop a single, fixed master design with variable components.
The approach helps you meet diverse customer requirements that are governed by application, cost, or operational considerations.
Variants are the variable components of modular design platforms. They help you specify multiple implementations of a model in a single, unified block diagram. For more information, seeWhat Are Variants and When to Use Them.
Blocks
Variant Subsystem | Represent a subsystem with multiple subsystems |
Variant Source | Define variant choices as sources without requiring subsystems |
Variant Sink | Define variant choices as sinks without requiring subsystems |
Model Variants | Include model as block in another model |
Classes
Simulink.Variant | Specify conditions that control variant selection |
Simulink.VariantConfigurationData | Class representing a variant configurations data object |
Examples and How To
- What Are Variants and When to Use Them
- Activation States of Variant Choices
- Switch Between Variant Choices
- Workflow for Implementing Variants
- Define, Configure, and Activate Variants
- Prepare Model Containing Variants for Code Generation
- Visualize Variant Implementations in a Single Layer
- Variant Condition Propagation with Variant Sources and Sinks
- Define and Configure Variant Sources and Sinks
- Reduce Models Containing Variant Configurations
- Set up Model Variants
- Create, Export, and Reuse Variant Controls
- Add and Validate Variant Configurations
- Import Control Variables to Variant Configuration
- Define Constraints and Export Variant Configurations
Was this topic helpful?