How to I ensure that a triggered subsystem is run after the supersystem in Simulink?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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!!
![Screenshot from 2019-09-03 18-34-54.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236867/Screenshot%20from%202019-09-03%2018-34-54.png)
0 Commenti
Risposta accettata
Raj
il 4 Set 2019
You can do that by assigning higher relative priority to the supersystem. See below links for details:
Più risposte (1)
ariel bintang
il 4 Nov 2019
Modificato: ariel bintang
il 4 Nov 2019
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 Commenti
Vedere anche
Categorie
Scopri di più su Subsystems in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!