Time-value series for simulation data
simscape.logging.Series represents simulation data for a variable
in a model. The series is a representation containing time-value pairs for each simulation
step. The size of the series is determined by the number of simulation steps. You can also
limit the size by specifying the maximum number of logged steps when you set your data logging
Final nodes in the data logging tree correspond to all the variables logged for the model.
Final nodes do not have children nodes, and contain the series data logged during simulation.
To specify a
Series object, start with a full identifier path from the
workspace log variable name to the name of the variable node associated with the series, and
.series. For example,
simlog.Translational_Spring.v.series is the series containing the
simulation data for the variable
v (velocity) of a
Translational Spring block at the top level of a block
diagram, given the default workspace variable name,
This object is created automatically during simulation, as part of the simulation log workspace variable, if you enable data logging for the model.
points — Series size
Size, or number of steps, in the simulation series.
dimension — Dimension of variable
Dimension of variable represented by the series.
unit — Logical value that specifies object reuse rules
The default unit associated with the values in the series.
conversion — Thermal unit conversion type
Thermal unit conversion type (absolute or relative). For more information, see Thermal Unit Conversions.
Plot Simulation Data for a Series
Plot velocity of port R of a Translational Spring block.
Open the Mass-Spring-Damper with Controller example model:
This example model has data logging enabled for the whole model, with the
Workspace variable name parameter set to
Simulate the model to log the simulation data:
Plot velocity of port R of the Translational