From 366f592e08a4cb50ddae7b3f8ba3aa214574f61f Mon Sep 17 00:00:00 2001 From: Klaus Wakonig Date: Fri, 16 Feb 2024 08:27:06 +0100 Subject: [PATCH] feat(galil): added lights on/off --- ophyd_devices/galil/fgalil_ophyd.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ophyd_devices/galil/fgalil_ophyd.py b/ophyd_devices/galil/fgalil_ophyd.py index 7cebee9..b30e30b 100644 --- a/ophyd_devices/galil/fgalil_ophyd.py +++ b/ophyd_devices/galil/fgalil_ophyd.py @@ -42,6 +42,8 @@ class FlomniGalilController(GalilController): "fosaz_light_curtain_is_triggered", "is_motor_on", "all_axes_referenced", + "lights_off", + "lights_on", ] def is_axis_moving(self, axis_Id, axis_Id_numeric) -> bool: @@ -65,6 +67,18 @@ class FlomniGalilController(GalilController): return int(float(self.socket_put_and_receive("MG @IN[14]").strip())) == 1 + def lights_off(self) -> None: + """ + Turn off the lights + """ + self.socket_put_confirmed("CB15") + + def lights_on(self) -> None: + """ + Turn on the lights + """ + self.socket_put_confirmed("SB15") + class FlomniGalilReadbackSignal(GalilSignalRO): @retry_once