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