Variant Model Analysis
R2026bAs the number of variant configurations in a model grows, understanding how they differ and whether they collectively exercise all variant choices becomes difficult to do manually. Variant Analyzer compares configurations across the model hierarchy and generates a report that shows which blocks are active in each configuration, highlights blocks that are never activated, and identifies dependent artifacts such as referenced models and libraries. Use this information to detect coverage gaps and refine your configurations to achieve full simulation and code generation coverage.
To understand licensing requirements for Simulink® Variant Manager™ workflows, see License Requirements for Simulink Variant Manager.
Apps
| Variant Manager | Manage, configure, and analyze system variants (Since R2026b) |
Objects
Simulink.VariantConfigurationAnalysis | Analyze variant configurations |
Functions
Simulink.VariantManager.analyzeModel | Analyze variant model for specified variant configurations (Since R2026a) |
getActiveBlocks | List of active blocks in a named variant configuration |
getAlwaysActiveBlocks | List of blocks that are always active across named variant configurations |
getBlockDifferences | List of blocks that differ in their active choice between multiple named variant configurations |
getDependentLibraries | List of libraries used in a named variant configuration |
getDependentModels | List of dependent models used in a named variant configuration |
getNeverActiveBlocks | List of blocks that are inactive in named variant configurations |
getVariantCondition | Variant condition on a block in a named variant configuration |
showUI | Show variant configuration analysis report for a model |
hideUI | Hide variant configuration analysis report for a model |
Topics
- Analyze Variant Configurations in Models Containing Variant Blocks
Analyze and compare variant configurations for a model containing variant blocks.