getDependentModels

Class: Simulink.VariantConfigurationAnalysis
Package: Simulink

Returns a list of active models for variant configurations

Syntax

dependentModels = VarConfigObj.getDependentModels(ConfigName)

Description

dependentModels = VarConfigObj.getDependentModels(ConfigName)returns a list of active models for variant configuration.

Input Arguments

expand all

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

Specifies the name of variant configuration.

Output Arguments

expand all

Returns a list of active models, as a cell array.

Examples

% Open model
open_system('slexVariantManagement'); 

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

% Get dependent models
dependentModels = VarConfigObj.getDependentModels('NonLinExterLowFid')
Introduced in R2019a