Simulink.SimulationData.Signal

Container for signal logging information

Description

Simulink® uses Simulink.SimulationData.Signal objects to store signal logging information during simulation. The objects contain information about the source block for the signal, including the port type and index.

Property Summary

Name

Description

BlockPathBlock path for the source block for the signal
NameName of signal element to use for name-based access
PropagatedNamePropagated signal name, if any
PortIndexNumeric index of port that was logged
PortTypeType of port that was logged: for signal logging, the port type is 'outport'
ValuesTime and data that were logged

Properties

BlockPath

Description

Block path for the source block for the signal

Data Type

Simulink.SimulationData.BlockPath

Access

RW

Name

Description

Name of signal element to use for name-based access

Data Type

character vector

Access

RW

PropagatedName

Description

Propagated name of signal element

Signal logging and root Outport block logging data for a signal captures the propagated signal name if the logging format is Dataset and:

  • For signal logging, you:

    • Mark the signal for signal logging and in the Signal Properties dialog box select Show Propagated Signals.

    • Enable Configuration Parameters > Data Import/Export > Signal logging.

  • For root Outport block logging, you select Configuration Parameters > Data Import/Export > Output.

The propagated signal name does not include angle brackets (<>).

Data Type

character vector

Access

RO

PortIndex

Description

Numeric index of port that was logged

Data Type

scalar real integer

Access

RW

PortType

Description

Type of port that was logged: for signal logging, the port type is 'outport'

Data Type

character vector

Access

RW

Values

Description

Time and data that were logged.

For an example of how to use the Values property and plot logged signal data, in the sldemo_mdlref_bus example, see “Logging Signal Data.”

Data Type
  • MATLAB® timeseries object

  • Structure of MATLAB timeseries objects (for bus signals)

  • Array of structures of MATLAB timeseries objects (for array of buses signals)

  • Array of MATLAB timeseries objects (for nonbus signals in a For Each subsystem)

  • MATLAB timetable object

  • Structure of MATLAB timetable objects (for bus signals)

  • Array of structures of MATLAB timetable objects (for array of buses signals)

  • Cell array of MATLAB timetable objects (for nonbus signals in a For Each subsystem)

Access

RW