Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

"DAQmxCreateTask" big delay !!

Hello,

I am working with the NIDAQmx driver with Visual Basic 6.0, my DAQ card is the PCI 6251, and I am using the "nidaqmx.dlb".

The problem is, the first time I create a task and a channel, the application take lots of time to start. Usually 5 to 6 seconds !!

After that, it works fine.

Is there any reason, or procedure to avoid this delay? Am I doing something wrong?

Thank you. Nuno.

0 Kudos
Message 1 of 2
(3,087 Views)
Yes- the first time you make a call to the driver the OS loads the libraries and initializes the system.

I don't know if there is a way to pre-load everything to eliminate that delay. The easiest thing to do is to make some throw-away call to DAQmx early in the program so that the delay comes at a time that's not critical. Ask it to read a property like the DAQmx version or get some other information about the system, just to make DAQmx load and initialize.
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 2 of 2
(3,082 Views)