You can limit the size of logged data by specifying a maximum size for the data or a minimum amount of disk space to leave empty. This example uses several functions to get the current configuration of logging size limits.
Use the Simulink.sdi.getRequiredFreeSpace function to get the configured minimum free disk space requirement. The returned value uses units of GB.
minDiskSpace = Simulink.sdi.getRequiredFreeSpace;
Use the Simulink.sdi.getMaxDiskUsage function to get the configured maximum size for data logged to disk. The returned value uses units of GB.
maxSize = Simulink.sdi.getMaxDiskUsage;
Use the Simulink.sdi.getDeleteRunsOnLowSpace function to get the configured behavior when approaching the logging limits. When deleteRuns is true, data from prior simulations is deleted first to free disk space for continued logging in the current simulation. If deleting runs does not free up enough space, recording logged data is disabled for the current simulation. When deleteRuns is false, recording logged data is disabled for the current simulation and data from prior simulations is retained.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.