sdi.Reposi​tory.clear​Repository​File never ends

9 visualizaciones (últimos 30 días)
Pedro Pablo Mitidieri
Pedro Pablo Mitidieri el 12 de Dic. de 2022
Editada: Stefanie Schwarz el 22 de Ag. de 2025
I have some simulations that creates a lot of temporary files. I need to run several of them and the memory usage of the temporary .dmr file increases a lot. I have had situations with 50Gb of data saved in the temporary files.
I found that the running "sdi.Repository.clearRepositoryFile" solves the issue, the file is deleted. The problem is that the line of code may sometimes stop working and it would freeze matlab. So I have to kill it and open it again.
Does anyone knows what may be the issue with that line of code?

Respuestas (1)

Stefanie Schwarz
Stefanie Schwarz el 22 de Ag. de 2025
Editada: Stefanie Schwarz el 22 de Ag. de 2025
Using sdi.Repository.clearRepositoryFile is not recommended. You can use Simulink.sdi.clear to clear all logged data in a running MATLAB session.
Note that DMR files are automatically deleted when MATLAB closes. Only when MATLAB terminates unexpectedly (for example, when MATLAB crashes), DMR files may remain in the temporary directory. These DMR files should only be deleted while MATLAB is closed. Please see:
For strategies to reduce the size of DMR files to begin with, see:

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by