Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
재원
재원 am 8 Dez. 2022
Beantwortet: Robert Höpler am 28 Jul. 2023
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??

Antworten (2)

Fangjun Jiang
Fangjun Jiang am 8 Dez. 2022
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 am 28 Jul. 2023
Not sure if it works on your embedded system

Kategorien

Mehr zu Event Functions finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by