How to I ensure that a triggered subsystem is run after the supersystem in Simulink?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I have Simulink system that is connceted to a If Action Subsystem wiht two inputs and an AND condition for the IF block. The goal is to give the subsystem initial conditions from the supersystem, which are labeled with "qp". The supersystem should stop running after the first time the If Action Subsystem was triggered. The Subsystem however should be running for another 100 iterations and then output its results to the supersystem where it is displayed by a Scope block.
So far I managed to initialize the Super and Subsystem, but I couldnt manage to run the two system one after another rather than simultaniously as described above.
I would be very grateful for any help!!

댓글 수: 0
채택된 답변
Raj
2019년 9월 4일
You can do that by assigning higher relative priority to the supersystem. See below links for details:
추가 답변 (1개)
ariel bintang
2019년 11월 4일
편집: ariel bintang
2019년 11월 4일
Hi I have a question about your system; so you apply an initial condition through <qp> right? So inside your subsystem there you have another if/else block that is like "if the if statement is true then use In3 input but else apply <qp>"?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!