LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting csv files to signals

for some reason it won't let me upload it with the .csv extension so just change the extension after you download it

0 Kudos
Message 21 of 31
(1,926 Views)

Your Read From Spreadsheet has the wrong delimiter for a csv file and of course reading as an integer is absolutely incorrect. Troubleshooting your problem was simple. You could have simply created an array indicator on the output or used a graph to show the waveform being read.

0 Kudos
Message 22 of 31
(1,915 Views)

Ok.  Then which delimiter do I need for a csv file?  What do I need to read it as?

0 Kudos
Message 23 of 31
(1,908 Views)

A comma.

 

Right now you have no delimiter wired, which means it will use the default value of a tab.

Message 24 of 31
(1,906 Views)

Alright then what?

0 Kudos
Message 25 of 31
(1,900 Views)

Then run it.

0 Kudos
Message 26 of 31
(1,894 Views)

The same error is appearing

0 Kudos
Message 27 of 31
(1,892 Views)

Which error is that?

 

Post the latest version of your VI.

 

Have you remembered to account for the fact that you .csv file appears to have some rows that look like header information and not data?

0 Kudos
Message 28 of 31
(1,884 Views)

It's the first error I mentioned: error 200077.

0 Kudos
Message 29 of 31
(1,881 Views)

Then what I said about the header rows applies.  The first several lines of your attached .csv file are messy and include text in there as well as numbers.  They aren't going to convert well to a number and will turn out to be zero.

 

Try putting some indicators on your 2-D double arrays coming out of the Read Spreadsheeet functions.  See if that data actually looks like what you think it should be.

0 Kudos
Message 30 of 31
(1,875 Views)