Allright, so we are programming our mechanum bot, and we have 4 sim motors and gearboxes, the digital sidecar and wires, the encoders, and Crio all hooked up. We are only getting encoder values on every other port on the digital side car (3,4 7,8 11,12) we replaced the wires, and the same thing happened. We cehcked the wires, and they are all working. We replaced the sidecar with a brand new one. We got the same pattern. So we replaced the Main Gray Cable that connects the sidecar to the module. Same thing… We then replaced the actual modual. The same thing happened. We are stuck now. Anyone know what is wrong?:eek: We get a NAN reading on the ports that are not giving encoder values
How are you wiring them?
The red & brown cables are +5V/GND respectively, the blue/yellow are the only outputs. They’re labeled A & B on the encoder housing.
(I’m guessing this is your situation since, if memory serves me correctly, red & brown are on the outside. Also, with 4 encoders, you should only need 8 inputs, not 16)
What language are you programming in? Are you using the built-in encoder class?
So I’m assuming you programmed all the DIO ports for the encoders? If not, you might want to recheck your program.