Change the size of a log in simulink
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a signal output that goes to a ToWorkspace block in simulink. When I try to run the project I get the following error "This signal has an element size of 193 MB. The maximum element size for logging is 90 MB".
Is there anyway to remove the 90MB limit?
Thanks!
2 comentarios
stozaki
el 27 de Mayo de 2022
What is the mat file version set to? Does an error occur even if I set the mat file version to 7.3?
Respuestas (2)
Paul
el 27 de Mayo de 2022
Double click the ToWorkspace block and increase the Decimation parameter.
If you really need all of the data, maybe something more exotic like sending the data to one ToWorkspace for the initial portion of the simulation and to a different ToWorkspace for the final portion of the simulation.
3 comentarios
Paul
el 27 de Mayo de 2022
That sounds odd, I guess I don't understand what that error message means.
This doc page may be of interest.
Sara Nadeau
el 31 de Mayo de 2022
Does it make sense to you that each sample you log with the To Workspace block is that big? Is there a way to refactor your model to log that data in smaller pieces?
I believe that this limitation is on the size of each data point you log, so it makes sense that decimation (logging fewer data points) doesn't help. I suspect that the same limitation applies regardless of how you log the data, so logging to file likely isn't a solution either.
0 comentarios
Ver también
Categorías
Más información sobre Programmatic Model Editing 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!