主要内容

Variant Model Analysis

R2026b
Compare variant configurations to review large variant systems and identify coverage gaps

As 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 ManagerManage, configure, and analyze system variants (Since R2026b)

Objects

Simulink.VariantConfigurationAnalysisAnalyze variant configurations

Functions

Simulink.VariantManager.analyzeModelAnalyze variant model for specified variant configurations (Since R2026a)
getActiveBlocksList of active blocks in a named variant configuration
getAlwaysActiveBlocksList of blocks that are always active across named variant configurations
getBlockDifferencesList of blocks that differ in their active choice between multiple named variant configurations
getDependentLibrariesList of libraries used in a named variant configuration
getDependentModelsList of dependent models used in a named variant configuration
getNeverActiveBlocksList of blocks that are inactive in named variant configurations
getVariantConditionVariant condition on a block in a named variant configuration
showUIShow variant configuration analysis report for a model
hideUIHide variant configuration analysis report for a model

Topics