Main Content

getBlockDifferences

Class: Simulink.VariantConfigurationAnalysis
Package: Simulink

Returns a list of blocks that differ in active choice between variant configurations

Syntax

getBlockDifferences = VarConfigObj.getBlockDifferences()

Description

getBlockDifferences = VarConfigObj.getBlockDifferences()returns a list of blocks that are active in some of the analyzed configurations and inactive in other configurations.

Input Arguments

expand all

Variant configuration object for a specified configuration. You can use the Simulink.VariantConfigurationAnalysis method to obtain this value.

Output Arguments

expand all

Returns a list of blocks that differ in active choice between variant configurations, as a cell array.

Examples

% Open model
open_system('slexVariantManagement'); 

% Get variant configuration object
VarConfigObj = Simulink.VariantConfigurationAnalysis('slexVariantManagement', 'NamedConfigurations', {'LinInterStd', ...
'NonLinExterLowFid', 'NonLinExterHighFid'})

% Get block differences
getBlockDifferences = VarConfigObj.getBlockDifferences()
Introduced in R2019a