필터 지우기
필터 지우기

how can I change the active child subsystem in a Variant subsystem during simulation run time ?

조회 수: 6 (최근 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.

답변 (1개)

Bruno Rodriguez Esteban
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
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 ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Component-Based Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by