diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-10-16 21:38:37 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-10-16 21:38:37 -0400 |
commit | 1063c71d832b368274ad96afee27f2ea26903a00 (patch) | |
tree | 4c241b300ef3f3512b07989983b2add4fc45f7e0 | |
parent | e5549e8654da440b83c99942a3c66495c9f3458d (diff) | |
download | qolab-1063c71d832b368274ad96afee27f2ea26903a00.tar.gz qolab-1063c71d832b368274ad96afee27f2ea26903a00.zip |
fix Windows vs Linux data grabing behavior
-rw-r--r-- | qolab/hardware/scope/sds800xhd.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qolab/hardware/scope/sds800xhd.py b/qolab/hardware/scope/sds800xhd.py index 3ea7f81..350d53d 100644 --- a/qolab/hardware/scope/sds800xhd.py +++ b/qolab/hardware/scope/sds800xhd.py @@ -10,6 +10,7 @@ from qolab.data.trace import Trace import numpy as np import scipy.signal from pyvisa.constants import InterfaceType +import platform import logging @@ -160,6 +161,9 @@ class SDS800XHD(SDS1104X): container=np.array, chunk_size=496, ) + if "Windows" == (platform.system()): + # somehow on windows there is an extra '\n' at the end + _ = self.read_bytes(1) else: wfRaw = self.query_binary_values( qstr, datatype="h", header_fmt="ieee", container=np.array |