MATLAB 帮助中心
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: [1×7 struct] Constraints: [1×1 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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处