08-27-2009 02:18 PM
Unfortunately I am more of a "power-user" than a developer, so I may have to research the answer to your question. However, I can tell you the encoder is an "incremental" type that has an "A-Phase" and a "B-phase" output. And comparing the 6036-E PCMCIA pinout diagram against the 6212-USB shows both use common connections. Encoder phase A is the only possible exception (see table below).
Also, from what I can tell, it does look like my encoder is a quadrature encoder (picture below), I'm just not 100% on what type it is (X1, X2, X4).
| Encoder Phase A- | Encoder phase B- | Encoder phase A + | Encoder phase B+ | |
| Cable PIN # | 7 | 13 | 37 | 16 |
| 6036 E PCMCIA Pinout | D GND | D GND | PFI 8 / CTR 0 SRC | P0.6 |
| 6212 M USB Pinout | D GND | D GND | PFI 8 / P2.0 | P0.6 |
Does it matter that the 6212 doesn't reference CTR0 on pin 37 while the 6036 does?
Do I need to physically re-wire something for this encoder to increment/decrement with the 6212-USB?
Any insight would be greatly appreciated.
08-27-2009 05:26 PM
Hi hma1,
The USB-6212 doesn't support using P0.6 and P0.7 as direction terminals for edge counting. You'll have to wire your encoder's B signal to a PFI terminal instead. In the DAQ Assistant, the direction terminals for the USB-6212 are PFI10 for ctr0 and PFI11 for ctr1.
Brad
08-28-2009 03:34 PM
Brad,
Thanks a lot for your excellent advice. I wired up the encoder the way you suggested and the counter increments and decrements correctly now! I will let you know what the results of the first test look like.
Thanks again for your helpfulness,
Adam
09-10-2009 09:57 AM