Code for the ROACH KID readout.