aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/scope')
-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")