how can I change the active child subsystem in a Variant subsystem during simulation run time ?
4 ビュー (過去 30 日間)
古いコメントを表示
My goal is to change the active child subsystem in a variant subsystem during simulation at a specific time step.
I tried to do it by changing the Variant control value in the base workspace and then using this command :
set_param(model name, 'SimulationCommand' , 'Update');
This step changed the Variant control value but did not change the active child subsystem and therefore did not solve my problem.
0 件のコメント
回答 (1 件)
Bruno Rodriguez Esteban
2019 年 11 月 11 日
Hi Jonathan,
The active child subsystem cannot be changed at simulation time. For that, you'll have to use switches.
Regards,
Bruno.
2 件のコメント
AC
2022 年 3 月 21 日
Dear Sir, I have same problem i have to change active variant in any time during simulation. Still not possible with matlab 2021 or 2022 ?
Bruno Rodriguez Esteban
2022 年 3 月 21 日
Hi,
I am afraid so. Please see the documentation link below:
Kind regards,
Bruno.
参考
カテゴリ
Help Center および File Exchange で Subsystems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!