Filter löschen
Filter löschen

Large RAM requirements for Simulink simulations

14 Ansichten (letzte 30 Tage)
michaelborg
michaelborg am 24 Sep. 2013
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?

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 25 Sep. 2013
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.

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by