,System.Int32,System.Int32>
Defined in Type: DataLoggerUI
Namespace: CrissCross.WPF.Plot
Assembly: CrissCross.WPF.Plot.dll
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)
Summary: Subscribes to an observable sequence of data points and updates the data logger plot with incoming values.
Parameters
| Name | Type | Description |
|---|---|---|
observable | IObservable<(string? Name, IList | 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.