LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Not enough memory to complete this operation" & "Memory is full"problems with Labview 7.1

I want to back up to basic. What are you really trying to achieve? You need to read a text file, which is some tab separated spreadsheet? Then modify some "cells", or do some string work on full lines? Then write back to another file?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 21 of 22
(550 Views)

@gigi85 wrote:

 

in attachment the image


Are you moving to end of file after opening it? You're checking file size in bytes, then trying to read that many lines (it wont match) while telling your loop to run bytes number of loops. Every 1000th read you add the read line to the total, which may, or may not (unsure) be the same line.

 

To explain in some numbers. You have a 85Mb text file of 25k lines (e.g. assuming long lines)

Your loop will spin 85 million times, reading the file and extract 85k lines ...

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 22 of 22
(542 Views)