From e6df39ca9c3594d5800978e003f3defe47da4ada Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 7 Dec 2021 12:36:53 -0500 Subject: added function to time and voltage scale --- qolab/hardware/scope/sds1104x.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qolab/hardware') 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) -- cgit v1.2.3