New to Programming-Mag Encoder

We have a magnetic encoder that plugs into an SRX. We were trying to figure out the code need to make another motor not be able to shoot until this encoder read a certain velocity. Any help on this would be nice. Thanks