Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

continuous, overwriting, waveform graph (.net)

How do I set up my waveform graph so that when I have filled a screen with plot data, the next data I add (at the beginning of the screen) - overwrites the present plot data. What I mean is - the graph stays visible as the new data is added.
[It makes the graph feel smoother]
 
I have tried:
double [] d; // data
double di; // increment resolution
 
plotY(d,0,di);
plotYAppend(d,di);
...
screen full
then
 
plotY(d,0,di); etc ...
Sadly instead of simply overwriting the first (d.Length) plots in the graph - this removes the whole graph from the screen and starts the grpah drawing afresh
 
Can anybody help ...?
 
Regards,
B.
 
0 Kudos
Message 1 of 3
(3,086 Views)

I guess what I am looking for here is something that will emulate the ActiveX graph "CNiGraph" and its method:

void PlotY(const CNiMatrix& y, double xFirst, double xInc, bool plotPerRow);

I am sure that this will simply overwrite the data in the history (from the xFirst point), rather than zero it all.

Can this be emulated in the .NET waveform graph control?

Thanks ...

0 Kudos
Message 2 of 3
(3,085 Views)

The WaveformGraph equivalent to the CNiGraph::PlotY overload that you mentioned is:

PlotYMultiple(double[,] yData, DataOrientation orientation, double start, double increment);

Please try this method and see if it accomplishes what you're looking for.

- Elton

0 Kudos
Message 3 of 3
(3,073 Views)