EISServices Posted November 20, 2007 Share Posted November 20, 2007 Is there an example for setting up a quadrature counter, using a bi-phase rotary encoder connected to FIO0 and FIO1. After configuring TIMER0 and TIMER1 to QUAD for the UE9 module I am unable to display any sensible count values. I have read through the tutorial and tried the Counter example provided by with no success. Link to comment Share on other sites More sharing options...
AzeoTech Posted November 20, 2007 Share Posted November 20, 2007 Actually, you are pretty much there if you have the timers setup. Just to clarify, to setup the timers for quad, you just have to enable the two timers with LJ_chNUMBER_TIMERS_ENABLED and then tell both timers to be LJ_tmQUAD. As EISServices correctly did, it takes two timers to read one quadrature input. The easiest way to read the timer once this is done is to create a channel with I/O type Timer, channel # = 0 in this case (the first timer of the pair), Timing = the desired update interval. Link to comment Share on other sites More sharing options...
LabJack Support Posted November 20, 2007 Share Posted November 20, 2007 I dug up the attached. See if it helps. U3_Quadrature_Sequence.ctl Link to comment Share on other sites More sharing options...
EISServices Posted November 20, 2007 Author Share Posted November 20, 2007 Thanks for that, i'll give it a try and report back later... I dug up the attached. See if it helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.