From 145fb89359d0b89145cdc9dd579b981a12b4d71c Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 13 Oct 2024 14:03:53 -0400 Subject: added set sampling rate command --- qolab/hardware/scope/sds800xhd.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qolab/hardware') 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 -- cgit v1.2.3