Set intervals for logging
Category: Data Import/Export
Use a real double matrix with two columns.
The matrix elements cannot be
You can specify as many intervals as you want.
Each row defines the start and end times for an interval.
Intervals must be disjoint and ordered. For example, you can specify these
The logging intervals apply to data logged for:
The To Workspace block
The To File block
The logging intervals do not apply to final state logged data, scopes or streaming data to the Simulation Data Inspector.
PIL simulation mode does not support logging intervals. Simulink® ignores specified logging intervals, without displaying a warning.
SIL simulation mode supports logging intervals for data logged to a
Simulink.SimulationOutput object. In SIL mode,
Simulink ignores specified logging intervals, without displaying a
Data logged to a To File block
MAT-file logging (enabled with the MAT-file logging configuration parameter)
The interval times that meet either of these two conditions do not return logged data:
The time is before the simulation start time.
The time is after the simulation stop time.
Interval times that meet these conditions do not cause a warning.
All logged data, except for data logged to a To File block, is stored in the object you specify for the Single simulation output parameter. Data for the To File block reflects the specified intervals, but is stored in the file associated with the block.
To prevent logging of To Workspace blocks, set Logging
intervals to an empty matrix (
If you set Decimation to
the logged data is for alternating times in the intervals. In other words,
data is for times 2, 4, and 8.
If you set Limit data points to last to
4, then the logged data is for the last four times in
the intervals. In other words, data is for times 4, 7, 8, and 9.
Simulation Stepper rollback reflects logging intervals. If you change the logging intervals of a simulation before rollback, logging:
Includes data starting with the first step after the rollback
Does not include data for time steps that are outside of the original logging intervals
This parameter is enabled only if you select the Single simulation output parameter.
|Type: real double matrix with two columns|