w
This commit is contained in:
@@ -93,7 +93,8 @@ 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
|
||||
if time.monotonic() - self.last_readback < self._READ_TIMEOUT:
|
||||
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
|
||||
self._readback = self._socket_get()
|
||||
return self._readback
|
||||
|
||||
Reference in New Issue
Block a user