Can I reference models with masks in variant ModelReference?

3 ビュー (過去 30 日間)
Andrew Stevens
Andrew Stevens 2018 年 6 月 25 日
コメント済み: Andrew Stevens 2025 年 2 月 3 日
Can a variant ModelReference be used with Models that define masks in R2017b? I have tried this for a pair of models with identical Parameter and mask sets and found no joy. The simulation appears to simply to ignore the model argument values specified for the variants in the Block Parameters Dialog and simply use those via the mask for the currently selected variant.
Worse, switching variant via Variant Manager etc resets the Parameter settings to the mask Defaults.
  2 件のコメント
Arjun
Arjun 2025 年 2 月 3 日
Can you please attach the model as it will be difficult to conclude anything without that.
However, one reason for this may be the way variant conditions are resolved. The resolution of variant conditions is done in the closest context i.e if same variables are defined in base, model and mask workspace then mask worksapce is preferred followed by model workspace and then base worksapce.
Kindly refer to the following documentation link for better understanding of storage locations of variant control variables: https://www.mathworks.com/help/simulink/var/variant-control-modes-in-variant-blocks.html#mw_3507ce0d-5290-4879-8778-71ae84dcc129
Andrew Stevens
Andrew Stevens 2025 年 2 月 3 日
Thanks for the response but this is now ancient history (2018!) - I'd need to do some serious archaeology to find the model. However, glancing at those pages of docs... glad I don't have to work with this stuff any more!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAuthor Block Masks についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by