Log in

View Full Version : Should the encoder example work right out of the box?


joecap5
10-02-2010, 00:49
I uploaded the encoder example code to the robot without any modifications. When we spin the encoder (4EP) the distance indicator continually jumps between .25 and 0.

Has anyone else had this problem?

Joe Ross
10-02-2010, 00:55
It sounds to me like you only have have one of the encoder signals wired.

joecap5
10-02-2010, 01:11
Both signals are wired. We tried three different encoders and all three have the same problem.
We got them working last year.

joecap5
10-02-2010, 08:54
I'm using the example Labview encoder vi.

Alan Anderson
10-02-2010, 10:48
Both signals are wired. We tried three different encoders and all three have the same problem.

I agree with Joe Ross. This is exactly the symptom you would get from an encoder opened as 4x with only one of the two phases attached. Can you tell us exactly how you have the encoder connected? Which wires go to which pins on the Digital Sidecar?

joecap5
10-02-2010, 19:41
I don't have it in front of me right now, but I believe I have the wires in the following order: brown red blue, ground power signal. These go into DIO 1. I have channel B, the yellow wire, going into DIO 2.
Thanks for the help.

joecap5
12-02-2010, 00:48
So after days of trying to figure this out we finally found the problem.
One of the CRIO modules is broken, but just a little. It does everything except read the DIOs. So we swapped it out and now everything works.