diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 14:10:46 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 14:10:46 -0400 |
commit | 7cd6d95d133c30020724f325a054db8303029a80 (patch) | |
tree | d99e45aef22807844b6c04013db064ee600ecbf2 /qolab | |
parent | d92fd69741cbcdc0c25c3bed0467179b76ca0b14 (diff) | |
download | qolab-7cd6d95d133c30020724f325a054db8303029a80.tar.gz qolab-7cd6d95d133c30020724f325a054db8303029a80.zip |
added function to inquire about run status
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 8 |
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. |