diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 13:53:50 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-07-21 13:55:25 -0400 |
commit | fd896801a18438baf61410f8dfbb80d272a2a55a (patch) | |
tree | 4e2618161588a72cb79a5b87b48f016ea2802d43 /qolab | |
parent | 9e481f9c345cc28bca5a70f9aace1760932380eb (diff) | |
download | qolab-fd896801a18438baf61410f8dfbb80d272a2a55a.tar.gz qolab-fd896801a18438baf61410f8dfbb80d272a2a55a.zip |
added sample rate acquisition. Odly it cannot be set directly.
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/scope/rigolds1054z.py | 12 |
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") |