From 8ebcd300cdebae940122375a728e777b5ec70caa Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Thu, 19 Oct 2023 22:44:16 +0200 Subject: [PATCH] Updates switch A & B to discharge dps --- ohmpi/hardware_components/pwr_dps5005.py | 2 +- ohmpi/ohmpi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_components/pwr_dps5005.py b/ohmpi/hardware_components/pwr_dps5005.py index aeb9b97e..36853786 100644 --- a/ohmpi/hardware_components/pwr_dps5005.py +++ b/ohmpi/hardware_components/pwr_dps5005.py @@ -72,7 +72,7 @@ class Pwr(PwrAbstract): return self._battery_voltage def current_max(self, value): # [mA] - value=value * 1.2 # To set DPS max current slightly above (20%) the limit to avoid regulation artefacts + value = value * 1.2 # To set DPS max current slightly above (20%) the limit to avoid regulation artefacts self.connection.write_register(0x0001, int(value*1000), 0) @property diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py index 72532a5f..e11f974f 100644 --- a/ohmpi/ohmpi.py +++ b/ohmpi/ohmpi.py @@ -577,7 +577,7 @@ class OhmPi(object): dd['cmd_id'] = str(cmd_id) self.data_logger.info(dd) self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='on') - time.sleep(0.2) + time.sleep(1.0) self._hw.switch_mux(electrodes=quad[0:2], roles=['A', 'B'], state='off') else: -- GitLab