Skip to content

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

public void UpdateDataLogger(IObservable<(string? Name, IList<double>? Value, int Axis, int nPoints)> observable)

View source

Summary: Subscribes to an observable sequence of data points and updates the data logger plot with incoming values.

Parameters

NameTypeDescription
observableIObservable<(string? Name, IList? Value, int Axis, int nPoints)>An observable sequence providing tuples containing the data point name, value list, axis index, and the number of points to retain. The value list must not be null or empty, and nPoints must be greater than zero.

Remarks

The method filters out invalid data points and ensures that only the most recent nPoints are retained in the plot. Data updates are processed on background and main thread schedulers to optimize responsiveness. If the chart is not paused, the plot is refreshed automatically after each update.