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