diff --git a/Proposition software architecture.odp b/Proposition software architecture.odp index 848313ca686869e9f1d8aeec0e2d233308208c7c..b73ef69ade0d0f2ca80058e9fa60ffe56df09234 100644 Binary files a/Proposition software architecture.odp and b/Proposition software architecture.odp differ diff --git a/test_mux_2024.py b/test_mux_2024.py index f313ea6f97c81eaa0a657c18ec98c0cefa44164f..ec73a51fe695a42a06d0fc33700bc28a35dcd3e7 100644 --- a/test_mux_2024.py +++ b/test_mux_2024.py @@ -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 import raspberry_pi as controller_module -stand_alone_mux = True +stand_alone_mux = False part_of_hardware_system = False +within_ohmpi = True # Stand alone mux if stand_alone_mux: MUX_CONFIG['controller'] = controller_module.Controller() @@ -36,4 +37,12 @@ if part_of_hardware_system: time.sleep(1.) 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) \ No newline at end of file