diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-10-13 14:03:53 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-10-13 14:39:08 -0400 |
commit | 145fb89359d0b89145cdc9dd579b981a12b4d71c (patch) | |
tree | b5b31095d295417f6037582d7bee8a904b6f33c9 /qolab | |
parent | 0a964fafe35b89b4e09bc91311ce818cb4edbb7d (diff) | |
download | qolab-145fb89359d0b89145cdc9dd579b981a12b4d71c.tar.gz qolab-145fb89359d0b89145cdc9dd579b981a12b4d71c.zip |
added set sampling rate command
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/scope/sds800xhd.py | 12 |
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 |