Simulink progress from command line
이전 댓글 표시
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
답변 (1개)
Kaustubha Govind
2011년 10월 6일
1 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Naming Conventions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!