aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scope/rigolds1054z.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/qolab/hardware/scope/rigolds1054z.py b/qolab/hardware/scope/rigolds1054z.py
index 53b23e1..1bfe117 100644
--- a/qolab/hardware/scope/rigolds1054z.py
+++ b/qolab/hardware/scope/rigolds1054z.py
@@ -187,7 +187,14 @@ class RigolDS1054z(ScopeSCPI):
{AUTO|6000|60000| 600000|6000000|12000000}.
Wherein, 12000000 (pts) is an optional memory depth.
"""
+
+ # memory depth can be changed only when scope is not in STOP state
+ running = self.getRun()
+ if not running:
+ self.setRun(True)
self.write(f":ACQuire:MDEPth {val}")
+ if not running: # restore STOP/RUN state
+ self.setRun(False)
@BasicInstrument.tsdb_append
def getSampleRate(self):