Code for mapping and creating pulses to send to the AOM box