aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope/rigolds1054z.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 13:53:50 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-21 13:55:25 -0400
commitfd896801a18438baf61410f8dfbb80d272a2a55a (patch)
tree4e2618161588a72cb79a5b87b48f016ea2802d43 /qolab/hardware/scope/rigolds1054z.py
parent9e481f9c345cc28bca5a70f9aace1760932380eb (diff)
downloadqolab-fd896801a18438baf61410f8dfbb80d272a2a55a.tar.gz
qolab-fd896801a18438baf61410f8dfbb80d272a2a55a.zip
added sample rate acquisition. Odly it cannot be set directly.
Diffstat (limited to 'qolab/hardware/scope/rigolds1054z.py')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index a78a978..5272f5c 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -144,6 +144,18 @@ class RigolDS1054z(ScopeSCPI):
"""
self.write(f":ACQuire:MDEPth {val}")
+ @BasicInstrument.tsdb_append
+ def getSampleRate(self):
+ """Get sample rate.
+
+ Returns
+ -------
+ Sample rate in units of Samples/Second
+ """
+
+ res = self.query(":ACQuire:SRATe?")
+ return float(res)
+
def stop(self):
self.write(":STOP")