Commit 2448e90e authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Adds a test of mux_2024 using OhmPi

Showing with 10 additions and 1 deletion
+10 -1
No preview for this file type
...@@ -5,8 +5,9 @@ change_config('config_mb_2023_mux_2024.py', verbose=False) ...@@ -5,8 +5,9 @@ change_config('config_mb_2023_mux_2024.py', verbose=False)
from OhmPi.hardware_components.mux_2024_rev_0_0 import Mux, MUX_CONFIG from OhmPi.hardware_components.mux_2024_rev_0_0 import Mux, MUX_CONFIG
from OhmPi.hardware_components import raspberry_pi as controller_module from OhmPi.hardware_components import raspberry_pi as controller_module
stand_alone_mux = True stand_alone_mux = False
part_of_hardware_system = False part_of_hardware_system = False
within_ohmpi = True
# Stand alone mux # Stand alone mux
if stand_alone_mux: if stand_alone_mux:
MUX_CONFIG['controller'] = controller_module.Controller() MUX_CONFIG['controller'] = controller_module.Controller()
...@@ -36,4 +37,12 @@ if part_of_hardware_system: ...@@ -36,4 +37,12 @@ if part_of_hardware_system:
time.sleep(1.) time.sleep(1.)
k.switch_mux(electrodes=[1,4,2,3], roles=['A', 'B', 'M', 'N'], state='off') k.switch_mux(electrodes=[1,4,2,3], roles=['A', 'B', 'M', 'N'], state='off')
if within_ohmpi:
from OhmPi import OhmPi
print('Starting test of mux within OhmPi.')
k = OhmPi()
k.switch_mux((1,'A'), state='on')
time.sleep(1.)
k.reset_mux()
change_config('config_default.py', verbose=False) change_config('config_default.py', verbose=False)
\ No newline at end of file
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