Simulink computational load of each subsystem (or block)

조회 수: 3 (최근 30일)
Renato Quartullo
Renato Quartullo 2021년 4월 19일
댓글: Rilwanu Ar Roiyyaan 2022년 9월 16일
Hi!
I have a Simulink model having several subsystems and blocks. I want to refine the computational time of my model, so I want to reduce the computational load of the entire model. To do this, I need to know which is/are the block in which the computational load is high, so I need a sort of run&time as in matlab. The commands tic/toc around sim(model) are not suitable because they only get the total elapsed time. How can I do? (I'm using Matlab 2019b)
Thank you in advance!

답변 (1개)

Paul
Paul 2021년 4월 19일
편집: Paul 2021년 4월 20일
Check the doc pages for the the Simulink Profiler, Solver Profiler, and various pages on how to optimize performance, if you haven't alredy.
  댓글 수: 2
Renato Quartullo
Renato Quartullo 2021년 4월 21일
Thank you, I used: set_param(mdl,'Profile','off'); and I solved it
Rilwanu Ar Roiyyaan
Rilwanu Ar Roiyyaan 2022년 9월 16일
Hello Renato
I am interested in what you are doing, trying to get computational load of particular block. Do you mind to share on how to do it?
Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by