LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dealing with large spreadsheet file

I need to access a large (over 200 MB) spreadsheet file (actually .csv file) quickly.  I need to select a portion of the table by rows and then display selected columns in a graph.  What is the best way to quickly do this?  Would it be best to covert the .csv file to a .tdms or another file format for faster or easier access?
0 Kudos
Message 1 of 5
(2,380 Views)

Read from Spreadsheet File.

 

How quickly do you want to read this file?

0 Kudos
Message 2 of 5
(2,362 Views)
I am currently reading through the file using Read From Spreadsheet File VI and it is taking 50 msec to get start and stop time.  I know which column contains the time data is in, so I'm just calling the VI 10000 rows at a time until it reaches EOF.  I then pull out the stop time in the last row.  In 50 msec I've gone through 130168 rows.  I would like to do this 10X faster.
0 Kudos
Message 3 of 5
(2,342 Views)

So you want to read a 200 MB file in 5 msec?

 

I don't think that is realistic.  That is 40 GB/sec.  Your hard drive isn't that fast.

0 Kudos
Message 4 of 5
(2,340 Views)
You initially said that you're trying to read only a portion of the data in the file based on a portion of rows. Is the data in the file formatted in such a way that you could directly go to the file position where you want to start reading (based on byte count) and then only read the amount of data that you need? For instance, are the rows a complete block as opposed to needing to fetch the 10th, 14th, 101st, etc..? That would cut down the time, but as Ravens Fan pointed out, you will still have real-world limitations on hard-drive throughput.
0 Kudos
Message 5 of 5
(2,329 Views)