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

2 views (last 30 days)
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

Accepted Answer

Rahul
Rahul on 16 Jul 2025
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 Comments
Rahul
Rahul on 18 Jul 2025
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 on 18 Jul 2025
Hi Rahul,
A nice suggestion, I submitted the issue :-) Case 07960762
Thanks again, have a great day
Tobias

Sign in to comment.

More Answers (0)

Categories

Find more on Configure and View Diagnostics in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!