DAQ: additional error handling for magnet controller status failure
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user