- From: Frank Mori Hess <fmhess_at_speakeasy.net>
- Date: Wed, 26 Sep 2007 18:56:13 -0400
Received on 2007-09-26Z21:56:13
On Sunday 23 September 2007 15:42, fransenpeter wrote: > my IO Card has an encoder chip, which computes the position of a > incremental encoder. The value just has to be read from an address. > > My Question is, how do I implement it in the driver? Is there a > subdevice called "encoder chip"? It should be a counter subdevice. See ni_tio.c. It's a bit complicated, but it's the closest thing currently in comedi that I'm aware of. It implements support for the counter's quadrature encoding mode (among others). > Do I get the value with "comedi_data_read" or is there another way? Yes. -- Frank
Received on 2007-09-26Z21:56:13