LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI PlotXY refresh

I am reading a data file from another PC that is updated every four seconds.  I want to do a xy plot with four traces.  How do I refresh the data for plots 1 through 4?  Everything I try always generates new plots.
0 Kudos
Message 1 of 2
(2,997 Views)

Paul,

You cannot change the data used by a plot. The way you refresh a plot is to delete it and then re-plot using the new data. From a performance standpoint, it's no less efficient to do this then it would be to change the data of an existing plot.

Just be sure to pass VAL_DELAYED_DRAW as the last parameter of DeleteGraphPlot, in order to avoid double-drawing, which would cause flashing.

Luis

0 Kudos
Message 2 of 2
(2,979 Views)