summaryrefslogtreecommitdiffstats
path: root/lab_control/test
diff options
context:
space:
mode:
Diffstat (limited to 'lab_control/test')
-rw-r--r--lab_control/test/mock_sds1000xe_device.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lab_control/test/mock_sds1000xe_device.py b/lab_control/test/mock_sds1000xe_device.py
index ce752e9..b4dd222 100644
--- a/lab_control/test/mock_sds1000xe_device.py
+++ b/lab_control/test/mock_sds1000xe_device.py
@@ -54,11 +54,12 @@ class MockSDS1000XEDevice:
if opcode == "PAVA":
arg = m.group("arg")
value = self._channels[channelIndex].get(arg)
+ unit = "Hz" if arg == "FREQ" else "V"
if value is None:
return None
else:
- response = f"C{m.group('channel')}:PAVA {arg},{value:.6E}V"
+ response = f"C{m.group('channel')}:PAVA {arg},{value:.6E}{unit}"
return response
def stop(self) -> None: