Simulink Reference Previous page   Next Page
Simulink.SubsysDataLogs

Log signals in a subsystem

Description

Simulink creates instances of this class to contain logs for signals belonging to a subsystem (see Logging Signals in the "Working with Signals" chapter of Using Simulink). 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.

Consider, for example, the following model.

After simulation of this model, the MATLAB workspace contains a Simulink.ModelDataLogs object, named logsout, that contains a Simulink.SubsysDataLogs object, named Gain, that contains the log data for signals a and g in the subsystem named Gain.

You can use 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:

or

See Also
Simulink.ModelDataLogs, Simulink.Timeseries, Simulink.TsArray, unpack


Previous page  Simulink.StructType Simulink.TimeInfo Next page

© 1994-2005 The MathWorks, Inc.