Main Content

getNeverActiveBlocks

Class: Simulink.VariantConfigurationAnalysis
Package: Simulink

Returns a list of blocks that are inactive in all variant configurations

Syntax

getNeverActiveBlocks = VarConfigObj.getNeverActiveBlocks()

Description

getNeverActiveBlocks = VarConfigObj.getNeverActiveBlocks()returns a list of blocks that are inactive in all variant 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 are never active, as a cell array.

Examples

% Open model
open_system('slexVariantManagement'); 

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

% Get never active blocks
neverActiveBlocks = VarConfigObj.getNeverActiveBlocks()
Introduced in R2019a