MATLAB Answers

0

How can I find out the subsystem computation time for each tilmestep?

Bram Verlaan 님이 질문을 제출함. 17 Oct 2018
최근 활동 Bram Verlaan 님이 답변함. 18 Oct 2018
Hi all,
At the moment I am working inside Simulink, trying to simulate a real-time applicable control scheme. The entire simulation runs about 3-5x faster than the time over which is simulated.
However as at some instances the computational time required will be longer than at some other time instance. For my real-time application it is necessary that all these individual computational steps take less than a certain amount of time. Is it possible to find out how long a subsystem block takes to compute a step?
I was looking at the 'tic/toc' functions but don't clearly see how I should/could implement this... Or is there maybe another function/block for this? The solver profiler tool only shows me how large each step taken was, but not the time it took to compute this step.
I hope you guys can help me!
Kind regards,
Bram

  댓글 수: 0

로그인 to comment.

제품


릴리스

R2018b

답변 수: 2

TAB 님의 답변 18 Oct 2018

Use Simulation profiler (not Solver profiler) to check profile info of blocks in the model.

  댓글 수: 0

로그인 to comment.


Bram Verlaan 님의 답변 18 Oct 2018

Thanks TAB, I have found the Simulation Profiler.
However I still can only find an average computation time, while trying to localise peak performances. Is it possible to identify the time required for each individual call?
Kind regards,
Bram

  댓글 수: 0

로그인 to comment.



Translated by