01-15-2006 02:46 PM - edited 01-15-2006 02:46 PM
Message Edité par Conseils le 01-15-2006 09:47 PM
01-16-2006 06:11 AM
Hi Jon,
To answer your last question - yes you can perform analogue input and counting functions simultaneously, buffered aquisition or otherwise. Some low cost DAQ cards will only perform one aquisition at full speed if they only have one DMA control channel (direct memory access) - but your PCI-MIO-16E-4 board has three DMA channels, so you should have no problem there.
I have successfully used a quadrature encoder with a PCI-MIO-16E-4 board - but I employ "quadrature decoder" circuitry between the encoder and the DAQ board (decodes quadrature signals into count and direction signals). I also found I needed to add some "digital filtering" circuitry too, otherwise the counter would often miscount.
Connecting a quadrature signal directly to an E-series DAQ board (without quad' decoding) may appear to work, but is technically flawed - if your encoder "vibrates" (or has electrical noise) whilst at an edge on the source/count signal, the counter will count up several times "up-up-up" when it should count "up-down-up-down-up-down", because the count edge may be traversed forwards and backwards without the direction signal changing.
The new "M-series" boards, and the dedicated counter/timer boards, have the considerable advantage over the older E-series in that the former can decode quadrature signals without additional hardware (and also 32 bit counters rather than 24).
I've attached some old VIs that show how I configure, stop, and read the data using an E-series DAQ board (a PCI-MIO-16E-4) doing buffered position aquisition - remember I use quadrature decoding circuitry, but that doesn't change the software programming.
Mark H.
P.S. I work for a company division that makes position encoders... http://www.renishaw.com/client/product/UKEnglish/PGP-1113.shtml
01-16-2006 06:20 AM
01-16-2006 06:26 AM
Thanks Conseils,
I should apologise for repeating some of your last post - you see I didn't see it until I submitted mine because it was on page 2.
Thanks for the stars.
01-16-2006 06:32 AM
01-16-2006 10:14 AM
01-16-2006 02:01 PM
01-16-2006 02:27 PM
Try placing an analogue input configure, outside the loop.
01-16-2006 02:42 PM
01-16-2006 03:06 PM