Main Content

Simulink.SubsysDataLogs

(Removed) Access data for signals logged inside subsystems

    Support for the Simulink.SubsysDataLogs object has been removed. Use another supported format, such as Dataset, instead. For more information, see Version History.

    Description

    The Simulink.SubsysDataLogs object contains the data for each signal, mux, and bus logged inside a subsystem.

    Creation

    Prior to R2016a, you could configure a model to log data using the ModelDataLogs format. Simulating a model with the Signal logging format parameter set to ModelDataLogs created a Simulink.ModelDataLogs object that contained the data for all logged signals. You could specify the name for the ModelDataLogs object using the Signal logging name parameter.

    A ModelDataLogs object contains a Simulink.SubsysDataLogs object for each subsystem in the model that contains logged data.

    Properties

    expand all

    Logged Data Properties

    The Simulink.SubsysDataLogs object contains properties with the signal data logged inside the subsystem the object represents. The number, type, and names of the properties that contain logged data depend on subsystem contents and the logging configuration.

    Property Name SourceLogged Data SourceValue
    Model nameTop model or model referenceSimulink.ModelDataLogs
    Subsystem nameSubsystemSimulink.SubsysDataLogs
    Signal nameSignalSimulink.Timeseries
    Mux or virtual bus nameMux or virtual busSimulink.TSArray
    Bus objectNonvirtual busSimulink.TSArray

    Subsystem Properties

    Name of subsystem represented by object, specified as a character vector.

    Object Functions

    unpack(Removed) Extract signal data from ModelDataLogs, SubsysDataLogs, or TSArray object into workspace variables
    who(Removed) List names of objects inside ModelDataLogs, SubsysDataLogs, or TSArray object
    whos(Removed) List name and type of objects inside ModelDataLogs, SubsysDataLogs, or TSArray object

    Version History

    Introduced before R2006a

    expand all