getComponentConfigurationName
Get name of variant configuration used by referenced component in model hierarchy
Since R2023b
Description
In a model that has predefined variant configurations and also has a referenced
model in its model hierarchy, the referenced model can define its own variant configurations.
While authoring the variant configurations for the top-level model, you can 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
function to get the name of the
referenced model configuration used within a top-level variant configuration. For more
information, see Compose Variant Configurations and Constraints for Top Model Using Referenced Component Configurations.
Note
This function requires Variant Manager for Simulink®.
returns the name of the variant configuration used by the referenced component
refConfigName
= getComponentConfigurationName(varconfigdatatop
,ConfigurationName=topmdlconfig
,ComponentName=refmdlname
)refmdlname
in the top-level model variant configuration
topmdlconfig
. The variant configuration
topmdlconfig
must be defined in
varconfigdatatop
, the Simulink.VariantConfigurationData
object associated with the top-level
model.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023b