Drive train with encoders and tough-box min: How do you wire it?

Our team is considering using encoders in our drive train for the first time this year but we are not sure how to connect the encoders to the talons. We are using Tough-Box mini gear boxes controlled by 2 CIM motors. Each motor will have its own talon. There is one encoder on the central shaft of the gear box. What do we do with the ribbon cable that comes out of the encoder? For example, we could connect it to one of the Talon’s but I would expect that both talon’s need the encoder data. Would the other talon pick up this information from the CAN bus? If not, is there a way that we can split the signal coming from the encode and send it to both talon’s? A third possible alternative is to run the cable to the RoboRio but that seems to defeat the purpose of having Talon SRXs.

This seems like a very basic question as I see there are a lot of teams using encoders in their drive trains but I’ve scoured the web and haven’t been found an answer yet.

Thanks in advance.

You wire it to one talon, then set the other to “follow” mode.

Thanks, that helps a lot. I found some sample code at the following link that shows how to configure one talon to “follow” another:

https://github.com/CrossTheRoadElec/Phoenix-Examples-Languages/blob/master/Java/SixTalonArcadeDrive/src/org/usfirst/frc/team217/robot/Robot.java