How do I switch between subsystems which contain Simscape blocks, during simulation?

조회 수: 10 (최근 30일)
My subsystems are actuated via an external input which would change during simulation thus trigerring the switching of subsystems.

답변 (2개)

Swarooph
Swarooph 2016년 8월 23일
You can use Enabled Subsystems. The system execution here depends on an input control signal (positive value results in execution). So you could have technically 2 enabled subsystems that are mutually exclusive by using a boolean signal and a not of that signal, enabling the 2 different systems. Then use the merge block to combine the input.
  댓글 수: 1
Saif Sayed
Saif Sayed 2016년 8월 23일
If I use subsystems, the problem is that I want the same simscape connecting line to flow through each subsystem, so it's not even a physical signal but a connecting line which connects simscape blocks which I want to flow through my subsystems. Also, the merge block is used to get the output of the two subsystems, will I be able to implement and execute it when I have simscape connection lines as outputs of my subsystem?

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


Muhammed
Muhammed 2023년 7월 17일
Hallo,
ich würde gerne eine Modellbibliothek erstellen mittels Simscape, am besten auf Subssysteme aufteilen usw ist das möglich mit simscape falls ja wie soll man am besten vorgehen?

카테고리

Help CenterFile Exchange에서 Discrete Events and Mode Charts에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by