diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-07 12:36:53 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-07 12:36:53 -0500 |
commit | e6df39ca9c3594d5800978e003f3defe47da4ada (patch) | |
tree | 86fd601775d80d9ced846f09b82c137593c683b1 | |
parent | 10abb322467c7490d53d6e09e8908d099f657e97 (diff) | |
download | qolab-e6df39ca9c3594d5800978e003f3defe47da4ada.tar.gz qolab-e6df39ca9c3594d5800978e003f3defe47da4ada.zip |
added function to time and voltage scale
-rw-r--r-- | qolab/hardware/scope/sds1104x.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qolab/hardware/scope/sds1104x.py b/qolab/hardware/scope/sds1104x.py index 6285aef..6c7116c 100644 --- a/qolab/hardware/scope/sds1104x.py +++ b/qolab/hardware/scope/sds1104x.py @@ -100,6 +100,11 @@ class SDS1104X(ScopeSCPI): prefix, numberString, unit = response2numStr(rstr, firstSeparator=' ', unit='V') return(float(numberString)) + def setChanVoltsPerDiv(self, chNum, vPerDiv): + cstr = f'C{chNum}:VDIV {vPerDiv}' + self.write(cstr) + # if out of range, the VAB bit (bit 2) in the STB register to be set + def getChanOffset(self, chNum): qstr = f'C{chNum}:OFST?' rstr = self.query(qstr) @@ -114,6 +119,11 @@ class SDS1104X(ScopeSCPI): prefix, numberString, unit = response2numStr(rstr, firstSeparator=' ', unit='S') return(float(numberString)) + def setTimePerDiv(self, timePerDiv): + cstr = f'TDIV {timePerDiv}' + self.write(cstr) + # if out of range, the VAB bit (bit 2) in the STB register to be set + def getTrigDelay(self): qstr = f'TRIG_DELAY?' rstr = self.query(qstr) |