From comedi Thu Sep 20 23:55:30 2007 From: Caleb Tennis Date: Thu, 20 Sep 2007 23:55:30 +0000 To: comedi Subject: Re: e series counter changes in latest comedi Message-Id: <7DE794F3-F18D-45A2-8BD6-AD172C26632C () aei-tech ! com> X-MARC-Message: https://marc.info/?l=comedi&m=119033303512469 > > There is a gpct_simple_counting.c demo in comedilib. > > I finally got it after much hacking. The trick was setting the clock source, which I found after looking in the comments at the top of the gpct_simple_counting.c file. In my case, I wanted it to be the PFI8 pin corresponding to the SOURCE input of the timer. That necessitated a value of 0x20 + 8 (41) for INSN_CONFIG_SET_CLOCK_SRC. I write this for my own reference later in case I forget why I did this, and in case anyone else is chasing e-series counter stuff with the latest comedi. Caleb _______________________________________________ comedi mailing list comedi@comedi.org https://mail.comedi.org/cgi-bin/mailman/listinfo/comedi