LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

request deallocation

I have a problem with my Request Deallocation function. Apparently, it doesn't seem to reclaim the total amount of memory from a subVI.

 

To simplify the project that I'm working on. I have a top-level VIs for user-interface, acquisition and signal presentation and than, I have a number of VIs that do the specific analyses. The signal (waveform) is passed to the subVI as a global reference on a array of waveforms that actually resides in one of the top-level VIs , it is there analyzed and, sometimes, written back to the original array.

 

Since, I'm working with rather large amount of data (several millions of dbl points), I can't let each of those subVIs retain a copy of last analyzed signal for them self. That is why I tried using the Request Deallocation function but it only seems to free a part (a quite insufficient one) of memory. Are there any known reasons why is it behaving in this manner?

 

I've tried to make an simple example of what is going on and to attach it with this post, but in the simplified example the deallocation is complete, so I really don't know where have I gone wrong.

 

Thanks in advance!

0 Kudos
Message 11 of 13
(1,304 Views)
Hi Salac,

The "Request Deallocation" function will only deallocate UNUSED memory - so could it be that you are still keeping a handle to the large array? What are you changing from the original VI to the one that doesn't show the behavior?

It would probably help to see your code even though it might be large. Is there a posibility that you can submit it?

Thanks!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 12 of 13
(1,290 Views)

Hi Philip,

 

I understand the problem regarding the array handle. Could you please look into this post as well? it is on the same lines.

 

http://forums.ni.com/t5/LabVIEW/labview-memory/td-p/1547182

 

Thanks

 

Vivan

Vivan Sachdeva
Lasers for Science Facility
Rutherford Appleton Laboratory
STFC
Oxford
United Kingdom
0 Kudos
Message 13 of 13
(819 Views)