-
Notifications
You must be signed in to change notification settings - Fork 186
Description
Bug Report
Repro or Code Sample
When I run my software to call the NI USB-6009 data acquisition card via Python-nidaqmx, it occasionally throws an exception. I have created a timer to continuously read the sensor data collected by the data acquisition card, and I have tried my best to ensure that the timer speed is faster than the timed acquisition rate of the card. I collect 100 samples per second, the acquisition card rate is set to 100 samples per second, and the card's data is read every 20 milliseconds. Each read operation returns 4 pieces of data from 4 differential channels.
Current Behavior
Traceback (most recent call last):
File "drive\daq\niusb6009.py", line 129, in on_task_timeout_read
File "nidaqmx\task_task.py", line 619, in read
File "nidaqmx_library_interpreter.py", line 4166, in read_analog_f64
File "nidaqmx_library_interpreter.py", line 6451, in check_for_error
nidaqmx.errors.DaqReadError: Onboard device memory overflow. Because of system and/or bus-bandwidth limitations, the driver could not read data from the device fast enough to keep up with the device throughput.
Reduce your sample rate. If your data transfer method is interrupts, try using DMA or USB Bulk. You can also use a product with more onboard memory or reduce the number of programs your computer is executing concurrently.
Task Name: _unnamedTask<0>
Status Code: -200361
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "drive\daq\niusb6009.py", line 131, in on_task_timeout_read
File "drive\daq\niusb6009.py", line 170, in reset_daq
File "drive\daq\niusb6009.py", line 121, in device_switch
File "nidaqmx\task_task.py", line 1026, in stop
File "nidaqmx_library_interpreter.py", line 5781, in stop_task
File "nidaqmx_library_interpreter.py", line 6455, in check_for_error
nidaqmx.errors.DaqError: Onboard device memory overflow. Because of system and/or bus-bandwidth limitations, the driver could not read data from the device fast enough to keep up with the device throughput.
Reduce your sample rate. If your data transfer method is interrupts, try using DMA or USB Bulk. You can also use a product with more onboard memory or reduce the number of programs your computer is executing concurrently.
Task Name: _unnamedTask<0>
Status Code: -200361
My Eev:
- Operating system and version: Windows 10
- NI-DAQmx version: 2024 Q2
- `nidaqmx-python version:1.1.0
- NI USB 6009
- Python version:3.11.9