From 5944afc7ace0ae11d5cb48985078134ad1b5a9b7 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 30 Dec 2021 17:13:50 -0500 Subject: added setChanVoltageOffset --- qolab/hardware/scope/sds1104x.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qolab/hardware/scope/sds1104x.py') diff --git a/qolab/hardware/scope/sds1104x.py b/qolab/hardware/scope/sds1104x.py index 40ba39a..c950046 100644 --- a/qolab/hardware/scope/sds1104x.py +++ b/qolab/hardware/scope/sds1104x.py @@ -142,6 +142,10 @@ class SDS1104X(ScopeSCPI): prefix, numberString, unit = response2numStr(rstr, firstSeparator=' ', unit='V') return(float(numberString)) + def setChanVoltageOffset(self, chNum, val): + cstr = f'C{chNum}:OFST {val}' + self.write(cstr) + def getLED(self): """ Returns binary mask of available LEDs """ qstr = 'LED?' -- cgit v1.2.3