필터 지우기
필터 지우기

simulink to workspace vs to file which is faster

조회 수: 5 (최근 30일)
Robert Scott
Robert Scott 2023년 12월 17일
댓글: Robert Scott 2023년 12월 18일
I am running long simulink simulations.
That are taking days to run. I see the memory getting eaten alive on my computer.
The model is not complex but logging a lot of data over a long period.
Is there any advantage to log to a file instead of a workspace?
There are to workspace blocks and to file blocks.
Which is faster?

답변 (1개)

Walter Roberson
Walter Roberson 2023년 12월 18일
Logging to workspace is faster than logging to file.
However, if you log to file then if you interrupt the execution then you will still have (most of) the log file. And logging to workspace runs the risk of running out of memory.
  댓글 수: 1
Robert Scott
Robert Scott 2023년 12월 18일
Thanks
It doesnt really mater at this point i found out.
I thought it was the logging. My model ran blazing fast with a home brew proportional controller in it. ~ 3hours
I needed the integrator for zero error and put in a simulink PID block.
Now my model will literally take 78 days to run at present speed. I cant remember a time when i built a simulink model that actually ran in a reasonable amount of time.
The model is highly optimized going with the normal math works suggestions. I clearly cant wait 78 days for this. Im going to end up having to swtich to some other tool.
The model with the simlulink pid even set at a reasonable discrete internal of 20 hz literally made the tool unusable.

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

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by