From 4f55e72138b9d22f0554bf7655658dc0d34a199a Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 21 Jul 2024 14:04:24 -0400 Subject: added Time Base Mode query and write --- qolab/hardware/scope/rigolds1054z.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'qolab/hardware') diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py index ced67d2..b41086c 100644 --- a/qolab/hardware/scope/rigolds1054z.py +++ b/qolab/hardware/scope/rigolds1054z.py @@ -91,6 +91,26 @@ class RigolDS1054z(ScopeSCPI): res = self.query(":TRIGger:STATus?") return res + @BasicInstrument.tsdb_append + def getTimeBaseMode(self): + """Get he mode of the horizontal timebase. + + We expect {MAIN|XY|ROLL}. + MAIN stands for normal voltage vs time mode. + XY stands X vs Y mode. + ROLL stands for rolling mode. + """ + res = self.query(":TIMebase:MODE?") + return res + + @BasicInstrument.tsdb_append + def setTimeBaseMode(self, val): + """Set trigger mode. + + Takes {MAIN|XY|ROLL}. + """ + self.write(f":TIMebase:MODE? {val}") + @BasicInstrument.tsdb_append def getTriggerMode(self): """Get trigger mode. -- cgit v1.2.3