Simulink progress from command line
Mostra commenti meno recenti
Hi. Does anyone know how I can assess Simulink simulation progress when the simulation is called from the command line or an .m file script? I'd rather not have a scope open (too slow) and the progress indicator in the Simulink window (assuming I have the model open) doesn't seem to update when the simulation is called from the command line.
Thanks in advance for any solutions or clues.
Andy
Risposte (1)
Kaustubha Govind
il 6 Ott 2011
1 voto
I don't know of a public API that you can use to query the progress of simulation, but if you're familiar with C-MEX S-functions, it should be fairly simple to write a custom block that can report the progress based on the simulation StopTime (ssGetTFinal) and current simulation step (ssGetT).
You can use ssPrintf to print to console.
Categorie
Scopri di più su Naming Conventions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!