mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-10-30 10:21:28 +01:00
fix(panda-box): Receive PandaBox data as scaled (scale and offset applied) data.
This commit is contained in:
1 parent
45d10f515d
commit
2c8293d2bb
1 file changed
+5
-1
@@ -437,7 +437,11 @@ class PandaBox(PSIDeviceBase):
|
||||
):
|
||||
try:
|
||||
# Timeout is needed to periodically check if we should leave the loop.
|
||||
for data in client.data(scaled=False, frame_timeout=0.1):
|
||||
# IMPORTANT: Keep scaled=True to receive the data properly scaled and not in
|
||||
# raw format. If performance becomes an issue, this should be re-evaluated.
|
||||
# One could directly connect to the Socket, however, this should not be relevant
|
||||
# in the kHz range, maybe in the several MHz range.
|
||||
for data in client.data(scaled=True, frame_timeout=0.1):
|
||||
if not self._run_data_readout_step(data):
|
||||
return # finally executes still
|
||||
except socket.timeout:
|
||||
|
||||
Reference in new issue
Block a user