Jump to content
  • 0

Data Overrun Error on UL 6.74


Matthew Harrison

Question

I have been having consistent problems with data overrun errors acquiring data using Universal Library version 6.74. I have also had the exact same behavior on UL version 6.73. I'm using a USB-231, and I also saw the same behavior on an older USB-1208fs. Basically, what is happening is after acquiring for some time, typically a minute or two, but sometimes after only a few seconds, I will get a data overrun error (error 29).  My primary use case is in a LabVIEW program, but I see the same error in DAQami (image attached). I'm running LabVIEW 2022 Q3 on Windows 11 22H2.  I'm attaching a simple LabVIEW VI that demonstrates the problem as well as a DAQami configuration file that also shows the issue.  I have found that if I lower the acquisition rate, it will take longer to get the overrun error, but it will still overrun.  I'm running below the documented max acquisition rate and I have set an adequate buffer size, so I expect that this should not be happening. I'm hoping that there is some workaround for this behavior or a possible fix.  If not, can you document what the actual max acquisition rate is so that I can stay under it without overflow?

Best Wishes,

Matt

error-29-labview.png

data-overrun-error.png

daqami.mcfg mcc-daq-overrun-error.vi

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hello @Matthew Harrison.

I was unable to load your DAQami file.  Which version of DAQami are you using?  The current version is 4.2.1 and the configuration file extension should be ".amicfg".  I tested an UAB-231 in DAQami, configured for four differential inputs, maximum sampling rate, and could not reproduce your issue.  Afterwards, I closed DAQami and tested your .vi example with LabVIEW 2023 and could not reproduce your issue as well.

Please download and install the current version of MCC DAQ software v6.75.

https://www.mccdaq.com/Software-Downloads

I am running Microsoft Windows version 10.0.22000.2057.

Regards,

Fausto

 

Link to comment
Share on other sites

  • 0

Fausto,

Thank you for taking time to respond and for your efforts to reproduce this. I'm not sure why I'm seeing different behavior from you. The only difference I can see that seems possibly relevant is that you are on W10 and I'm on W11.  I will try to see if I can find a W10 system to test on. Do you have access to a W11 machine to see if you can reproduce the issue?

In an effort to troubleshoot on my end, I went ahead and uninstalled all the mccdaq components on my computer, and then reinstalled V6.75 as you suggested, which includes DAQami 4.2.1. Unfortunately, I'm still consistently seeing the same buffer overrun error.

I apologize for the incorrect DAQami file that I sent previously.  I've attached the correct file which is a 5 channel single-ended analog input with graphing display.

Best Wishes,

Matt

5 ch speed test.amicfg

Link to comment
Share on other sites

  • 0

Matt,

Thank you for the DAQami configuration file.  The device settings look fine. I tested your file with a USB-231 on a Windows 11 system, but could not reproduce your issue.  I let DAQami acquire data for 10 minutes, before I stopped it.  Verify that you do not have both DAQami and LabVIEW open concurrently when acquiring data.

image.png

image.png

 

Do you have other tasks running in the background, i.e. virus scanning?

Are you saving data to a local drive, external drive or network drive?

 

image.png

 

Regards,

Fausto

Link to comment
Share on other sites

  • 0

Fausto,

Again, thank you for your continued efforts to help with this frustrating problem.

I definitely have virus scanning and there are numerous other background tasks running.  I hope that does not turn out to be a showstopper for using this device. I am not seeing significant CPU or disk load, so I would hope that this level of background task execution is acceptable. I tried to quit or disable any background processes that I could, and while it may have increased the time until I would see an error, I am still typically hitting an error after around 1 - 5 minutes. If system performance is a significant factor, I can report that the laptop I'm testing on is an i9-8950HK, which is a 6-core 2.9 GHz processor and I have 32 GB of RAM.

Perhaps you can clarify something for me about this error 29. Does it refer to buffers on the device itself, or buffers in the USB transfer that overflowing? In an effort to check for buffer overflows on the PC side of the USB interface, I have added code to the test VI to check for available samples. I was wondering if I would see a growing backlog of available samples as a lead-up to error 29. For what its worth, I do not see anything like that, but instead a very steady and small number of samples in the buffer. As you can see, I have the buffer configured at 100,000 samples (10 seconds worth at 10K acquisition rate) and we never get anywhere close to that. I also tried intentionally slowing my software acquisition loop so that it would overflow, and that leads to a different error 10017, but has the same explanatory text "Samples in the buffer were overwritten before they were read." So, this leads me to believe error 29 is an overflow on the device hardware buffer, but I would like you to confirm that if you can.

Assuming that we're dealing with a buffer overflow on the device, it makes me wonder if I could be seeing an artifact of how the device is connected. I'm currently doing my testing with nothing connected to any of the IO connectors on the device. Are there certain signals that need to be grounded or connected in some other way in order to make things play nice? Along the line of thought that perhaps the hardware is not happy about the way I'm using it, I have also tried running the USB-231 off a powered hub to see if perhaps my laptop is not providing adequate current through the onboard USB connector. This did not make any difference that I could see- the problem persists.

Best Wishes,

Matt

mcc-daq-overrun-error.vi

Link to comment
Share on other sites

  • 0

Matt,

I ran your vi example for 20 minutes with my USB-231 and could not reproduce your issue.

image.png

 

With regards to error 29, the screen capture below is from the Universal Library Help.  The allocated buffers are on the host system, not on the device.

image.png

 

Either you have an issue with the USB-231 hardware or your target system is a bottleneck, which doesn't seem likely given your system's specs (i9-8950HK, 6-core 2.9 GHz processor, and 32 GB of RAM).  Can you disable virus scanning completely and then retest?  Also, can you test the USB-231 with a different system?

What is the serial number of the USB-231?

Regards,

Fausto

Link to comment
Share on other sites

  • 0

Fausto,

I did run a test of disabling the virus scanner completely, but I did not see any improvement.

The serial number for my USB-231 is 217D963.  Is is possible to update the firmware on the device? Can I check the current firmware version?

I will work on setting up another machine to test on and see if that makes any difference.

Best Wishes,

Matt

Link to comment
Share on other sites

  • 0

Fausto,

In an effort to troubleshoot this, I spun up a virtual machine (VirtualBox) and passed the USB-231 through to it.  Everything is running fine in that environment even though it is technically still on the same computer. So, based on this and all the other things we've checked, I'm assuming that my main machine has some driver or other software that is interfering with the ULx driver in some way. I'm not sure the best way to track that down, and there are many things that I cannot remove, but I would still like to solve this or at least know what was interfering.  Could I just ask one last question: is there any known software incompatibilities with ULx that might help me to narrow this down?

Best Wishes,

Matt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...