Hello,
I am using the MATLAB C wrapper functions to control my PXI-6289 device. I am using a counter output as the source of a clock for a digital output. When I run the counter frequency up to 3 MHz, I get the expected digital output transitions triggered by the counter. However, above this frequency, I get the error "200016" which indicates an underflow error. My counter output, however, still works fine.
I have tried allowing regeneration, using DMA, and setting the DO transfer method to DAQmx_Val_OnBrdMemNotFull which should replenish the buffer anytime it is not full. I've attached my code, is there anything else anyone can think of? I'm wondering if my buffer size is too large, but making it smaller did not help. It works totally fine until I push the counter frequency above 3 MHz, but digital output on this card is rated up to 10 MHz!!!
Thanks!