aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 14:10:25 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 14:10:25 -0400
commitd92fd69741cbcdc0c25c3bed0467179b76ca0b14 (patch)
tree5d77a9426045b0ab7333ff654b040fe16fda1460 /qolab/hardware/scope
parent4f55e72138b9d22f0554bf7655658dc0d34a199a (diff)
downloadqolab-d92fd69741cbcdc0c25c3bed0467179b76ca0b14.tar.gz
qolab-d92fd69741cbcdc0c25c3bed0467179b76ca0b14.zip
added function to inquire about Roll status
Diffstat (limited to 'qolab/hardware/scope')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index b41086c..f7a99bb 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -112,6 +112,13 @@ class RigolDS1054z(ScopeSCPI):
self.write(f":TIMebase:MODE? {val}")
@BasicInstrument.tsdb_append
+ def getRoll(self):
+ """Is Roll mode enabled."""
+ if self.getTimeBaseMode() == "Roll":
+ return True
+ return False
+
+ @BasicInstrument.tsdb_append
def getTriggerMode(self):
"""Get trigger mode.