Cannot allocate sufficient memory for log variable
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Walter Roberson
el 18 de Mayo de 2020
Movida: Sabin
el 5 de Ag. de 2025
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 comentarios
Ver también
Categorías
Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!