From 2410b9660b4cdb7307b7130506a6acc2a3e591b4 Mon Sep 17 00:00:00 2001
From: Sander de Snoo <59472150+sldesnoo-Delft@users.noreply.github.com>
Date: Thu, 24 Nov 2022 18:29:35 +0100
Subject: [PATCH] Fix flush order in init

---
 pulse_lib/keysight/M3202A_uploader.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulse_lib/keysight/M3202A_uploader.py b/pulse_lib/keysight/M3202A_uploader.py
index 3aadc9c8..702bbcaf 100644
--- a/pulse_lib/keysight/M3202A_uploader.py
+++ b/pulse_lib/keysight/M3202A_uploader.py
@@ -47,10 +47,10 @@ class M3202A_Uploader:
         self._config_marker_channels()
 
     def _init_awgs(self):
-        self.release_all_awg_memory()
         for awg in self.AWGs.values():
             for ch in [1,2,3,4]:
                 awg.awg_flush(ch)
+        self.release_all_awg_memory()
 
     def _config_marker_channels(self):
         for channel in self.marker_channels.values():
-- 
GitLab