LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory cleanup in RT

Hi,
I have developed a VI in which I am using queues,arrays and Global variables. When I stop this VI,  I want to release all the memory for
  1. Queue
  2. Array
  3. Local variables

If I use relese Q operation for releasing queue memory then will it do the job? Also if VI is stopped all local variables will be removed from memory. Is my understanding correct?

 

 

0 Kudos
Message 1 of 2
(2,439 Views)
 
Release queue will deallocate the memory automatically, and arrays and locals are automatically handled, but you may want to watch out for memory performance when you use globals with arrays.  In most cases, globals and locals can be replaced by wires or action engines, which are more efficient and reduce race conditions.
0 Kudos
Message 2 of 2
(2,433 Views)