View progress of simulation when using sim command
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (2)
Brian Ventura
am 19 Apr. 2024
1 Stimme
Perhaps try the following command instead of sim(modelname)
>> set_param(modelname,'SimulationCommand','start');
Ramon
am 18 Jan. 2017
0 Stimmen
My simulink compiler says that code cannot be generated for matlab function waitbar.
Kategorien
Mehr zu App Building finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!