Pause and play simulink in programming
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Kaustubha Govind
2012 年 11 月 26 日
set_param('modename','SimulationCommand','start')
set_param('modename','SimulationCommand','pause')
set_param('modename','SimulationCommand','continue')
set_param('modename','SimulationCommand','stop')
10 件のコメント
Kaustubha Govind
2012 年 12 月 27 日
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?
その他の回答 (1 件)
Nadir BOUTASSETA
2013 年 2 月 10 日
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.
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!