At operation 510, as illustrated, the optical frequency comb is locked using an optical frequency comb generator, the fast repetition rate control signal, the slow repetition rate control signal, the fast carrier envelope offset control signal, and the slow carrier envelope offset control signal. The control signals may each control an actuator of the optical frequency comb generator to lock the optical frequency comb.