LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"read spreadsheet file" & "excel get data" get different results (bug?)

Solved!
Go to solution

I want to get data from .csv file, but find a problem & hope someone can tell me the reason.

 

There are some "double quotation marks" in csv file. for example:

Castlenet;"CastlenetSAS603";"2N38024000001";" 

 

I read the csv file with "read speadsheet file" function  but get an abnormal result as below:

"Castlenet;""CastlenetSAS603"";""2N38024000001"";""

It seems that every "double quotation marks" appear twice time

 

But another function " excel get data"  indicates the right data as below

Castlenet;"CastlenetSAS603";"2N38024000001";" 

 

I try them on different OS (XP or Win7) and different labview version(8.5,8.6); but get the same result

read speadsheet file can't indicates the right data, does anyone can help on this?

 

read csv bug.JPG

0 Kudos
Message 1 of 2
(2,420 Views)
Solution
Accepted by topic author DNF小号
You would have to do a search and replace to eliminate the quote marks. I believe the quotes in a csv file are allowed in a proposed standard but the LabVIEW implementation does not fully comply with the proposal.

There is an idea exchange post on this that I can't find right now.
0 Kudos
Message 2 of 2
(2,392 Views)