ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Where am i going wrong?

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?

0 Kudos
Message 1 of 4
(2,435 Views)

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.

0 Kudos
Message 2 of 4
(2,427 Views)

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. 

0 Kudos
Message 3 of 4
(2,425 Views)

ye just found it.  i dont that now. Thanks for you time and tip.

 

CHeers

 

0 Kudos
Message 4 of 4
(2,424 Views)