ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting which spreadsheet columns to plot

Dear all,

I am a new user of LabVIEW, and at the moment I need to import some data from a CSV format spreadsheet and to plot some graphs-charts. The problem is that I have three columns of data. The time, the Voltage and the Current. I want two plots, one Voltage Vs Time, and one Current Vs Time. How can I select which columns each plot will use? So far, I use the Waveform Chart and the Waveform Graph tools, but despite my efforts, both of them are plotting both plots together. Any ideas?

Thank you all in advance!
0 Kudos
Message 1 of 2
(2,639 Views)
Under the array pallete you can select the index array function. This function will allow you to take a subset of the original array in this case a two dim array. So what you can see if you bring up the context help window and hover over the function is that you can input into a row and input into a column. If you want a specific point you specify the row and column kinda like in excel. If you want just a column only populate the column input. This will output the whole column. So you can do this and extract each of your columns. Then build a two d array with the build array function with the two column you want and wire it to a xy graph. This will plot the two arrays against eachother. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 2 of 2
(2,638 Views)