I am reading a 1057 PhidgetEncoder HighSpeed and 3532 Hollow Shaft Optical Encoder IHC3808 with Labview on Mac OS X. I made minor modifications to the example code (getting rid of the calls that are not supported on the 1057), and it works great reading the encoder position. This encoder has 360 counts per rotation, and can actually determine which of 4 positions within a count it is in, so the net resolution is 1440 positions per 360 degree rotation. Cool!
However, the encoder also has an index that should be readable. However, the function returns the same crazy value every time: 2147483647. The index (I believe) should be between 0 and 1440. This is returned from EncoderGetIndexPosition, even if I rotate multiple full rotations. No errors are thrown. Does anyone understand why this would be? Newbie alert - How do I attach the code, or an image?
The code does this:
6) Go to 3 until stopped
7) Kill event handler, close port, error handler