Class: Simulink.VariantConfigurationData
Package: Simulink
Activate and validate all variant blocks in a model hierarchy
Simulink.VariantConfigurationData.validateModel(modelName)
Simulink.VariantConfigurationData.validateModel(modelName,configName)
Simulink.VariantConfigurationData.validateModel(
,
activates and validates the model and referenced models during simulation.modelName
)
Simulink.VariantConfigurationData.validateModel(
,
activates and validates the model and referenced models during simulation optionally using a
variant configuration.modelName
,configName
)
|
Name of the model |
|
Name of the configuration to be activated and validated |
Add the path to the model file.
addpath(fullfile(docroot,'toolbox','simulink','examples'));
Load the model.
load_system('slexVariantManagement');
Activate and validate the model slexVariantManagement
using the
configuration
LinInterExpNoNoise
.
[valid, errors] = Simulink.VariantConfigurationData.validateModel... ('slexVariantManagement','LinInterExpNoNoise')
existsFor
| getFor
| getOrCreateFor
| Simulink.VariantConfigurationData