From 3302ec07e171b6d43f86a9e20251cdf4e651f5b7 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Fri, 1 Sep 2023 10:11:51 +0200
Subject: [PATCH] Updates test_3_mux_2024.py

---
 dev/test_3_mux_2024.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev/test_3_mux_2024.py b/dev/test_3_mux_2024.py
index 76eb054f..d875c5af 100644
--- a/dev/test_3_mux_2024.py
+++ b/dev/test_3_mux_2024.py
@@ -55,7 +55,13 @@ if within_ohmpi:
     k._hw.calibrate_rx_bias()  # electrodes 1 4 2 3 should be connected to a reference circuit
     # print(f'Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV')
     # k._hw._plot_readings()
-    d= k.run_measurement([A, B, M, N], injection_duration=6.)
+    k._hw.switch_mux([A, B, M, N], state='on')
+    k._hw.vab_square_wave(3., 1)
+    k._hw.switch_mux([A, B, M, N], state='off')
+    print(f'Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV')
+    k._hw._plot_readings()
+    print('using OhmPi')
+    d = k.run_measurement([A, B, M, N], injection_duration=6.)
     print(d)
     # k._hw._plot_readings()
     print(f'Resistance: {k._hw.last_rho :.2f} ohm, dev. {k._hw.last_dev:.2f} %, rx bias: {k._hw.rx._bias:.2f} mV')
-- 
GitLab