code for controlling the hardware in a magneto optic setup in a student lab experiment at the institute for physics and astronomy