LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading data from csv causes issues

Hey everyone,

 

So I am using Labview for data reduction and one of the things I need to do is read a data file and process it a certain way.

The basic problem I am having is my data file is in .csv so when i load the file, the data that I am seeing comes with these "" marks and a space.

I don't understand why and sometimes because of this, some of processing loops don't execute properly. Image attached.

 

When i convert the csv to a txt file and then use the read delimited spreadsheet function everything works perfectly. But I have to convert csv to txt everytime which is a pain.

 

Does anyone have any suggestions? Thanks in advance!

Silverfang_0-1726850704795.png

 

0 Kudos
Message 1 of 6
(103 Views)

Do you happen to have the CSV file handy?

0 Kudos
Message 2 of 6
(82 Views)

Attached

0 Kudos
Message 3 of 6
(79 Views)

I read the above CSV file and got what I expected.

 

jcarmody_0-1726857175946.png

 

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

0 Kudos
Message 4 of 6
(49 Views)

@Silverfang- wrote:

Hey everyone,

 

So I am using Labview for data reduction and one of the things I need to do is read a data file and process it a certain way.

The basic problem I am having is my data file is in .csv so when i load the file, the data that I am seeing comes with these "" marks and a space.

I don't understand why and sometimes because of this, some of processing loops don't execute properly. Image attached.

 

When i convert the csv to a txt file and then use the read delimited spreadsheet function everything works perfectly. But I have to convert csv to txt everytime which is a pain.

 

Does anyone have any suggestions? Thanks in advance!

 

 

Not all CSV files are created equally, for instance Excel can save a file to FIVE different types of CSV files.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 6
(40 Views)

@Silverfang- wrote:

When i convert the csv to a txt file and then use the read delimited spreadsheet function everything works perfectly. But I have to convert csv to txt everytime which is a pain.

 

 

 


As others have already said, there are no such characters in this attached file. You can easily see this in notepad.:

 

altenbach_0-1726868413588.png

 

Can you explain what you mean by "convert csv to txt"? Both format are plain text files, there is nothing to convert!

Are you just renaming the extension or do something more evil, such as using some questionable program found on the web? 

0 Kudos
Message 6 of 6
(17 Views)