aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 14:10:46 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 14:10:46 -0400
commit7cd6d95d133c30020724f325a054db8303029a80 (patch)
treed99e45aef22807844b6c04013db064ee600ecbf2 /qolab/hardware/scope
parentd92fd69741cbcdc0c25c3bed0467179b76ca0b14 (diff)
downloadqolab-7cd6d95d133c30020724f325a054db8303029a80.tar.gz
qolab-7cd6d95d133c30020724f325a054db8303029a80.zip
added function to inquire about run status
Diffstat (limited to 'qolab/hardware/scope')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index f7a99bb..bf5a6a5 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -92,6 +92,14 @@ class RigolDS1054z(ScopeSCPI):
return res
@BasicInstrument.tsdb_append
+ def getRun(self):
+ """Is acquisition running or stopped."""
+
+ if self.getTriggerStatus() != "STOP":
+ return True
+ return False
+
+ @BasicInstrument.tsdb_append
def getTimeBaseMode(self):
"""Get he mode of the horizontal timebase.