Thanks Fausto,
I am planning to get the 1808X DAQ to replace my 1608G. The only problem I am encountering is that the 1808X only has 4 DIO pins and I need 6 pins. I have two motors that take a total of 4 DIO pins and I have two limit switches that need an extra 2 DIO pins. I think I could make use of the counter pins on the 1808X for the limit switches, however, I am not sure of the wiring requirements for the encoder with the 1808X. I have a few questions accordingly:
1. Does the encoder need to use any of the counter pins (CTR0 or CTR1) or does it only connect to the encoder inputs (ENC0A, ENC0B, ENC0Z and ENC1A, ENC1B, ENC1Z)?
2. Is there something that you could point me to that shows a wiring diagram for a quadrature encoder with 1808X?
3. Also, is there a Python example for reading the encoder data and telling the direction using the pulses from Channel A and Channel B? Do I manually have to read the two pulses and create a logic in my code (to figure out the direction) or does the DAQ do that for me?
I am a little confused about how the encoder inputs on the 1808X actually work.