Variant control for variant subsystems with mask parameters?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello everybody,
I'm currently working a lot with referenced and variant subsystems and I'm wondering whether you could set the block mask parameters to control the variants.
I want a similar behavior as in the simulink PID(s)-block where you can choose the controller type via drop-down menus in the block mask. I don't see any possibility yet, to use other variables then the ones from the base workspace.
Any advice would be appreciated.
0 件のコメント
採用された回答
その他の回答 (1 件)
Nathan Crosty
2013 年 7 月 26 日
In the Variant Subsystem > Subsystem Parameters, there is a check box for "Override variant conditions and use the following variant"
Check this box and select which variant you would like to use. This will do exactly what you are asking for.
2 件のコメント
Nathan Crosty
2013 年 7 月 26 日
編集済み: Nathan Crosty
2013 年 7 月 26 日
I see. So, you can create a mask and make a parameter for variant choice. You can then use the Dialog Callback in the mask to set the following property of the variant model block: OverrideUsingVariant
参考
カテゴリ
Help Center および File Exchange で Component-Based Modeling についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!