AMS encoder test program

This is a test program we use to test out the AMS encoder.