LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot several columms i've in an ascii file

I've a file in ascii that contains 5 columns with datas, something like:

1.232 2.3122 5.434 3.76656 4.76445
3.432 2.3722 6.434 3.76356 2.76545
1.533 7.3128 5.434 9.76856 3.75672
5.232 6.3132 6.434 7.76636 4.74745
1.423 9.3422 5.464 4.76666 8.76875

I'd like to make a vi in which i can choose the column i have to plot (that's 1,2,3,4,5) and then read the ascii file and plot the columm i've choosen.

I'm beginning in labview programming and i'm a little lost to do that. Could you tell me some steps i can follow or some subvis i can use to do this task?

Thanks,
Pamino
0 Kudos
Message 1 of 3
(2,529 Views)
Hello Pamino:

You can use "Read from Spreadsheet File.vi" which is located at File I/O Functions. It's output is a 2 dimensional array. Wire this array as input to the "Index Array" function, then specify the column that you wish to plot. Then plot the resulted array to where you want to.

I hope this helps. Please inform me if you have any other questions. 😉
Message 2 of 3
(2,525 Views)
Thanks, i'm going to try. If i have a problem i'll tell you (and if i haven't too).
0 Kudos
Message 3 of 3
(2,512 Views)