From 63433f896bd79afcc98e3c5ca7dd25882145a26d Mon Sep 17 00:00:00 2001
From: Clement Remi <remi.clement@irstea.fr>
Date: Tue, 6 Jun 2023 21:47:02 +0200
Subject: [PATCH] max current allow

---
 ohmpi.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ohmpi.py b/ohmpi.py
index 36fc728f..a525cc46 100644
--- a/ohmpi.py
+++ b/ohmpi.py
@@ -884,6 +884,7 @@ class OhmPi(object):
 
             # get best voltage to inject AND polarity
             if self.idps:
+                self.DPS.write_register(0X001, 2000, 0) #max current allow 200 mA                          
                 tx_volt, polarity, Rab = self._compute_tx_volt(
                     best_tx_injtime=best_tx_injtime, strategy=strategy, tx_volt=tx_volt, autogain=autogain)
                 self.exec_logger.debug(f'Best vab found is {tx_volt:.3f}V')
-- 
GitLab