Main Content

Simulink.VariantConfigurationAnalysis class

Package: Simulink

Class representing a set of Variant Configuration Analysis functionality

Description

The Simulink.VariantConfigurationAnalysis class has methods that enable you to analyze or compare model references and libraries for each variant configuration in a model containing variant blocks. Use an instance of Simulink.VariantConfigurationAnalysis class to do the following:

  • Get a list of active blocks for variant configuration

  • Find blocks which are active across all variant configurations

  • Find blocks which are inactive in all variant configurations

  • Get a list of blocks which differ in active choice between variant configurations

  • Get a list of active models for variant configuration

  • Get a list of libraries which are used in variant configuration

  • View variant configuration analysis in user interface screen

  • Hide variant configuration analysis report

  • View variant condition for blocks in given variant configuration

Properties

NamedConfigurations

Specifies the names of variant configuration(s) you want to analyze. The names are defined by the Variant Manager and saved in a variant configuration object associated with the model. If the model is associated with a variant configuration object, then the VariantConfigurationObject parameter is set to a Simulink.VariantConfigurationData object. For example, consider a variant configuration object "vcd", then NamedConfigurations must be one or multiple configuration names that is defined in "vcd". NamedConfigurations can be a string or a cell array of strings.

Method

getActiveBlocks Returns a list of active blocks for variant configuration
getAlwaysActiveBlocks Displays a list of blocks that are always active across all variant configurations
getBlockDifferencesReturns a list of blocks that differ in active choice between variant configurations
getDependentLibraries Returns a list of libraries that are used in variant configurations
getDependentModels Returns a list of active models for variant configurations
getNeverActiveBlocks Returns a list of blocks that are inactive in all variant configurations
getVariantCondition Returns variant conditions for blocks in given variant configuration
hideUI Hides variant configuration analysis report
showUI Displays variant configuration analysis in user interface view