w
Some checks failed
CI for csaxs_bec / test (pull_request) Failing after 1m26s
CI for csaxs_bec / test (push) Failing after 1m28s

This commit is contained in:
2026-01-26 10:06:48 +01:00
parent f22b87cd1c
commit 3f7d888596

View File

@@ -93,6 +93,7 @@ class GalilRIOSignalRO(GalilSignalRO):
def get(self):
"""Get current analog channel values from the Galil RIO controller."""
# If the last readback has happend more than 0.5 seconds ago, read all channels again
logger.debug(f"Reading value for {self.name}, last readback at {self.last_readback}")
if time.monotonic() - self.last_readback < 0.5: # self._READ_TIMEOUT:
logger.debug(f"Using cached readback value for {self.name}: {self._readback}")
return self._readback