01-24-2012 09:07 AM
Hi,
In my application I decided to swap over the DAQmx express vi, to the individual DAQmx components for my AO’s.
Trouble is i now seem to have a memory leak. Ive traced it all the way back to the new DAQmx VI’s so im sure I must have them either configured wrong, or incomplete. Those 2 AO tasks are within a while loop. My memory doesn’t grow with the express VI. With the current setup, refer to the attached png, it grows about 0.01GB/s
Any ideas?
01-24-2012 09:16 AM
Are you doing this in a loop?
I see you creating a task, and reading the task. But I don't see where you close the task.
If this is in a loop, open the task before the loop, read inside the loop, and close the task after the loop.
01-24-2012 09:18 AM
think i might have found the answer http://digital.ni.com/public.nsf/allkb/BAF29EE03747EE4B86256E9700541436?OpenDocument
ive removed the DAQmx Create Virtual Channel (VI) from the loop. cant believe i was silly enought to put it in int the first place! thats how you learn i supoose.
01-24-2012 09:19 AM
ye just found it. i dont that now. Thanks for you time and tip.
CHeers