From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxClearTask of output channel takes 20 seconds

Solved!
Go to solution

I have a NiDAQmx device on NI PCI-6713.

 

I'm creating a task for analog output.

 

I stop the task, and clear it using DAQmxClearTask.

 

The call to DAQmxClearTask takes 20 seconds. On other systems I'm using the same call takes less than a seconds.

 

Can anyone help me understand & solve the problem?

 

My driver version is: 9.7.5

 

I'm working in windows 32bit, visual studio 2013.

 

 

Thanks,

Yoav Pinsky

 

 

0 Kudos
Message 1 of 2
(4,630 Views)
Solution
Accepted by topic author yoavsky

Hi Yoav,

 

Have you tried using NI IO Trace to help diagnose the issue? This tool may give you some insight into whether any unintentional or repeated calls are being made. You can find this tool in Start >> All Programs >>National Instruments. Once the tooled is opened just start the trace with the green arrow, run your code, then stop the trace.

 

Additionally, you may find this forum post helpful.

 

http://forums.ni.com/t5/PXI/Why-does-it-take-so-long-to-clear-a-task-with-DMA-transfer-using/m-p/237...

 

The problem in this case was due to driver and device conflicts. You may want to reinstall the DAQmx driver if you haven't attempted that already.

Message 2 of 2
(4,606 Views)