removeSubModelConfiguration
Class: Simulink.VariantConfigurationData
Package: Simulink
(To be removed) Remove from a variant configuration, the configuration to be used for a sub model.
Syntax
vcdataObj.removeSubModelConfiguration(nameOfConfiguration,nameOfSubModel)
Description
vcdataObj.removeSubModelConfiguration(
,
removes the configuration specified for a submodel.nameOfConfiguration
,nameOfSubModel
)
Input Arguments
|
Name of the submodel configuration to be removed. |
|
Name of the submodel from which the configuration must be removed. |
Examples
Add the path to the model file.
addpath(fullfile(matlabroot,'examples','simulink_variants','main'));
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')]);
Remove the submodel configuration
LinInterExpNoNoise
from the submodelslexVariantManagementExternalPlantMdlRef
.vcdataObj.removeSubModelConfiguration('LinInterExpNoNoise',... 'slexVariantManagementExternalPlantMdlRef')