LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i add a plot to a previously plotted graph

Solved!
Go to solution

I have a graph that has plot.  I am gathering a new plot and want the graph to show how closely the new plot is following the previous(data is being gathered by a sensor over a fixed time.)  I want this to happen real time.  Is it possible?

Thanx much

 

 

0 Kudos
Message 1 of 4
(2,761 Views)
Solution
Accepted by topic author amazed

Graphs do not maintain a history, so when you plot something to a graph, you are plotting it fresh.  Any information that was already in the graph gets replaced.

 

What you need to do is store the information you are already plotting to the graph in a shift register.  Now when you want to add new data, you add that to the data in the shift register and send it to the graph again.

0 Kudos
Message 2 of 4
(2,751 Views)

Thankyou Ravens Fan 

0 Kudos
Message 3 of 4
(2,741 Views)

Alternately, you can use the Value property or a local variable of the graph to get the old data, add your new data to the old, and replot.  This may be easier in some situations, but will almost always be slower.  It also limits your ability to actively manage your memory use.

0 Kudos
Message 4 of 4
(2,709 Views)