LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

x y values chart

Solved!
Go to solution

Is there any way to plot a graph that keeps it's history with each set of loop iterations or plot a chart using xy points?

 

Thanks,

 

James

0 Kudos
Message 1 of 4
(2,920 Views)

A chart will keep the history automatically for you. For a graph, you will have to keep the history in a shift register and add onto it when you have new points.

Message 2 of 4
(2,902 Views)

No.  Only charts maintain history.  Graphs do not.  And charts do not have XY capability.

 

There is an Express VI that  buffers XY data for graphs.  On the front panel drop the EX XY Graph.  It drops an XY graph on the block diagram along with the Build XY Graph Express VI.

Message 3 of 4
(2,901 Views)
Solution
Accepted by topic author JCG77

JCG77 a écrit :

Is there any way to plot a graph that keeps it's history with each set of loop iterations or plot a chart using xy points?

 

Thanks,

 

James


If your data is not monotonic on the x-axis and you have lines between data points the graph display can get very messy if the history lenght is significative.
Here is an example using shift registers (as suggested by Gregory). A single XY point is added every iteration.
XY Graph with memory (single point).png
Ben64

 

Message 4 of 4
(2,867 Views)