The easiest way would be to use it as a quadrature outputs and program it the same way you would program any other encoder.
This document has some good details on this:
http://wpilib.screenstepslive.com/s/...control-system
If you go with the quadrature method, you can find examples in LabVIEW for coding it at this location:
Help --> Find Exampes --> FRC Robotics --> roboRIO --> Sensors --> Encoder.lvprog