[Simuink] How to calculate the running time of one time step ?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi.
I am trying to upload my simulink model to a micro-controller, and I am struggling with an overun issue.
for debugging, I want to calculate the running time of each block at specific timestep.
I have tried <Simulink Profiler>, but it only calcuate the total running time of each block.
Is there any solution??
0 件のコメント
回答 (2 件)
Fangjun Jiang
2022 年 12 月 8 日
I remember the Profile shows the total time and how many times a block (or function) has ran. So you divide the total time by that number.
0 件のコメント
Robert Höpler
2023 年 7 月 28 日
This is a smart solution: https://de.mathworks.com/matlabcentral/answers/368315-measure-simulink-step-time
Not sure if it works on your embedded system
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!