09-17-2015 11:42 AM
Thanks for that tip.
But my main question is how to dispose the inputs arrays just after these have been converted to images?
09-17-2015 11:44 AM
Thanks for that tip.
My main question, however, is how to dispose the input arrays once they have been converted into images?
Regards
09-17-2015 11:44 AM
I think you just wait for the subVI to finish executing.
09-17-2015 11:48 AM
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.
09-17-2015 11:50 AM
Are the subVI's front panels open when you run your program, or just the main VI?
09-17-2015 11:52 AM
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.
09-17-2015 12:19 PM
You're not doing somethilg silly like loading the image and then making that a local variable every time to each SubVI, are you?
09-17-2015 12:33 PM
Can you try putting the Request Deallocation Function on your SubVI with a True constant wired to it and see if that helps?
09-17-2015 12:37 PM
09-17-2015 01:27 PM - edited 09-17-2015 01:28 PM
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> ---'