Optional config: MonitoringConfigReadonly clientBesides emitting monitored data through the observable created by the #start() method, an instance of this class will also collect data as it arrives.
Optional Readonly configReadonly dataThe collected data.
Use the clear() method before starting a new monitoring if you want to collect a fresh set of data.
Private finalize$Emit a value to stop the ongoing monitoring.
Readonly idsReadonly monitoringConverts the collected data to CSV format.
Generates a CSV header string using the provided device parameter IDs.
0x6040:00,0x6060:00,0x6071:00,0x607A:00,0x60FF:00
Finds the index of the timestamp field in the ids array.
The timestamp field is identified by object 0x20F0 and subindex 0x00.
IDs may be strings (parsed using splitDeviceParameterId) or tuples
in the form [deviceRef, index, subindex].
The zero-based index of the timestamp field in ids,
or -1 if no timestamp entry exists.
Extracts the timestamp column from the monitoring data.
Each entry of data contains an array of values aligned with ids.
If no timestamp index exists, an empty array is returned.
An array of numeric timestamps extracted from the monitoring data.
Computes the average time difference between consecutive timestamps.
Uses the values returned by timestampDiffs. If no diffs exist
(e.g., fewer than two timestamps), returns 0.
The average timestamp delta, or 0 if no diffs are available.
Computes the median time difference between consecutive timestamps.
Uses the values returned by timestampDiffs. If no diffs exist, returns 0.
The median timestamp delta, or 0 if no diffs can be computed.
Starts monitoring and, if specified, collects data until finalize$ emits a value.
NOTE: To receive and collect data, you must subscribe to the returned observable.
Computes differences between consecutive timestamps.
The result contains timestamps.length - 1 entries, where each value is:
timestamps[i] - timestamps[i - 1]
If fewer than two timestamps are available, an empty array is returned.
An array of time deltas between consecutive timestamps.
Generated using TypeDoc
The DataMonitoring class tracks and collects device parameter values.
Unlike startMonitoring, which returns an observable that never completes on its own, this class provides a
stop()method to complete the monitoring observable, enabling the use of operators liketoArray()as intended.