Skip to content

← diagnostics package

DataCounter

Counts data passing through the node in a given stream, and prints a log message every n seconds (configurable) with the number of samples received (along the time axis), since last check as well as total so far.

This information is also output in a separate port in the form of a dictionary. Counts signal streams with time axes only. Optionally updates a popup window with this information. Version 0.2.1

Ports/Properties

data

Data to process.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: INOUT

stream_names

The stream(s) for which to count the data packets passing through. If empty, counts data for all signal streams. (Event streams are ignored.)

  • verbose name: Stream Names
  • default value: []
  • port type: ListPort
  • value type: list (can be None)

notification_interval

Interval, in seconds, at which a log message is printed and the counter window updated (if popup_window is True).

  • verbose name: Notification Interval
  • default value: 5
  • port type: IntPort
  • value type: int (can be None)

Pop up and update a counter in a window. If false, only log messages will be printed.

  • verbose name: Popup Window
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)