aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-10-16 21:38:37 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-10-16 21:38:37 -0400
commit1063c71d832b368274ad96afee27f2ea26903a00 (patch)
tree4c241b300ef3f3512b07989983b2add4fc45f7e0 /qolab
parente5549e8654da440b83c99942a3c66495c9f3458d (diff)
downloadqolab-1063c71d832b368274ad96afee27f2ea26903a00.tar.gz
qolab-1063c71d832b368274ad96afee27f2ea26903a00.zip
fix Windows vs Linux data grabing behavior
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scope/sds800xhd.py4
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