Commit c51c4110 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes test_mux_2024_2_roles_AB.py

Showing with 6 additions and 5 deletions
+6 -5
...@@ -28,20 +28,21 @@ if stand_alone_mux: ...@@ -28,20 +28,21 @@ if stand_alone_mux:
# mux.switch({'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='off') # mux.switch({'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='off')
mux.reset() mux.reset()
mux.test({'A': [i for i in range(1, 17)], 'B': [i for i in range(1, 17)]}, activation_time=.1) mux.test({'A': [i for i in range(1, 17)], 'B': [i for i in range(1, 17)]}, activation_time=.1)
mux.reset()
# mux as part of a OhmPiHardware system # mux as part of a OhmPiHardware system
if part_of_hardware_system: if part_of_hardware_system:
from ohmpi.hardware_system import OhmPiHardware from ohmpi.hardware_system import OhmPiHardware
print('Starting test of mux as part of a OhmPiHardware system.') print('Starting test of mux as part of a OhmPiHardware system.')
k = OhmPiHardware() h = OhmPiHardware()
k.exec_logger.setLevel(logging.DEBUG) h.exec_logger.setLevel(logging.DEBUG)
# Test mux switching # Test mux switching
k.reset_mux() h.reset_mux()
k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='on') h.switch_mux(electrodes=[1, 4], roles=['A', 'B'], state='on')
time.sleep(1.) time.sleep(1.)
k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='off') h.switch_mux(electrodes=[1, 4], roles=['A', 'B'], state='off')
if within_ohmpi: if within_ohmpi:
from ohmpi.ohmpi import OhmPi from ohmpi.ohmpi import OhmPi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment