03-14-2013 07:36 PM
I'd trying to use an M-Series PCI-6229 card for externally triggered (TTL pulses) measurement of two analog channels. The code works (I measured a 100Hz sine wave with a 10kHz TTL pulse train) with a single channel, but when I try to measure two channels, I get an error
Error -200019 occurred at DAQmx Stop Task.vi:16
Possible reason(s):
Measurements: ADC conversion attempted before the prior conversion was complete.
Increase the period between ADC conversions. If you are using an external clock, check your signal for the presence of noise or glitches
I've tried changing the buffer size with "DAQmx Configure Input Buffer.vi" and using "DAQmx Wait Until Done.vi" before or after the "DAQmx Read.vi"
Sincerely,
Isaac R
03-17-2013 11:42 AM
Hi Ike_R
It seems that the device is not able to handle that sample rate for both channels, the 6229 does not allow simultaneous sampling that means that both channels are sharing the sample ADC and sample clock. Check this link that is related to error -200019 you might be able to understand what I mean from that link.
Also as a comment try to always use the error wires between the DAQmx VIs you can always create the error indicator but the error wire will help you to debug and control the flow of your program if an error occurs.
Regards
Esteban R.