diff options
Diffstat (limited to 'qolab/hardware/scope/sds800xhd.py')
-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 |