Simulink.sdi.setAutoArchiveMode
Specify how Simulation Data Inspector manages simulation runs
Description
Simulink.sdi.setAutoArchiveMode(
configures the Simulation Data Inspector to manage simulation runs according to
archive
)archive
.
When you run multiple simulations in a single MATLAB® session, the Simulation Data Inspector retains results from each simulation so you can analyze the results together. Use the Simulation Data Inspector archive to manage the number of runs the Simulation Data Inspector retains and to visually manage runs in the user interface.
With automatic archiving enabled, when you start a simulation, the Simulation Data Inspector moves the prior run into the archive. In the user interface, prior runs automatically move into the collapsible Archive pane, and plots automatically update to show data from the current simulation.
With automatic archiving disabled, the Simulation Data Inspector does not move runs to the archive or automatically update plots.
Tip
When you enable automatic archiving and specify an archive run limit, the Simulation Data Inspector automatically manages the number of runs it retains. Once the number of runs reaches the specified limit, the Simulation Data Inspector deletes runs from the archive on a first-in, first-out basis.
For more information about how to control the amount of data logged from simulation, see Limit the Size of Logged Data.
Examples
Input Arguments
Version History
Introduced in R2018b