Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get workaround for 'USB-6008/6009 Error -200361: Buffer Overflow Error' to work?

Hi,

 

we use the USB-6009 device and seem to encounter the Windows 7 EHCI driver problem.

 

But how do we get the "USB Transfer Request Count Property" workaround (Doc. ID: 3K6BT0UR) to work with the C-interface?

 

We tried the DAQmxSetAOUsbXferReqCount function but got the following result:

 

DAQmx Error: Specified property is not supported by the device or is not applicable to the task.

Property DAQmx_AO_UsbXferReqCount

Status Code: -200452

 

According to the workaround description it requires DAQmx 9.4 at least.

 

NI-DAQmx Version

 

Should be no problem with using 9.5.

0 Kudos
Message 1 of 5
(7,276 Views)

Hi,


In the Readme File of the driver DAQmx 9.4 was written:

The following issues were fixed in NI-DAQmx 9.4:
Error -200361 with USB-6009 and Windows 7 PCs


Sure you can install the latest DAQmx Driver like the 9.7, but I don't think that the Issue is cause the Driver.


Can you tell us the LabVIEW Version that you are using. Which OS? are you using an external HUB?

 

USB-6008/6009 Error -200361: Buffer Overflow Error
http://digital.ni.com/public.nsf/allkb/611475F9BE62881E86256FDC0062B1BB

 

Common NI-DAQmx Error Codes and Solutions: Codes -200300 to -200999
http://digital.ni.com/public.nsf/websearch/8A0E097385A4269586256DBA0054E668?OpenDocument

 

Why Do I Receive Error -200361 From My NI USB Device After Waking Up My Monitor?
http://digital.ni.com/public.nsf/allkb/7B5B30F925D735CA862577A80065592B

 

Performance Tuning USB Data Acquisition Streaming
http://digital.ni.com/public.nsf/allkb/B7B47F50F9813DFD862575890054EF7C

Kais Mekacher
Applications Engineer
Germany - Munich
0 Kudos
Message 2 of 5
(7,258 Views)

Hi,

 

I am the one, having the issues on my development machine.

We´re using Windows 7 Enterprise (64 Bit) Service Pack 1. The Maschine, I'm developing on is a Intel Core i5 - 2400.

The driver package, shipped with the NI USB-6009 is according to NI MAX 9.5.5f4.

The Device is connected directly with the workstation.

 

We're don't using Labview but rather try to connect to the NiDaqMx Driver via the DAQmx ANSI C Interface.

 

For this purpose, I´ve used the Example, provided with the driver package, located in \DAQmx ANSI C\Analog In\Measure Voltage\Cont Acq-Int Clk\ContAcq-IntClk.c

 

After 2 or 3 starts , the following Error Message turn up:

 

Fehlermeldung NI6009.png

 

This Error persists as long as I pull the USB Cable and insert it again.

After this the Error reappears after a few starts again...

 

I´ve tried to reduce the sampling rate to 10 Samples / second but even this produces the

Buffer Overflow Error.

 

I´ve tried to use the Workaround described in the first Link ("USB-6008/6009 Error -200361: Buffer Overflow Error"),

but used the ANSI C Function

DAQmxErrChk (DAQmxSetAOUsbXferReqCount(taskHandle, "Dev1/ai0", 1));

 instead of the suggested way in Labview.

This Function throws the Error -200452 as stated in the first Post.

 

Although the article states, that the Parameter was added in NI-DAQmx 9.4, but the user

had to set this Parameter manually.

 

Regards,

 

Ole

0 Kudos
Message 3 of 5
(7,251 Views)

The problem might be that you're using the DAQmxSetAO function, when I think you want to use the DAQmxSetAI function:

 

DAQmxErrChk (DAQmxSetAIUsbXferReqCount(taskHandle, "Dev1/ai0", 1));

 

That solved the problem for me.

0 Kudos
Message 4 of 5
(6,926 Views)

That's it!

 

You' re right. I didn't see, that I'm using the wrong Function.

After using the DAQmxSetAIUsbXferReqCount() Function the Buffer Overflow Error disappeared.

 

Thank You for this Hint 🙂

 

Ole

0 Kudos
Message 5 of 5
(6,919 Views)