Class: Simulink.VariantConfigurationData
Package: Simulink
Add to a variant configuration the names of the configurations to be used for submodels
vcdataObj.addSubModelConfigurations(nameOfConfiguration,subModelConfigurations)
vcdataObj.addSubModelConfigurations(
,
specifies names of the configurations to be used for submodels.nameOfConfiguration
,subModelConfigurations
)
|
Name for the configuration of submodels that are model references. |
|
Vector of structures containing fields: |
Add the path to the model file.
addpath(fullfile(docroot,'toolbox','simulink','examples'));
Load the model.
load_system('slexVariantManagement');
Obtain variant configuration data object for the model.
vcdataObj = Simulink.VariantConfigurationData.getFor('slexVariantManagement');
Add a new submodel configuration to LinInterExpNoNoise
.
vcdataObj.addSubModelConfigurations('LinInterExpNoNoise',... [struct('ModelName', 'slexVariantManagementExternalPlantMdlRef',... 'ConfigurationName', 'LowFid')])