Main Content

getDependentModels

Class:Simulink.VariantConfigurationAnalysis
Package:金宝app

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 theSimulink.VariantConfigurationAnalysismethod 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

% 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 dependent modelsdependentModels = VarConfigObj.getDependentModels('NonLinExterLowFid')

Version History

Introduced in R2019a