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


@Sam_Sharp wrote:
Instead of Build Array, you should pre-initialise your array instead with the required number of elements.

Yes just do remember that after you pre-initialize to use the replace array and not the build array again.  It may sound strange but I've seen beginner developers who heard using build array could be bad and to initialize the array to the size they needed.  They were not told to replace the elements within this new array and instead just kept on building an array in addition to the initialize array.

0 Kudos
Message 11 of 22
(1,612 Views)

85Mb might sound big, but it's far from full memory so it shouldn't really be a problem, it's rather the handling of data and operations on the text causing copies. There's no In Place element in 7.1, right?

 

So, you're reading a text file in line more, and reading all at once? Then you should have an array of lines and should be able to work on each and use replace array element. If you read it all as a massive chunk and change the text i assume LV will copy the full modifies text to a new memory location quickly causing problems.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 22
(1,584 Views)

SO: 🙂

 

- I have replaced my array subset with index array where possible ==> not important changement in my program

- i have replaced a build array in a for loop with one initialize array and insert into array ==> my program become worse than before :'( Before this changement i couldn't open 80Mb file but i could open/read/handle 40Mb file. Now LV put me in wait also for 15Mb files 😞 it don't returns me errors but i have to close LV with ctrl+alt+del

 

Why? 🙂

 

finally i have to try with chunking tecnique 🙂

 

do you have a tutorial or guide that expalin me step by step in which way can i implement this procedure? 🙂 maybe with some exaplems that i can read with LV 7.1

 

Thanks again

Using LabVIEW 7.1
0 Kudos
Message 13 of 22
(1,565 Views)

Hi gigi,

 


i have replaced a build array in a for loop with one initialize array and insert into array ==> my program become worse than before


 

Yes, that's true. But no one will suggest to use InsertIntoArray! You should use ReplaceArraySubset on a pre-defined array...

 

Btw. do you mind to attach your VI or even a picture of the BD?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 22
(1,563 Views)

replaced insert into array with ReplaceArraySubset Smiley Embarassed

 

anyway i obtained not visible improvement 😞

 

i can't attach my VI sorry....property of the company where i work 😞

what means BD anyway? 😄

 

Using LabVIEW 7.1
0 Kudos
Message 15 of 22
(1,554 Views)

Hi gigi,

 

BD is a shortcut for block diagram.

 

You're not able to create a small VI demonstrating the purpose of your big and company owned program?

You're not able to create and attach a small VI just showing the part of your program you're having problems with?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 22
(1,565 Views)

See attached picture (cant insert in IE)

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 17 of 22
(1,544 Views)

Hi Yamaeda,

 

gigi decided to create a new thread to continue on this topic...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 22
(1,536 Views)

yeah....

 

i changed my thread to try to focalize the point to read in chunks 🙂

 

here the new link

http://forums.ni.com/t5/LabVIEW/Read-file-in-chunks/td-p/2628857

 

anyway i tried to put put line mode on and put 1000 on count....i hoped to receive 1000 lines but it didn't happen...i read only the first row

 

in attachment the image

Using LabVIEW 7.1
0 Kudos
Message 19 of 22
(1,530 Views)

That sounds very strange, it's not just hidden outside the indicator? Try resizing it.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 20 of 22
(1,487 Views)