Main Content

Simulink.ModelDataLogs

(Removed) Access signal data logs for data logged using ModelDataLogs format

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

    Description

    The Simulink.ModelDataLogs object contains all data logged from simulation in a model that logs data using the ModelDataLogs format.

    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.

    Properties

    expand all

    Logged Data Properties

    The Simulink.ModelDataLogs object contains properties with the signal data logged from simulation. The number, type, and names of the properties that contain logged data depend on the structure of the model 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

    The hierarchy of ModelDataLogs and SubsysDataLogs objects in a ModelDataLogs object matches the hierarchy of the model. The hierarchy of a Simulink.TSArray object for a bus matches the bus hierarchy.

    Model Properties

    Model or Model block name, returned as a character vector. For the top model, the Name property value is the name of the model. For a referenced model, the Name property value is the name of the Model block that references the model.

    Object Functions

    convertToDataset(Removed) Convert data logged using ModelDataLogs format to Dataset format
    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