summaryrefslogtreecommitdiffstats
path: root/lab_control
diff options
context:
space:
mode:
Diffstat (limited to 'lab_control')
-rw-r--r--lab_control/sds1000xe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lab_control/sds1000xe.py b/lab_control/sds1000xe.py
index 551c9ef..859b1bf 100644
--- a/lab_control/sds1000xe.py
+++ b/lab_control/sds1000xe.py
@@ -21,7 +21,7 @@ class SDS1000XE(Oscilloscope):
try:
# TODO add code to regex
response = self._socket.recv(4096).decode()
- m = re.search(r"C(?P<responseChannel>\d):PAVA .+,(?P<rawMeasurement>[0-9.E+-]+)\w+", response)
+ m = re.search(r"C(?P<responseChannel>\d):PAVA .+,(?P<rawMeasurement>[\d.E+-]+)\w+", response)
measurement = float(m.group("rawMeasurement"))
except TimeoutError as e:
measurement = None