- From: Tim Beamish <tbeamish_at_cs.ubc.ca>
- Date: Thu, 11 Jul 2002 14:47:38 -0700 (PDT)
Hi, I have an encoder wired into a counter circuit which is attached to a DAS-1602 board. As the encoder spins, the counter counts the ticks (up and down). I want to measure the time between each count but my software can only query the counter every millisecond and often several encoder ticks will go by in 1 millisecond. I need more precision so I really need to get the time between each encoder tick. So I'd like to wire my encoder counter into one of the on-board counter/timers on the DAS-1602 and have it count the time between encoder pulses for me. There are 3 counters on the board and I'd like to use one of them them with COMEDI (because the rest of the application is using COMEDI). My idea is to have the encoder feed into counter 0 on the board. Each time there is a high edge on the encoder, counter 0 resets itself and begins counting. Then I'd like to query counter 0 to find out how much time past between the last two encoder pulses. Is there a way to do this in COMEDI? I've been reading some stuff on triggers because I think this is the way to do it but I'm not sure exactly how everything works. Any help would be appreciated. Thanks, Tim
Received on 2002-07-11Z20:47:38