- From: Arno Stienen <arnoreg_at_gmail.com>
- Date: Fri, 22 Jun 2007 10:25:51 +0200
Frank Mori Hess wrote: > On Thursday 21 June 2007 13:36, you wrote: >> I know (I'll get to it as soon as I have figured out how to use the NI >> pci-6221 with quadrature encoders). > > See the enums in comedi.h, in particular enum ni_gpct_mode_bits. You'll > need to use one of the NI_GPCT_COUNTING_MODE_QUADRATURE_XN_BITS bitfields, > instead of the NI_GPCT_COUNTING_MODE_NORMAL_BITS that the simple counting > demo uses. And maybe some of the NI_GPCT_INDEX_* bits. It might actually > be useful to look at the ni 6601/6602 register level programming manual. Anders, I now use the 6602 for my quadrature encoders (works fine), but if you ever figure out how to use the 6221 for this, let me/us know! Bye, Arno.
Received on 2007-06-22Z07:25:51