From 9577dffd25dab7ff7ac7a51397a720c6e2e38b21 Mon Sep 17 00:00:00 2001
From: Martin Killenberg <martin.killenberg@desy.de>
Date: Fri, 14 Oct 2022 14:15:37 +0200
Subject: [PATCH] fix scpi command for VNA sweep mode

---
 Python_script/VNA.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Python_script/VNA.py b/Python_script/VNA.py
index 085c34d..d128911 100755
--- a/Python_script/VNA.py
+++ b/Python_script/VNA.py
@@ -141,7 +141,7 @@ class Vna:
         mode : str
             Sweep mode.
         """
-        return self.vna.query("SENS1:SWE:MODE " + mode + "; *OPC?")
+        return self.vna.query("SENS1:SWE:TYPE " + mode + "; *OPC?")
 
     def get_measurement_string(self, trace, result_format):
         """
-- 
GitLab