diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-30 17:13:50 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-30 17:13:50 -0500 |
commit | 5944afc7ace0ae11d5cb48985078134ad1b5a9b7 (patch) | |
tree | 8f2911d6b620e9694bc3aed8e65ce20b4bb2e012 /qolab/hardware | |
parent | 9ad169045c63e0bc4d54a5e01eab2755cf5aff6f (diff) | |
download | pyExpControl-5944afc7ace0ae11d5cb48985078134ad1b5a9b7.tar.gz pyExpControl-5944afc7ace0ae11d5cb48985078134ad1b5a9b7.zip |
added setChanVoltageOffset
Diffstat (limited to 'qolab/hardware')
-rw-r--r-- | qolab/hardware/scope/sds1104x.py | 4 |
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?' |