From d92fd69741cbcdc0c25c3bed0467179b76ca0b14 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 21 Jul 2024 14:10:25 -0400 Subject: added function to inquire about Roll status --- qolab/hardware/scope/rigolds1054z.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qolab/hardware/scope/rigolds1054z.py') 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 @@ -111,6 +111,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. -- cgit v1.2.3