From e0d93cd84e0e83d8fc8bc9a4e215c634143c9b6b Mon Sep 17 00:00:00 2001 From: Holler Mirko Date: Fri, 26 Apr 2024 10:00:44 +0200 Subject: [PATCH] backlashcommandfix --- csaxs_bec/devices/galil/galil_ophyd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csaxs_bec/devices/galil/galil_ophyd.py b/csaxs_bec/devices/galil/galil_ophyd.py index 2d04b0a..5cf916a 100644 --- a/csaxs_bec/devices/galil/galil_ophyd.py +++ b/csaxs_bec/devices/galil/galil_ophyd.py @@ -94,7 +94,7 @@ class GalilController(Controller): if axis_Id is None and axis_Id_numeric is not None: axis_Id = self.axis_Id_numeric_to_alpha(axis_Id_numeric) is_moving = bool(float(self.socket_put_and_receive(f"MG_BG{axis_Id}")) != 0) - backlash_is_active = bool(float(self.socket_put_and_receive(f"MGbcklact[axis]")) != 0) + backlash_is_active = bool(float(self.socket_put_and_receive(f"MGbcklact[{axis_Id_numeric}]")) != 0) return bool( is_moving or backlash_is_active or self.is_thread_active(0) or self.is_thread_active(2) )