diff options
Diffstat (limited to 'qolab/hardware/scope')
-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) |