Running subsystems individually in Simulink
Ältere Kommentare anzeigen
Good day all, I am currently having trouble with my Simulink model. There are 2 subsystems A and B. I would like to make subsystem A run first then using the data produced, run subsystem B. Is there a function of Simulink block i could use to execute this?
I have tried using trigger and enable with a step input of 10sec before subsystem B but it didn't work. I have tried a store memory but it didn't work too. A Variant subsystem is considered but as the input to both subsystems A and B are different, i assume it would not work as well.
I would appreciate the help and support i can get from you guys! Thank you very much!
3 Kommentare
Zack Peters
am 7 Apr. 2016
Hi SY,
If you want A to run first AND you want data from A to run into B, then you likely will only need to connect A->B. Another possibility is the use of function call subsystems for A and B and some sort of scheduler (Stateflow chart or MATLAB function block).
Perhaps you could supply a simplified example model to demonstrate the 2 subsystems and a brief description of how you expect the model to behave.
~Zack
SY Koh
am 8 Apr. 2016
Praneet Kala
am 16 Okt. 2020
I would use and atomic subsystem(https://www.mathworks.com/help/simulink/slref/subsystem.html) unless you want to buffer and collect all data from A and pass it into B. The atomic subsystem will set the execution order of A to run first and then only once process will it pass data to B.
Antworten (1)
Hatice OKUMUS
am 15 Jun. 2021
0 Stimmen
HI SY could you solve ypur problem?
Kategorien
Mehr zu Subsystems finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!