Simulink.VariantManager.applyConfiguration
Description
Simulink.VariantManager.applyConfiguration(
applies the variant configuration specified by model,Configuration=configName)configName to the model
model and any referenced components in the model hierarchy.
The variant configuration named configName must be present in the
VariantConfigurationData object associated with
model. The operation exports the variant control variables in the
configuration to the data sources where the variables are defined.
This function allows you to quickly switch the variant configuration for a model. The
function does not validate the configuration. To validate and activate a model using a
specific configuration or using the currently applied configuration, use the Simulink.VariantManager.activateModel function.
Note
To use this function, you must install the Variant Manager for Simulink® support package.
Examples
Input Arguments
Version History
Introduced in R2022b