Simulink model in a for loop
1 回表示 (過去 30 日間)
古いコメントを表示
Hi at all, I have a problem when I run a simulink model inside a for loop.
More in detail when I run the model with the command:
set_param('model_name','SimulationCommand','start')
the script doesn't wait the end of the simulation before continue...
There some commands like the waitfor or the drawnow?
Thanks
M1tc4
0 件のコメント
採用された回答
Titus Edelhofer
2011 年 11 月 9 日
Hi Mitch,
I would usually suggest to use the function sim for running simulations, or is there any reason you can't use sim?
Titus
5 件のコメント
Titus Edelhofer
2011 年 11 月 9 日
Hi Mitch,
sorry, set_param was wrong, it's simset that you need to use
opt = simset('DstWorkspace', 'current');
and pass this to sim.
Sorry!
Titus
その他の回答 (0 件)
参考
カテゴリ
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!