From fd896801a18438baf61410f8dfbb80d272a2a55a Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 21 Jul 2024 13:53:50 -0400 Subject: added sample rate acquisition. Odly it cannot be set directly. --- qolab/hardware/scope/rigolds1054z.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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") -- cgit v1.2.3