LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Count active tasks

In my application, I'm creating a number of tasks with DAQmxCreateTask().
I stop and DAQmxClearTask() them when appropriate, but I have a suspicion
that I have a task "leak" since I sometimes get a DAQmx error with code -50352
(DAQmxErrorPALMemoryFull).

Is there a way to take a count of the number of active tasks? I'm using
LabWindows/CVI 7.1 under WinXP.

Thanks,
Chandan
0 Kudos
Message 1 of 2
(3,097 Views)
Hello chandan,

I see that you are getting the error 50352 (DAQmxErrorPALMemoryFull). Please refer to the following discussion forum for more information.

Why do I get error code -50352 , memory could not be allocated

Things you want to consider is how you are creating, arming, stopping your task.

In addition to those consideration, you can also use this property node to check what you have created.

How Do I Acquire a List of DAQmx Channels or Properties Using LabVIEW?

Take a look at these resources and let me know if this resolves your issue.

Regards,
  Sandra T.

Applications Engineer | National Instruments
0 Kudos
Message 2 of 2
(3,076 Views)