DAQ: starting to debug magnet sensor pvs and state check
Build and Publish / build (push) Successful in 16s
Build and Publish / Build and Deploy Docs (push) Successful in 35s

This commit is contained in:
appleb_m committed 2026-04-02 16:20:31 +02:00
1 parent 9758f7c800
commit 6314322352
1 file changed
+4 -3
+4 -3
View File
@@ -535,8 +535,9 @@ class AareDAQ:
logger.error(f"Failed to park and dry: {e}")
raise e
def __magnet_position_sensor_check(self, timeout: float = 360.0, repeat: bool = True):
def __magnet_position_sensor_check(self, timeout: float = 10.0, repeat: bool = True):
#TODO check this works, add beamstop z controls and test.
#There is a problem with the amgent sensor pvs
# logger.info("checking beamstop")
# if self.__devs.beamstop_z.value < 24.0:
@@ -544,8 +545,8 @@ class AareDAQ:
if not self.__devs.magnet_position_sensor_state or self.__devs.magnet_position_sensor_state.value == 0:
logger.warning("!!!!!!!!!!!!!!!!!!!!!magnet position sensor not connected!!!!!!!!!!!!!!!!!!")
raise MagnetPositionSensorErorr("Magnet position sensor not connected")
if self.__devs.magnet_position_sensor.value != 0:
logger.warning("THERE IS A PROBLEM WITH THE MAGNET SENSOR PVS PLEASE FIX")
if self.__devs.magnet_position_sensor_readout.value != 0:
time.sleep(1)
logger.warning("!!!!!!!!!!!!!!!!!!!!!magnet position sensor readout not 0!!!!!!!!!!!!!!!!!!")
logger.debug(f"Checking magnet position sensor positon: {self.__devs.magnet_position_sensor_readout.value}")