
How do I bring back the display elapsed real-world time for simulation in diagnostic viewer?
2 ビュー (過去 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
0 件のコメント
採用された回答
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
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!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Configure and View Diagnostics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!