LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview not reading csv file properly.

Solved!
Go to solution

It's actually 1.732 if you open the file in Excel.

 

 

George Zou
0 Kudos
Message 11 of 17
(1,566 Views)
Solution
Accepted by dhibbit

See attached VI.

It uses Read Write ASCII-Unicode Text File.vi from the link you gave.

 

 

George Zou
Message 12 of 17
(1,564 Views)

Capture.PNG

 

Didn't seem to work.

 

EDIT: Nevermind, I accidentally grabbed the csv file I had already converted back to ASCII.

0 Kudos
Message 13 of 17
(1,554 Views)

It's for your original unicode csv file, not for the ASCII version.

 

George Zou
Message 14 of 17
(1,550 Views)

Yeah, I fixed it.

 

Thanks for all the help! 

 

(Hopefully Labview integrates Unicode support in the future)

0 Kudos
Message 15 of 17
(1,546 Views)

This does not correctly deal with the unicode but will extract the data from this particular file.

 

It reads the file as binary, removes the first 2 characters (which happen to be the only characters in the fole with values > x7F), then decimates the array. The decimation creates two arrays. One has standard ASCII characters adn the other has all the nulls. Convert the one with ASCII to a string and then to array. Since both string and numeric values are present, it converts both.

 

Lynn

Message 16 of 17
(1,531 Views)

> (Hopefully Labview integrates Unicode support in the future)

 

Kudo to this idea:  Support Unicode

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Support-Unicode/idi-p/921449

 

 

George Zou
0 Kudos
Message 17 of 17
(1,510 Views)