Clear Filters
Clear Filters

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

4 views (last 30 days)
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?

Answers (1)

Dhruv
Dhruv on 1 May 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!

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!