LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read out 2nd and 3rd columns of a file

Dear all there are 3 columns of my file, I need to take the second column value as my X value, take 3rd column value times 10 as my Y value. but I don't need the first value, How can I do this? the labview program I made always take 1st column as X, and take 2nd column times 10 as Y. that is not what I want I put my data file and the program I made in the attached files, Thank you for any help!!! Jing
0 Kudos
Message 1 of 5
(2,753 Views)

You didn't attach any files, but is your file in the form of a 2D array?  Why can't you just index the second column and then index the third column and multiply by 10?  Are you wiring a 1 into the index (col) of your Index Array?

 

Cheers,

Clint

0 Kudos
Message 2 of 5
(2,748 Views)
Hello... 🙂 it will be more clear if you attach your file... But you can try as Clint said if your file is in form of 2D array or your retrieving data in array format... 🙂
0 Kudos
Message 3 of 5
(2,742 Views)
...anyway, you can import your file as text (array of strings), discard the first data of each string with the "string subset" function, and save it back to a temporary file. This temporary file has now your former 2nd column as first, and former 3rd as second.
0 Kudos
Message 4 of 5
(2,731 Views)

I already sloved it,

Thank you for all your help

 

Jing

0 Kudos
Message 5 of 5
(2,712 Views)