DAQ: trying to catch gripper detection event and

This commit is contained in:
2026-04-01 17:02:44 +02:00
parent 90d2ccb233
commit 323e6f31d8
+9 -1
View File
@@ -202,6 +202,8 @@ class TellClient:
elif event == "Gripper detection" and value == "Pin is lost":
logger.info(f"gripper detection: {event} occurred with value: {value}")
return value
elif event == "Gripper detection":
logger.info(f"gripper detection: {event} occurred with value: {value}")
elif event == "Motion Task" and value == "dry":
logger.info(f"event: {event} occurred with value: {value}")
logger.info(" Drying occurring, releasing interface to user")
@@ -393,4 +395,10 @@ def make_tell_client(bl: MXBeamline) -> TellClient:
factory=lambda: PShellTellBackend(bl),
retry_interval_s=2.0,
)
return TellClient(bl, backend=backend)
return TellClient(bl, backend=backend)
if __name__ == "__main__":
from aare.common.beamline import mx_beamline
bl = mx_beamline()
tell_client = make_tell_client(bl)
tell_client.state()