From 5ff6f354cca57fca19ebbd56e64facc43b79e742 Mon Sep 17 00:00:00 2001
From: Arnaud Watlet <arnaud.watlet@umons.ac.be>
Date: Wed, 6 Dec 2023 23:57:18 +0100
Subject: [PATCH] Tries to address vmax issue

---
 ohmpi/ohmpi.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py
index 9edfc010..8bdd8523 100644
--- a/ohmpi/ohmpi.py
+++ b/ohmpi/ohmpi.py
@@ -584,9 +584,11 @@ class OhmPi(object):
             # log data to the data logger
             self.data_logger.info(dd)
 
+            # 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
-            time.sleep(1.0)
+            time.sleep(2.0)
             self._hw.tx.polarity = 0
             self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='off')
         else:
-- 
GitLab