,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)
Summary: Initializes a new instance of the StreamerUI class to display and update a streaming plot based on observable. data.
Parameters
| Name | Type | Description |
|---|---|---|
plot | WpfPlot | The WpfPlot control used to render the streaming chart. |
observable | IObservable<(string? Name, IList | An observable sequence providing tuples containing the item name, value data, date/time data, and axis index for plotting. |
fs | int | The sampling frequency, in Hz, used for interpreting the data stream. |
nSamples | uint | The number of samples to buffer for the streaming plot. Must be greater than 0. |
nPointsPlotted | int | The initial number of data points to display on the plot. |
color | string | The color used for the plot line and chart appearance. |
autoscale = true | bool | true to enable automatic scaling of the plot axes; otherwise, false. |
manualscale = false | bool | true to enable manual scaling of the plot axes; otherwise, false. |
fixedPoints = false | bool | true 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
| Type | Condition |
|---|---|
| System.IndexOutOfRangeException | Thrown when nSamples is less than or equal to 0. |