Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66792

Read data from spreadsheet

$
0
0

Hi NI Community, 

 

I'm trying to read data from a .csv file (saved from Excel) in LabVIEW 2013 and cannot understand why I keep getting the same error.  I am using the "Read From Spreadsheet File" VI to accomplish this.  I need to read in the data and store it in an array.  When I try to compile and run the code on my myRIO, I get an error that says, "File not found.  The file might be in a different location or deleted.  Use the command prompt or file explorer to verify that the path is correct."

 

I have the file saved in the project folder with the rest of my files for this code, and that's the location I am giving to the Read From Spreadsheet VI.  I am running LabVIEW on a virtual machine with a shared drive on my Mac, but I tried saving the .csv locally and it still didn't work.  I was told it may have something to do with the fact that I'm running the code from the myRIO, not my computer where the file is actually stored, but I'm not sure.  Even if that is the problem, I wouldn't know how to solve it.  I have 3418 data points that I'm reading in, so I would really prefer to not have to manually put them into an array.

 

If anyone could help me figure this out, I would appreciate it immensely! 

 

Best, 
Emma


Viewing all articles
Browse latest Browse all 66792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>