|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#44
|
|||
|
|||
|
Re: Unexpected results from Encoder::GetRate()
Quote:
Allow me to do that here... If you select "ExternalDirection" mode, then the following overloads apply: "DownRisingEdge" specifies invert the direction or not. "DownFallingEdge => true" enables quadrature decoding mode. In quadrature decoding mode, "UpFallingEdge" selects 1x or 2x decoding and "UpRisingEdge" must be true... more literally, what these two mean in quadrature mode is: "UpRisingEdge => count A if B is high" "UpFallingEdge => count A if B is low" Obvious, right? Again sorry for the confusion (I realize you probably aren't any less confused at this point). Quote:
Count = (ARising | AFalling) & ((BHigh & UpRisingEdge) | (BLow & UpFallingEdge)) CountUp = Count & !(BHigh ^ DownRisingEdge ^ ARising) CountDown = Count & (BHigh ^ DownRisingEdge ^ ARising) With this, there will hopefully be no more mystery. ![]() See you in Atlanta! -Joe |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [BB] An unexpected change in plans | yodameister | General Forum | 22 | 01-12-2009 21:26 |
| Inconsistent reading from encoder get rate | rwood359 | National Instruments LabVIEW and Data Acquisition | 5 | 13-01-2009 19:10 |
| Results from Drexel, thanks from 365. | archiver | 2001 | 1 | 24-06-2002 02:44 |
| Results from GLR? | archiver | 2001 | 0 | 24-06-2002 02:44 |
| results from regionals | archiver | 2000 | 0 | 23-06-2002 22:31 |