View progress of simulation when using sim command
显示 更早的评论
I am running a simulink model through matlab code using the sim() command. Normally when you run a simulink model you see a nice progress bar on the bottom right, showing you how far the compilation and then at which simulation time step it is. But this is not visible when I use the sim() command. Is there someway to get this information (mainly at which simulation time it is at the moment would be nice to know)?
Thanks!
采纳的回答
更多回答(2 个)
Brian Ventura
2024-4-19
1 个投票
Perhaps try the following command instead of sim(modelname)
>> set_param(modelname,'SimulationCommand','start');
Ramon
2017-1-18
0 个投票
My simulink compiler says that code cannot be generated for matlab function waitbar.
类别
在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!