Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
4 ratings:
 3.25 out of 5     Rate this Document

Error -200016 when using the "Cont Gen Wfm-Int Clk" example with my DAQPad-6015/6016 for USB?

Hardware: PXI/CompactPCI>>Controllers

Problem:
I am using a DAQPad-601x for USB with LabVIEW 7.1 and NI-DAQmx 7.4. I want to generate a low frequency sinewave (for example, 1 Hz) on one of the 2 analog output. When I run the "Cont Gen Wfm-Int Clk" example, the Error -200016 appears at the DAQmx Wait Until Task Done.vi. Why?

Solution:
The maximum update rate of the analog ouputs for the DAQPad-6016 is 300 Sample/s with software timing and 60 Sample/s with hardware timing. These rates are system dependent because there is no onboard FIFO for the AO of the DAQPad. If you have the Error -200016, it means that your actual update rate is too fast for your computer (see the description of the error below).

Onboard device memory underflow. Because of system and/or bus-bandwidth limitations, the driver could not write data to the device fast enough to keep up with the device output rate.

Reduce your sample rate, alter the data transfer method (from interrupts to DMA), use a product with more onboard memory, or reduce the number of programs your computer is executing concurrently.

To avoid this error, the update rate must be reduced. The "Cont Gen Wfm-Int Clk" example calls the Waveform Buffer Generation.vi. Be careful, this VI calculates the update rate from the following input parameters:
  • Samples per buffer
  • Cycles per Buffer
  • Desired Frequency

If you let the default values for "Samples per Buffer" and for "Cycles per buffer" with a "Desired Frequency" of 1 Hz, the resulting update rate is too high and the error -200016 will be generated. The solution is to use a combination of input parameters that give an actual update rate less than 60 S/s.

For example:
  • Samples per buffer = 60
  • Cycles per Buffer = 1
  • Desired Frequency = 1 Hz


Related Links:
NI DAQPad-6015/6016 Family Specifications


Attachments:





Report Date: 05/19/2005
Last Updated: 03/06/2009
Document ID: 3LI46DK4

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit