Main Content

getAlwaysActiveBlocks

Class:Simulink.VariantConfigurationAnalysis
Package:金宝app

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 theSimulink.VariantConfigurationAnalysismethod to obtain this value.

Output Arguments

expand all

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

Examples

% Add model to path目录(fullfile (matlabroot,'examples','simulink_variants','main'));% Open modelopen_system('slexVariantManagement');% Get variant configuration objectVarConfigObj = Simulink.VariantConfigurationAnalysis('slexVariantManagement','NamedConfigurations', {'LinInterStd',...'NonLinExterLowFid','NonLinExterHighFid'})% Get always active blocksalwaysActiveBlocks = VarConfigObj.getAlwaysActiveBlocks()

Version History

Introduced in R2019a