DAQ: additional error handling for magnet controller status failure

This commit is contained in:
2025-09-02 17:23:22 +02:00
parent 471f853663
commit bd9a24bc17
+4 -1
View File
@@ -216,7 +216,10 @@ class AareDAQ:
if self.__devs.bsz.value < 24.0:
raise Exception("Beamstop Z below 24.0 mm - potentially unsafe with mounting")
if self.__devs.magnet_position_sensor.value != 0:
raise Exception("Magnet position sensor is not in position")
time.sleep(3)
print("!!!!!!!!!!!!!!!!!!!!!MAGNET CONTROLLER BROKE AGAIN!!!!!!!!!!!!!!!!!!")
if self.__devs.magnet_position_sensor.value != 0:
raise Exception(f"Magnet position sensor is not in position: {self.__devs.magnet_position_sensor_readout.value}")
#Reenable TELL after doors locked
self.__devs.tell.check_enable_motion()