LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insufficient memory to perform operation

When trying to open large Tab demited text files (70Mb - 370Mb) using the "Read from Spreadsheet file" vi I recieve a message stating that there is "Memory is full" followed by "insufficient memory to perform operation" . It is strange because these files open normally with excel. I get the same fault irrespective of the  VI used to read from the text file .  Please note that the code simply reads and displays with no other operations taking place.   Any ideas please.
0 Kudos
Message 1 of 3
(3,396 Views)
0 Kudos
Message 2 of 3
(3,382 Views)

Hi caperng,

 

have you read through the KB articles provided by muks?

 

Let's do some calculations with your 370MB text file:

- loading the file into a string: takes 370MB

- converting the string to an array: takes (at minimum) another 370MB chunk of memory (yes, "Spreadsheet string to array" takes a lot of memory!!!)

- displaying the array in an indicator: takes (at minimum) another 370MB chunk of memory (each indicator has it's own copy of the data!)

 

So:

"code simply reads and displays" a 370MB textfile takes (at minimum) 1110MB of memory...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(3,374 Views)