How do I bring back the display elapsed real-world time for simulation in diagnostic viewer?

조회 수: 6 (최근 30일)
Hello everyone,
my question is rather simple:
In the past, there was the eplapsed time for a simulation displayed as first line in the diagnostic viewer of simulink.
This is no longer the case.. but i liked that feature :-)
AND: if i export the diagnostics from the viewer, the information is there like this:
=== Simulation (Elapsed: 7:09 min) ===
Does anyone know, how to display this information wirthin the viewer?
Thanks, best wishes,
Tobias

채택된 답변

Rahul
Rahul 2025년 7월 16일
Hi Tobias,
I believe you are trying to display the elapsed time of simulations inside Simulink's Diagnostic Viewer in MATLAB R2024b.
Currently, I was not able to find any direct solution to enable this diagnostic property in the R2024b release. However, the same seems to be working as expected in the MATLAB R2021a release, where the elapsed times of simulation are being displayed in the Diagnostic Viewer after each simulation, as shown below:
Although, to achieve a similar behavior in MATLAB releases R2021b or later, you can follow the below mentioned workaround:
Right-click on the Diagnostic Viewer output and select "Copy Stage" or "Save Stage" to get a text version of the output, which includes elapsed times.Select the three dots on the far right side of the Diagnostic Viewer and select "Report" > "Save All" or "Copy All" to get each stage's output, including elapsed times.
To know more about various utilities of the Simulink Diagnostic Viewer, you can refer to the following documentation link:
Hope this helps!
  댓글 수: 3
Rahul
Rahul 2025년 7월 18일
Hi Tobias,
If you have a use case for the Simulink Diagnostic Viewer’s feature that shows the elapsed times for each simulation, you can create a support case by contacting MathWorks Technical Support using the following link:
Best!
Tobias Huth
Tobias Huth 2025년 7월 18일
Hi Rahul,
A nice suggestion, I submitted the issue :-) Case 07960762
Thanks again, have a great day
Tobias

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by