Specify a limit for the number of runs stored in the Simulation Data Inspector archive
Simulink.sdi.setArchiveRunLimit(
sets
the Simulation Data Inspector archive limit as specified by limit
)limit
. When
the number of runs in the archive reaches the limit, the Simulation Data Inspector starts to
delete runs from the archive on a first-in, first-out basis. When another run enters the
archive, the Simulation Data Inspector deletes the run that has been in the archive the
longest. A limit
of -1
indicates that the archive has
no limit for the number of runs it stores. A limit
of
0
means that the archive cannot contain any runs.
Tip
To retain data for only the current run, configure the Simulation Data Inspector to
automatically archive runs and set the archive run limit to 0
.
Simulink.sdi.getArchiveRunLimit
| Simulink.sdi.getAutoArchiveMode
| Simulink.sdi.setAutoArchiveMode