Problems with Integrated Encoder

Hello everyone! I’ve been trying to use two integrated encoders for my robot’s wheels but I’d need some help with a couple of problems I’ve had.

  1. Of the two connectors I put, only the one connected directly to the Cortex was working. Can anyone please tell me how the second one should be connected in order to work?
  2. I couldn’t figure out how to reset the encoders after I used them for a turn. Does anybody know how to code it?

Any response would be really helpful. Thabks in advance and sorry for my English.

There’s some information showing how to connect IMEs here.
http://www.robotc.net/blog/2012/03/07/programming-with-the-new-vex-integrated-motor-encoders/

nMotorEncoder motor_port ] = 0;

where motor_port is the name of the motor or a port number, port1 etc.