Advanced IO and Encoder

We here at team 2085 are having trouble with the DriverStationAdvancedIO class. What we are attempting to do is attach an encoder to the Cypress PSOC, but we run into trouble in the programming when we try to make a new instance of the Advanced IO object. If you could give us a few lines of code to initialize the object, we would be very happy.