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

Updates a test in dev for 4 muxes 2024

Showing with 2 additions and 2 deletions
+2 -2
......@@ -42,7 +42,7 @@ HARDWARE_CONFIG = {
'mcp_0': '0x22', # NOTE: Check pos of jumper on MUX board (refer to doc)
'mcp_1': '0x23', # NOTE: Check pos of jumper on MUX board (refer to doc)
'roles': {'A': 'X', 'B': 'Y', 'M': 'XX', 'N': 'YY'},
'cabling': {(i, j): ('mux_02', i) for j in ['A', 'B', 'M', 'N'] for i in range(1, 9)},
'cabling': {(i, j): ('mux_02', i) for j in ['A', 'B', 'M', 'N'] for i in range(1, 9)}, # TODO: avoid redundency of mux_id
'voltage_max': 12.},
'mux_05':
{'model': 'mux_2024_rev_0_0', # 'ohmpi_i2c_mux64_v1.01',
......
......@@ -16,7 +16,7 @@ within_ohmpi = False
if stand_alone_mux:
mux_id = 'mux_02'
print(MUX_CONFIG)
MUX_CONFIG.update(HARDWARE_CONFIG['mux']['boards'][mux_id])
MUX_CONFIG.update({mux_id: HARDWARE_CONFIG['mux']['boards'][mux_id]})
MUX_CONFIG['ctl'] = ctl_module.Ctl()
mux = Mux(**MUX_CONFIG)
mux.switch_one(elec=1, role='M', state='on')
......
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