ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot multiple curves onto one graph in Labview

Solved!
Go to solution

Hello! So I am collecting some sampled data on a DAQ and plotting it on a plot in Labview using the "Build XY Graph". My issue is that I am looping through (using a while loop) to do multiple iterations of the test and I can't seem to figure out how to plot the multiple sets of data onto the same plot. Essentially this is what I have at the moment:

Capture.PNG

0 Kudos
Message 1 of 7
(5,033 Views)

Pictures of express VIs don't tell us how they are configured. What's in the dynamic data coming out of the DAQ assistant?

 

I would eliminate the express VI and build the xy graph in a shift register. One cluster of arrays per plot, and an array of such clusters per graph, one element per plot.

 

 

0 Kudos
Message 2 of 7
(5,018 Views)

The dynamic data coming out of the DAQ is simply 2 sets of a single sample of voltage. 

 

I understand building the xy graph using a shift register, but how do I get it to differentiate between the different plots? 

0 Kudos
Message 3 of 7
(5,009 Views)

A "curve" is named a "plot" in my answer. (see also

0 Kudos
Message 4 of 7
(5,004 Views)

Ah I understand, but is there a way to show the points plotting in real time as opposed to them all just all popping up after the VI is ran?

0 Kudos
Message 5 of 7
(4,969 Views)
Solution
Accepted by topic author ebohannon

It is difficult to help unless you show us your code. If you want to update incrementally, the graph needs to be in the inner loop.

 

Here is a simple example.

0 Kudos
Message 6 of 7
(4,965 Views)

I know and I apologize. My code has a lot going on and it was just the small part about plotting that I had a question on. This answers my question though! Thank you very much! 

0 Kudos
Message 7 of 7
(4,962 Views)