Main Content

Simulink.SimulationData.Signal

Container for signal logging information

Description

金宝app®usesSimulink.SimulationData.Signal在对象存储信号记录信息simulation. The objects contain information about the source block for the signal, including the port type and index.

Property Summary

Name

Description

BlockPath Block path for the source block for the signal
Name Name of signal element to use for name-based access
PropagatedName Propagated signal name, if any
PortIndex Numeric index of port that was logged
PortType Type of port that was logged: for signal logging, the port type is'outport'
Values Time 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 isDatasetand:

  • For signal logging, you:

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

    • EnableConfiguration Parameters>Data Import/Export>Signal logging.

  • For root Outport block logging, you selectConfiguration 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 theValuesproperty and plot logged signal data, seeLogging Intervals.

Data Type
  • MATLAB®timeseriesobject

  • Structure of MATLABtimeseriesobjects (for bus signals)

  • Array of structures of MATLABtimeseriesobjects (for array of buses signals)

  • Array of MATLABtimeseriesobjects (for nonbus signals in a For Each subsystem)

  • MATLABtimetableobject

  • Structure of MATLABtimetableobjects (for bus signals)

  • Array of structures of MATLABtimetableobjects (for array of buses signals)

  • Cell array of MATLABtimetableobjects (for nonbus signals in a For Each subsystem)

Access

RW