aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/scope/sds800xhd.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-10-13 14:03:53 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-10-13 14:39:08 -0400
commit145fb89359d0b89145cdc9dd579b981a12b4d71c (patch)
treeb5b31095d295417f6037582d7bee8a904b6f33c9 /qolab/hardware/scope/sds800xhd.py
parent0a964fafe35b89b4e09bc91311ce818cb4edbb7d (diff)
downloadqolab-145fb89359d0b89145cdc9dd579b981a12b4d71c.tar.gz
qolab-145fb89359d0b89145cdc9dd579b981a12b4d71c.zip
added set sampling rate command
Diffstat (limited to 'qolab/hardware/scope/sds800xhd.py')
-rw-r--r--qolab/hardware/scope/sds800xhd.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/qolab/hardware/scope/sds800xhd.py b/qolab/hardware/scope/sds800xhd.py
index b7eef5f..f1e0d98 100644
--- a/qolab/hardware/scope/sds800xhd.py
+++ b/qolab/hardware/scope/sds800xhd.py
@@ -236,6 +236,18 @@ class SDS800XHD(SDS1104X):
tr.config["tags"]["Preamble"] = preamble
return tr
+ @BasicInstrument.tsdb_append
+ def setSampleRate(self, val):
+ """
+ Set scope sampling rate
+
+ Note: Memory management should be set to fixed
+ sampling rate otherwise this command has no effect,
+ while reporting success.
+ """
+ self.write(":ACQuire:MMANagement FSRate") # switch to fixed sampling rate setting
+ cstr = f":ACQuire:SRATe {val}"
+ self.write(cstr)
if __name__ == "__main__":
import pyvisa