필터 지우기
필터 지우기

Large RAM requirements for Simulink simulations

조회 수: 14 (최근 30일)
michaelborg
michaelborg 2013년 9월 24일
Hi,
I have developed a Simulink model with a number of MATLAB m-function blocks that have to handle a number of 3D and 4D arrays. I have to run simulations of at least 3600s with time step ranging from 0.01 to 0.05s. The issue that I am having is that in Rapid Accelerator mode, the model requires large amounts of RAM (over 2MB per second of simulation). Whilst I can upgrade my computer RAM, I would like to understand why so much RAM is being used. The Simulink model is not saving any of the 3D and 4D arrays to the workspace, and can be deleted at every time step. The use of such large amounts of RAM are slowing the simulations somewhat as well. Running the model in Normal mode results in a simulation that takes longer to run as it proceeds with the simulation, so I would prefer to avoid using it. Can anyone help?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 9월 25일
While this doesn't directly answer your question about why a large amount of RAM is being used, one solution for you might be to use the SimState save/restore functionality to break your simulation into smaller intervals, so that the amount of memory used doesn't rise continuously with the duration of simulation.

카테고리

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