Main Content

Simulink.TSArray

(Removed) Access logged data for mux or bus

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

    Description

    The Simulink.TSArray object contains the data for a logged mux or bus.

    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 and object contains a Simulink.TSArray object for each mux or bus logged in the model the object represents. A SubsysDataLogs object contains a Simulink.TSArray object for each mux or bus logged in the subsystem the object represents.

    Properties

    expand all

    Logged Data Properties

    The Simulink.TSArray object contains properties with the data logged for each element of the bus or mux the object represents. The number, type, and names of the properties that contain logged data depend on the structure of the mux or bus the object represents.

    Property Name SourceLogged Data SourceValue
    Signal nameMux or bus elementSimulink.Timeseries object
    Nested mux or virtual bus nameNested mux or virtual busSimulink.TSArray object
    Bus objectNested nonvirtual busSimulink.TSArray object

    Metadata Properties

    Signal logging name, 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