[Simuink] How to calculate the running time of one time step ?

1 次查看(过去 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??

回答(2 个)

Fangjun Jiang
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.

Robert Höpler
Robert Höpler 2023-7-28
Not sure if it works on your embedded system

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by