01-27-2010 11:05 AM
I am currently trying to aquire three channels of accel data (ax,ay,az), 1 channel of Velocity data (vx), and an encoder ctr0 and ctr1 measurements for position data(x). I need to aquire samples at 1000Hz and be able to aquire between 1000-30000 samples.
The encoder channels are for direction I have a chip that converts the encoder pulses. When I run my encoder part seperatly as a scope or in a loop stopped by the user, it works.
When I run my analog input seperatly it works.
I need to put these together and I have worked up to a point I dont know how to fix.
I am using a 6062e Card with a BNC 2120
I have 5 channels of AI
Two channels of Cnt
Pleas help
Solved! Go to Solution.
01-27-2010 02:08 PM
01-28-2010 11:43 AM
01-28-2010 01:31 PM
02-01-2010 10:13 AM
It seems that error 200141 is a buffer overflow error. The E series cards have a 1 sample FIFO only whereas the M Series that I was using to test has a 2 sample FIFO for counters. The 6062E also does not have any DMA channels on its transfer so when you get AI calls going in it can hog up your resources and have slower data transfer off the board causing this error.
http://digital.ni.com/public.nsf/allkb/E00C0F790CA2CDA686256BF000614DE1?OpenDocument
02-02-2010 02:27 PM
BTW this also happens if you are attempting to look at frequency and there is noise present in the system. Had this happen on a USB-6251 doing frequency measurement on an opto-interrupted tach wheel signal. The device counts the rising edge of noise just like a legitimate counter rising edge and it doesn't take long to fill a buffer. The warning is to switch to a DMA instead of interrupt but that doesn't matter since its USB and the problem is not that anyways.
The solution to this was to add a 270 Ohm Pull up in parallel with a 0.01uF cap to the +5V line sitting on the Open Collector opto-interrupter line coming from the tach wheel. Noise and overflow gone.
Brian