
How do I bring back the display elapsed real-world time for simulation in diagnostic viewer?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tobias Huth
el 11 de Jul. de 2025
Comentada: Tobias Huth
el 18 de Jul. de 2025
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
0 comentarios
Respuesta aceptada
Rahul
el 16 de Jul. de 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 comentarios
Rahul
el 18 de Jul. de 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!
Más respuestas (0)
Ver también
Categorías
Más información sobre Configure and View Diagnostics en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!