Skip to content

,System.Collections.Generic.IList{System.Double>

Defined in

Type: StreamerUI 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 StreamerUI(WpfPlot plot, IObservable<(string? Name, IList<double>? Value, IList<double> DateTime, int Axis)> observable, int fs, uint nSamples, int nPointsPlotted, string color, bool autoscale = true, bool manualscale = false, bool fixedPoints = false)

View source

Summary: Initializes a new instance of the StreamerUI class to display and update a streaming plot based on observable. data.

Parameters

NameTypeDescription
plotWpfPlotThe WpfPlot control used to render the streaming chart.
observableIObservable<(string? Name, IList? Value, IList DateTime, int Axis)>An observable sequence providing tuples containing the item name, value data, date/time data, and axis index for plotting.
fsintThe sampling frequency, in Hz, used for interpreting the data stream.
nSamplesuintThe number of samples to buffer for the streaming plot. Must be greater than 0.
nPointsPlottedintThe initial number of data points to display on the plot.
colorstringThe color used for the plot line and chart appearance.
autoscale = truebooltrue to enable automatic scaling of the plot axes; otherwise, false.
manualscale = falsebooltrue to enable manual scaling of the plot axes; otherwise, false.
fixedPoints = falsebooltrue to fix the number of points displayed on the plot; otherwise, false.

Remarks

The chart's item name is set from the first emission of the observable sequence. Chart appearance and cursor values are initialized using the provided color and plot control. The autoscale, manualscale, and fixedPoints parameters control axis scaling and point display behavior.

Exceptions

TypeCondition
System.IndexOutOfRangeExceptionThrown when nSamples is less than or equal to 0.