Additional Information
Noise
For general considerations regarding noise, see the White Paper:
Field Wiring and Noise Considerations for Analog SignalsGrounding your Device
RGND stands for Reserved Ground. These are additional ground pins that can be used for noise reduction in some cables. If you think you might have noise on your encoder signal lines, you can use an Analog Input NI-DAQmx task to see if any noise or glitches are present that could cause erroneous results.
X1, X2, X4 Encoding
Counters on M Series, C Series, and NI-TIO devices support three types of decoding for quadrature encoders: X1, X2, and X4. With X1 decoding, and signal A leading signal B, the counter increments on the rising edge of signal A. When signal B leads signal A, the counter decrements on the falling edge of signal A. With X2 decoding, the same behavior holds as with X1 except the counter increments and decrements on both rising and falling edges of signal A. Similarly, with X4 decoding, the counter increments and decrements on both rising and falling edges of both signal A and signal B. X4 decoding is more sensitive to position but is also more likely to provide an incorrect measurement if there is vibration in the encoder.