Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

memory leak task cleared

I have an application that repeatedly needs to ouput a digital signal through a 6008 USB card using DAQmx. I include a small vi that does just that and displays the problematic behavior. This same vi is called as a sub-vi, without the while loop, in the application. It leaks memory at an alarming rate.

Are the tasks incorrectly closed in this? I use "Clear Task". I also tried using "Stop Task" instead, with no avail.

It is not really possible to reduce the number of times this vi is called in our application. Since the memory used accumulates rapidly, the program eventually grinds to a halt and crashes.

I wish to know how to correctly close this vi in order to free the memory.

Thank you,

Olivier Landry

0 Kudos
Message 1 of 2
(2,833 Views)
Found it. Even though all tasks use the same virtual channel, they all need to be cleared separately. This fixes the problem.

Thank you, and sorry for the inconvenience.

Olivier
0 Kudos
Message 2 of 2
(2,815 Views)