Large RAM requirements for Simulink simulations
14 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!