Simulink.VariantManager.applyConfiguration
Class: Simulink.VariantManager
Package: Simulink
Description
Note
This method requires Variant Manager for Simulink®.
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 defined in
the specified configuration to the base workspace or data dictionary used by the model.
This method allows you to quickly switch the variant configuration for a model. The
method 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
method.
Input Arguments
Examples
Version History
Introduced in R2022b