From 5d61bdd6461bbbb4a61e36694e63c540326790ce Mon Sep 17 00:00:00 2001 From: awatlet <arnaud.watlet@umons.ac.be> Date: Tue, 14 Nov 2023 11:56:32 +0100 Subject: [PATCH] Fixing rs_check --- ohmpi/ohmpi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ohmpi/ohmpi.py b/ohmpi/ohmpi.py index ed01e23a..aa259ac0 100644 --- a/ohmpi/ohmpi.py +++ b/ohmpi/ohmpi.py @@ -823,7 +823,9 @@ class OhmPi(object): self._hw.switch_mux(electrodes=list(quads[i, :2]), roles=['A', 'B'], state='on') self._hw._vab_pulse(duration=0.2, vab=tx_volt) current = self._hw.readings[-1, 3] - voltage = self._hw.tx.pwr.voltage * 1000 + print(self._hw.tx.pwr.voltage) + voltage = self._hw.tx.pwr.voltage + print(self._hw.tx.pwr.voltage) time.sleep(0.2) # self.switch_mux_on(quad, bypass_check=True) # put before raising the pins (otherwise conflict i2c) @@ -839,7 +841,7 @@ class OhmPi(object): # current = self._hw.tx.current # compute resistance measured (= contact resistance) - resist = abs(voltage / current) / 1000 # kOhm + resist = abs(voltage / current/1000) / 1000 # kOhm # print(str(quad) + '> I: {:>10.3f} mA, V: {:>10.3f} mV, R: {:>10.3f} kOhm'.format( # current, voltage, resist)) # msg = f'Contact resistance {str(quad):s}: I: {current :>10.3f} mA, ' \ -- GitLab