From 0122d5ee3c0d8a06dd91b5b6db6e3b648bb7e29f Mon Sep 17 00:00:00 2001
From: Arnaud Watlet <arnaud.watlet@umons.ac.be>
Date: Fri, 15 Dec 2023 11:53:01 +0100
Subject: [PATCH] tries to fix vmax issue

---
 ohmpi/ohmpi.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py
index 8e479a68..c65edd31 100644
--- a/ohmpi/ohmpi.py
+++ b/ohmpi/ohmpi.py
@@ -587,11 +587,11 @@ class OhmPi(object):
 
             # Discharge DPS capa (not working properly)
             #TODO: For pwr_adjustable only and perhaps in a separate function (or at _hw level)
-            self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='on')
-            self._hw.tx.polarity = 1
+            #self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='on')
+            #self._hw.tx.polarity = 1
             time.sleep(1.0)
-            self._hw.tx.polarity = 0
-            self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='off')
+            #self._hw.tx.polarity = 0
+            #self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='off')
         else:
             self.exec_logger.info(f'Skipping {quad}')
         self.switch_mux_off(quad, cmd_id)
-- 
GitLab