Main Content

getAlwaysActiveBlocks

Class: Simulink.VariantConfigurationAnalysis
Package: Simulink

Displays a list of blocks that are always active across all variant configurations

Syntax

alwaysActiveBlocks = VarConfigObj.getAlwaysActiveBlocks()

Description

alwaysActiveBlocks = VarConfigObj.getAlwaysActiveBlocks()displays a list of blocks that are always active across 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

Displays a list of blocks that are always active, as a cell array.

Examples

% Open model
open_system('slexVariantManagement'); 

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

% Get always active blocks
alwaysActiveBlocks = VarConfigObj.getAlwaysActiveBlocks()
Introduced in R2019a