diff --git a/csaxs_bec/devices/omny/galil/galil_ophyd.py b/csaxs_bec/devices/omny/galil/galil_ophyd.py index de0ce5ff..ea1ddc7a 100644 --- a/csaxs_bec/devices/omny/galil/galil_ophyd.py +++ b/csaxs_bec/devices/omny/galil/galil_ophyd.py @@ -58,9 +58,17 @@ class GalilController(Controller): @threadlocked def socket_put(self, val: str) -> None: + time.sleep(0.01) self.command_history.append(f"[PUT]: {val}") self.sock.put(f"{val}\r".encode()) + @threadlocked + def socket_get(self) -> str: + time.sleep(0.01) + response = self.sock.receive().decode() + self.command_history.append(f"[GET]: {response}") + return response + @retry_once def socket_put_confirmed(self, val: str) -> None: """Send message to controller and ensure that it is received by checking that the socket receives a colon.