LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.csv to a string array

Solved!
Go to solution

Hi,

 

This is probably a simple problem, but I have a csv file with string values in one column and numbers in another.  For example:

 

Volume,    6

Diameter,  5

 

But much larger of a file.

 

I would like to be able to read the first column in and come up with an array of just the strings.  I have tried using the Read Text from file into the Spreadsheet string to Array into the Index Array functions, but I cannot seem to get this string array to work out, as it just comes up with 0's for any text.

 

If anyone can point me in the right direction it would be greatly appreciated. 

 

Thank You!!

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

Hi sean,

 

you have to convert to an array of strings! Then you will receive your first column as text data...

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,534 Views)
Solution
Accepted by seanscal1

Cross-posted to LAVA.  I posted a reply there.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 4
(2,528 Views)

Thanks for the help guys this helped a ton! Sorry I'm such a noobie! 

0 Kudos
Message 4 of 4
(2,511 Views)