aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope/sds1104x.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-30 17:13:50 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-30 17:13:50 -0500
commit5944afc7ace0ae11d5cb48985078134ad1b5a9b7 (patch)
tree8f2911d6b620e9694bc3aed8e65ce20b4bb2e012 /qolab/hardware/scope/sds1104x.py
parent9ad169045c63e0bc4d54a5e01eab2755cf5aff6f (diff)
downloadqolab-5944afc7ace0ae11d5cb48985078134ad1b5a9b7.tar.gz
qolab-5944afc7ace0ae11d5cb48985078134ad1b5a9b7.zip
added setChanVoltageOffset
Diffstat (limited to 'qolab/hardware/scope/sds1104x.py')
-rw-r--r--qolab/hardware/scope/sds1104x.py4
1 files changed, 4 insertions, 0 deletions
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?'