w
This commit is contained in:
@@ -163,7 +163,7 @@ class GalilRIO(PSIDeviceBase):
|
||||
logger.info(f"Reading Galil RIO channels with command: {cmd}")
|
||||
ret = self.controller.socket_put_and_receive(cmd)
|
||||
timestamp = time.time()
|
||||
values = [float(val) for val in ret.strip().split(" ")]
|
||||
values = [float(val) for val in ret.strip().strip("?").split(" ")]
|
||||
for val, (_, signal_name) in zip(values, channels):
|
||||
res[signal_name] = {"value": val, "timestamp": timestamp}
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user