Azzera filtri
Azzera filtri

How to reduce the time required to execute Simulink.sdi.clear?

4 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Dhruv
Dhruv il 1 Mag 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!

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by