Commit a626414e authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Fixes test_mux

Showing with 9 additions and 9 deletions
+9 -9
......@@ -7,8 +7,8 @@ import time
import logging
from ohmpi.config import HARDWARE_CONFIG
stand_alone = True
part_of_hardware_system = False
stand_alone = False
part_of_hardware_system = True
within_ohmpi = False
# Stand alone
......@@ -75,8 +75,8 @@ if part_of_hardware_system:
# time.sleep(1.)
# k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='off')
# k.mux_boards[mux_id].test(activation_time=.4)
# k.test_mux()
k.test_mux()
k.reset_mux()
if within_ohmpi:
from ohmpi.ohmpi import OhmPi
......
......@@ -7,8 +7,8 @@ import time
import logging
from ohmpi.config import HARDWARE_CONFIG
stand_alone = True
part_of_hardware_system = False
stand_alone = False
part_of_hardware_system = True
within_ohmpi = False
# Stand alone
......@@ -71,7 +71,7 @@ if stand_alone:
if part_of_hardware_system:
from ohmpi.hardware_system import OhmPiHardware
print('Starting test of as part of an OhmPiHardware system.')
mux_id = 'mux_03'
# mux_id = 'mux_03'
k = OhmPiHardware()
k.exec_logger.setLevel(logging.DEBUG)
# Test mux switching
......@@ -80,8 +80,8 @@ if part_of_hardware_system:
# time.sleep(1.)
# k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='off')
# k.mux_boards[mux_id].test(activation_time=.4)
# k.test_mux_one_relay((1, 'A'))
k.test_mux()
k.reset_mux()
if within_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