Main Content

Manage Variant Modeling Components

Manage variant elements and define, reduce, and analyze variant configurations

Variant Manager is a tool that allows you to visualize the model hierarchy and centrally manage the usage of variant elements such as variant blocks and variant transitions in Stateflow® charts across the hierarchy.

The tool is available as a support package named Variant Manager for Simulink® with these main capabilities:

  • Variant Manager — Visualize the model hierarchy, manage the usage of variant elements across the hierarchy, and create and manage variant configurations.

  • Variant Reducer — Generate a reduced model that contains only selected variant configurations.

  • Variant Analyzer — Compare and contrast variant configurations to identify errors or inconsistencies.

Classes

Simulink.VariantConfigurationDataCreate variant configurations programmatically
Simulink.VariantConfigurationAnalysisAnalyze variant configurations programmatically

Functions

Simulink.VariantManager.activateModel Validate and activate variant blocks in model hierarchy (Since R2022b)
Simulink.VariantManager.updateModelObtain model compilation information and activate variant blocks in model hierarchy (Since R2024b)
Simulink.VariantManager.applyConfigurationApply specified variant configuration to model (Since R2022b)
Simulink.VariantManager.findVariantControlVars Find variables used in variant control expressions
Simulink.VariantManager.generateConfigurations Generate variant configurations automatically (Since R2022b)
Simulink.VariantManager.getConfigurationDataGet variant configuration data object associated with model (Since R2022b)
Simulink.VariantManager.getPreferredConfigurationNameGet name of preferred variant configuration for model (Since R2022b)
Simulink.VariantManager.reduceModelGenerate reduced model for specified variant configurations

Support Package

Variant Manager for Simulink

Use a central tool to manage all variation points in a variant model.

Topics

Featured Examples