From d420fd6b5b9c08c009f9fd3600ed0767135ef081 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 22 Jul 2024 10:29:00 -0400 Subject: make sure that scope is stopped before trace is acquired --- qolab/hardware/scope/_basic.py | 1 + 1 file changed, 1 insertion(+) (limited to 'qolab/hardware/scope/_basic.py') diff --git a/qolab/hardware/scope/_basic.py b/qolab/hardware/scope/_basic.py index afc2913..914f009 100644 --- a/qolab/hardware/scope/_basic.py +++ b/qolab/hardware/scope/_basic.py @@ -137,6 +137,7 @@ class Scope(BasicInstrument): old_run_status = self.getRun() if old_run_status: # avoid unnecessary status change self.setRun(False) # stop if currently running + self._waitUntillStop() # to get synchronous channels for chNum in range(1, self.numberOfChannels + 1): allTraces.addTrace( -- cgit v1.2.3