I can't seem to find anything on linear encoders here or anywhere else. I've tryed some examples or ideas given for quadrature rotary encoders, and none of them worked. I have the A and B leaded hooked into digital pins 2 and 3, and +3 and ground. here is the data sheet for the encoder, its the flying leads version.
I am trying to get it to work on an arduino uno running arduino 1.0.3.