getComponentConfigurationName
Class: Simulink.VariantConfigurationData
Namespace: Simulink
Description
Consider a model that has predefined variant configurations and also has a
referenced model in its model hierarchy. The referenced model defines its own variant
configurations. While authoring the variant configurations for the top-level model, you might
associate a referenced model configuration with a top-level variant configuration to populate
the corresponding control variables in the top-level configuration. Use the
getComponentConfigurationName
method to get the name of the referenced
model configuration used within a top-level variant configuration. For more information on the
workflow, see Compose Variant Configurations for Top Model Using Referenced Model Configurations.
Note
This method requires Variant Manager for Simulink®.
returns the name of the variant configuration used by the referenced component
refConfigName
= vcdTop.getComponentConfigurationName
(ConfigurationName=topmdlConfig
,ComponentName=refmdlName
)refmdlName
in the top-level model variant configuration
topmdlConfig
. The variant configuration
topmdlConfig
must be defined in vcdTop
, which is
an object of the Simulink.VariantConfigurationData
class and represents the
variant configuration data object associated with the top-level model.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2023b