Zapit-Optostim / zapit

General purpose optostimulation system
GNU Lesser General Public License v2.1
6 stars 1 forks source link

The rampdown causes random buffer under-runs #62

Closed raacampbell closed 1 year ago

raacampbell commented 1 year ago
Status Code: -200452
Error using zapit.pointer/stopOptoStim
NI DAQmx error (-200621) in call to API function 'DAQmxIsTaskDone':
 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. If your data transfer method is interrupts, try using DMA or USB Bulk. You can also
reduce the number of programs your computer is executing concurrently.

All related issues

raacampbell commented 1 year ago

Searching for a combination of buffer length and sample rate that are reliable. 30 kHz and 2 cycles OK right now. But need to see how responsive that is.

raacampbell commented 1 year ago

Currently managed 1000 trials with no problems: 57e1754bf460276ea6ce3e787665d6268c87224a 1E5 sample rate and one cycle of buffered waveform.

raacampbell commented 1 year ago

Indeed with 1E5 and one cycle everything works.