diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 14:04:24 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 14:04:24 -0400 |
commit | 4f55e72138b9d22f0554bf7655658dc0d34a199a (patch) | |
tree | 9e78b4efcbde070b85780e2ba2e9d61fdd943671 /qolab/hardware/scope | |
parent | 3b8a1e230f329510285ce0fcd920e0f2ee1080f4 (diff) | |
download | qolab-4f55e72138b9d22f0554bf7655658dc0d34a199a.tar.gz qolab-4f55e72138b9d22f0554bf7655658dc0d34a199a.zip |
added Time Base Mode query and write
Diffstat (limited to 'qolab/hardware/scope')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ -92,6 +92,26 @@ class RigolDS1054z(ScopeSCPI): 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. |