From eea1e22064755a3baf0770780c6a24892b3b5ff8 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 18 Jun 2024 00:06:25 -0400 Subject: converted SDS2304X to use response2numStr for uniformity --- qolab/hardware/scope/sds2304x.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qolab/hardware/scope') diff --git a/qolab/hardware/scope/sds2304x.py b/qolab/hardware/scope/sds2304x.py index fc9b129..f7c5fb8 100644 --- a/qolab/hardware/scope/sds2304x.py +++ b/qolab/hardware/scope/sds2304x.py @@ -26,8 +26,6 @@ class SDS2304X(SDS1104X): # Siglent claims that this model should have same commands as SDS1104X # however response is different, for example we got '2.00E-08S' instead 'TDIV 2.00E-08S' # expected reply to query: '2.00E-08S' - spltStr=re.split('S', rstr) - numberString = spltStr[0] - #prefix, numberString, unit = response2numStr(rstr, firstSeparator=None, unit='S') + prefix, numberString, unit = response2numStr(rstr, firstSeparator=None, unit='S') return(float(numberString)) -- cgit v1.2.3