From 3abad33541b4bba211972f8f81da5cf02b79a902 Mon Sep 17 00:00:00 2001
From: awatlet <arnaud.watlet@umons.ac.be>
Date: Thu, 19 Oct 2023 15:20:44 +0200
Subject: [PATCH] Updates test

---
 dev/test_mb_2024_4_mux_2024.py | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/dev/test_mb_2024_4_mux_2024.py b/dev/test_mb_2024_4_mux_2024.py
index a800fd9b..7d3142d8 100644
--- a/dev/test_mb_2024_4_mux_2024.py
+++ b/dev/test_mb_2024_4_mux_2024.py
@@ -7,9 +7,9 @@ import time
 import logging
 from ohmpi.config import HARDWARE_CONFIG
 
-stand_alone = False
+stand_alone = True
 part_of_hardware_system = False
-within_ohmpi = True
+within_ohmpi = False
 
 # Stand alone
 if stand_alone:
@@ -66,14 +66,10 @@ if stand_alone:
     #     mux.test({'A': [i+8*m for i in range(1, 9)], 'B': [i+8*m for i in range(1, 9)],
     #               'M': [i+8*m for i in range(1, 9)], 'N': [i+8*m for i in range(1, 9)]}, activation_time=.1)
     #     mux.reset()
-    tx.polarity = 1
-    time.sleep(5)
-    tx.polarity = 0
-    time.sleep(5)
-    tx.polarity = -1
-    time.sleep(5)
-    tx.polarity = 0
-    time.sleep(5)
+    for pol in [1,0,-1,0]:
+        tx.polarity = pol
+        print(pol)
+        time.sleep(5)
 
 # mux as part of a OhmPiHardware system
 if part_of_hardware_system:
-- 
GitLab