Help Center
Get variant configuration data object associated with model
Since R2022b
vcdo = Simulink.VariantManager.getConfigurationData(model)
vcdo = Simulink.VariantManager.getConfigurationData(model) returns the variant configuration data object associated with the model model.
vcdo
model
Note
To use this function, you must install the Variant Manager for Simulink® support package.
example
collapse all
This example uses:
Open the model slexVariantManagement.
slexVariantManagement
model = 'slexVariantManagement'; open_system(model);
Get the existing variant configuration object for the model.
Simulink.VariantManager.getConfigurationData(model)
ans = VariantConfigurationData with properties: Configurations: [1x7 struct] Constraints: [1x1 struct] PreferredConfiguration: ''
Get the name of variant configuration object associated with the model.
get_param(model, 'VariantConfigurationObject')
ans = 'vcd'
Name of the model, specified as a character vector or string.
Example: "slexVariantManagement"
"slexVariantManagement"
Data Types: char | string
char
string
Simulink.VariantConfigurationData
Variant configuration data object associated with the model, returned as an object of the Simulink.VariantConfigurationData class.
expand all
getFor
The getFor method will be removed in a future release. Use the Simulink.VariantManager.getConfigurationData function instead.
Simulink.VariantManager.getConfigurationData
Simulink.VariantConfigurationData | Simulink.VariantManager.activateModel
Simulink.VariantManager.activateModel
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office