Container for subsystem signal data logs
Note
Before R2016a, the Simulink.SubsysDataLogs
class
was used in conjunction with the ModelDataLogs
logging
data format. Starting in R2016a, you cannot log data in the ModelDataLogs
format.
Signal logging uses the Dataset
format.
However, you can use data that was logged in a previous release
using ModelDataLogs
format.
In releases before R2016a, Simulink® created instances of
this class to contain logs for signals in a subsystem models were
logged in ModelDataLogs
format. Objects of this
class have a variable number of properties. The first property, named Name
,
is the name of the subsystem whose log data this object contains.
The remaining properties are signal log or signal log container objects
containing the data logged for the subsystem specified by this object's Name
property.
For example, suppose you have this logged data from a model run in a release earlier than R2016a:
Simulink.SubsysDataLogs (Gain): Name elements Simulink Class a 1 Timeseries m 2 TsArray
You can use either fully qualified log names or the unpack
command to access the signal
logs contained by a SubsysDataLogs
object. For
example, to access the amplitudes logged for signal a
in
the preceding example, you could enter the following at the MATLAB® command
line:
data = logsout.Gain.a.Data;
or
>> logsout.unpack('all');
data = a.Data;
Load Signal Data for Simulation, Simulink.ModelDataLogs
, Simulink.Timeseries
, Simulink.TsArray
, Simulink.SimulationData.Dataset
, who
, whos
, unpack