How to reduce the time required to execute Simulink.sdi.clear?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm comparig a lot of simulation result using Simulink.sdi.compareRuns inside a for loop.
At the end of each cycle I have to run Simulink.sdi.clear to avoid memory being fullfilled.
I've seen that the greatest part of execution time is taken by the Simulink.sdi.clear execution.
Is there any way to improve it?
0 comentarios
Respuestas (1)
Dhruv
el 1 de Mayo de 2024
Hi Andrea,
To minimize the execution time of 'Simulink.sdi.clear' in your workflow, ensure that you are only logging essential data, which reduces the volume of data needing clearance.
Implement batch processing for your comparisons to decrease how often you need to clear the Simulation Data Inspector (SDI). Efficient memory management within MATLAB and structuring your workflow to limit unnecessary data accumulation can also help.
Additionally, staying updated with the latest MATLAB release version can provide performance improvements and new functionalities that may help optimize the clearing process.
Hope this helps!
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!