LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear arrays pragmatically

Thanks for that tip.

But my main question is how to dispose the inputs arrays just after these have been converted to images?

0 Kudos
Message 11 of 30
(1,441 Views)

Thanks for that tip.

My main question, however, is how to dispose the input arrays once they have been converted into images?

 

Regards

0 Kudos
Message 12 of 30
(1,437 Views)

I think you just wait for the subVI to finish executing.

0 Kudos
Message 13 of 30
(1,436 Views)

Mmmm...That does not seem to work.

When I open my program, LabVIEW consumes about 150MB.

Once I have executed, LabVIEW consumes 1,2 GB. 

All the arrays that were created as inputs of the different subVIs are stored. I would like to dispose them to solve this issue. 

0 Kudos
Message 14 of 30
(1,433 Views)

Are the subVI's front panels open when you run your program, or just the main VI?

0 Kudos
Message 15 of 30
(1,428 Views)

Just the main one. 

The problem was so bad at some point that I had to change the static calling of the SubVIs for dynamic.

Still, I have some issues with memory.  

0 Kudos
Message 16 of 30
(1,423 Views)

You're not doing somethilg silly like loading the image and then making that a local variable every time to each SubVI, are you?

0 Kudos
Message 17 of 30
(1,415 Views)

Can you try putting the Request Deallocation Function on your SubVI with a True constant wired to it and see if that helps?

0 Kudos
Message 18 of 30
(1,403 Views)
Nope. I'm not using local variables.
Already using request memory deallocation without solving the problem.
0 Kudos
Message 19 of 30
(1,398 Views)

Are you running the subVIs in parallel, causing the arrays to stack up memory at the same time? If you run the subVIs in series, then they should each allocate and release memory before/after the other subVIs run.

 

You said "just the main" VI's Front Panel is open. So why can't you make the subVIs inline to ignore that memory allocation required of displaying on the front panel?

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 20 of 30
(1,376 Views)