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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ