From 1063c71d832b368274ad96afee27f2ea26903a00 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 16 Oct 2024 21:38:37 -0400 Subject: fix Windows vs Linux data grabing behavior --- qolab/hardware/scope/sds800xhd.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3