Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Single Point Reads Timeout (-200474) with USB-9219 and NI-DAQmx 8.8

Hi,

We're seeing a problem similar to the one described here:

http://digital.ni.com/public.nsf/allkb/DCF9A8C0D770E2C38625738A0060B64A

except that the device is a USB-9219 and we're using NI-DAQmx 8.8.

 

I've attached a short C program based on the shipped example Acq-IntClk.c that shows the problem.

Run it like:

VC_Acq_IntClk.exe Dev3

where Dev3 is the actual USB-9219, this does not happen with a simulated device.

 

There's not too much to that program so I'm wondering if there is a bug with the USB-9219?

If so, what is the work around?

 

Many thanks,

 

 

Sherryl Radbil
Data Acquisition Engineer
The MathWorks
0 Kudos
Message 1 of 2
(2,913 Views)

Hi Sherryl,

 

When using on-demand timing, the USB-9219 chooses a default ADC timing mode of "High Resolution" (500 ms per sample). Try increasing the timeout from 0.1 to 0.6 or setting the ADC timing mode manually by calling DAQmxSetAIADCTimingMode(taskHandle, "", DAQmx_Val_HighSpeed). The "Conversion Time" specifications  in the NI 9219 Operating Instuctions and Specifications list the conversion time for each ADC timing mode.

 

If you configure a sample clock, the USB-9219 chooses a default ADC timing mode based on your sample clock rate.

 

Brad

Message Edited by Brad K on 07-15-2009 08:03 PM
---
Brad Keryan
NI R&D
0 Kudos
Message 2 of 2
(2,905 Views)