Cannot allocate sufficient memory for log variable
16 次查看(过去 30 天)
显示 更早的评论
Hi, guys!
I'm running a pretty long simulation in Simulink and in the end of it I have to save some variables. I am using the block to workspace, but before get anything saved I have the following error:
Data logging exceeded available memory
Cannot allocate sufficient memory for log variable. Consider disabling logging or reducing the length of the simulation.
Does anyone know how to deal with it? Is there a way to divide the data into two different variables in Simulink to avoid this situation?
Thanks!
0 个评论
回答(1 个)
Walter Roberson
2020-5-18
移动:Sabin
2025-8-5
The problem is not with any one variable getting too large: the problem is with the total size getting too large. You are logging to memory, and running out of available memory between the total of everything that is getting logged.
You can be more selective about what you log. For example perhaps you could use a Rate Transition https://www.mathworks.com/help/simulink/slref/ratetransition.html to sample a signal.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!