The 'wait' command and m-code/simulink interaction
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pouya Jamali
am 6 Jun. 2014
Beantwortet: Pouya Jamali
am 7 Jun. 2014
Dear Community,
I'm controlling the simulation course of a simulink block diagram for control system design purposes. I do this through changing a property called 'SimulationCommand' to 'pause', 'continue', and 'start' values. As the script file immediately runs the next command line after the 'set_param' command, I couldn't plan my control loop. I was wondering if there is any way perhaps using the 'wait' command to prevent the script from running until the simulation result of the control sample is arrived. That is to wait until the simulink engine is paused by the 'Pause Block' which is defined inside the model.
2 Kommentare
Kaustubha Govind
am 6 Jun. 2014
pouya: Could you please elaborate on why S-functions (as suggested on the previous thread) do not solve your problem?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Naming Conventions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!