How to eliminate delays in drawing a graph during modeling in Simulink, in a dashboard?

조회 수: 3 (최근 30일)
I work in Simulink.
I am making a model with cyclic calculations. The model is complex, I’m struggling with speed, trying to optimize the calculations.
To visualize the results of the cycles during the calculations, I would like to use a graph. I took it from the dashboard...
But the results are not displayed on the graph in simulated time. There are long delays in displaying monitored parameters on the graph.
Sometimes the display is formed only after all modeling cycles have been completed.
Is it possible to eliminate the delay in drawing graphs in Simulink, in a dashboard?

답변 (2개)

Sara Nadeau
Sara Nadeau 2023년 10월 7일
Have you looked into any of the limitations listed in the documentation for the Dashboard Scope block?
Notable limitations include:
  • If the Dashboard Scope block is inside a referenced model, the plot does not update during simulation.
  • No support for rapid accelerator simulations.
  • Signals that are reduced through optimizations such as block reduction or accelerator mode aren't displayed in the plot. To view such a signal, mark the signal for logging.
Does the plot update after the simulation ends?
  댓글 수: 9
Sara Nadeau
Sara Nadeau 2023년 10월 9일
Ah, I see. I'm not sure beyond those limitations what might explain these behaviors that you describe.
Unfortunately, I'm also not aware of any setting that would allow you to force updates every calculattion cycle.
Alex K
Alex K 2023년 10월 9일
I thought/hoped that maybe there was a special command that would forcefully update the dashboard in Simulink

댓글을 달려면 로그인하십시오.

Image Analyst
Image Analyst 2023년 10월 1일
I don't know Simulink, but it MATLAB you'd call
to force an immediate update/refresh of the screen and plots.
  댓글 수: 2
Alex K
Alex K 2023년 10월 1일
Thanks for the recommendation!
I tried it, unfortunately, the graph on the dashboard did not start updating.

댓글을 달려면 로그인하십시오.


Help CenterFile Exchange에서 Control Simulations with Interactive Displays에 대해 자세히 알아보기


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by