Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202507

Re: Is there a file size limit when using Read From Spreadsheet File?

$
0
0

Read from Spreadsheet File.vi is not very memory efficient with large files. It reads the entire file as a string and then converts it to a 2D array of DBL. The numeric array occupies 525600*27*8 = 113 MB. The string is of the same order of magnitude, with the exact size depending on the format and how many digits are stored for each value.  All the elements of an array must occupy contiguous memory. All the characters of a string must occupy contiguous memory. So if the memory allocated to LV has become fragmented by other operations before trying to read a file of that size, there is a significant probability that a memory error will occur.

 

Reading in segments as others have suggested is the most reliable way to read large files.

 

Lynn


Viewing all articles
Browse latest Browse all 202507

Trending Articles



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