Pause and play simulink in programming
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Is it possible to pause and play again Simulink block diagram through programming? For more clarification I have to say that I want to pause (not stop) my Simulink which is run with sim command in a script file. Is it possible and if so how?
2 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 26 Nov. 2012
set_param('modename','SimulationCommand','start')
set_param('modename','SimulationCommand','pause')
set_param('modename','SimulationCommand','continue')
set_param('modename','SimulationCommand','stop')
10 Kommentare
Kaustubha Govind
am 27 Dez. 2012
Sorry, I was away on vacation. Before you run the SIM command, could you run get_param(Name, 'StopTime') and make sure that the time returned is larger than the Pause block setting?
Weitere Antworten (1)
Nadir BOUTASSETA
am 10 Feb. 2013
I think that the problem you are facing can be solved by using S-Functions such that at each iteration you change reference values and compute your cost function.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!