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

3 ビュー (過去 30 日間)
Andrea Amorosi
Andrea Amorosi 2021 年 12 月 6 日
回答済み: Dhruv 2024 年 5 月 1 日
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?

回答 (1 件)

Dhruv
Dhruv 2024 年 5 月 1 日
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!

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by