Commit 5c3912c8 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates a test in dev for 4 muxes 2024

Showing with 3 additions and 2 deletions
+3 -2
...@@ -27,7 +27,7 @@ HARDWARE_CONFIG = { ...@@ -27,7 +27,7 @@ HARDWARE_CONFIG = {
'current_max': 4800 / 50 / 2, # Maximum current supported by the TX board [mA] 'current_max': 4800 / 50 / 2, # Maximum current supported by the TX board [mA]
'r_shunt': 2 # Shunt resistance in Ohms 'r_shunt': 2 # Shunt resistance in Ohms
}, },
'rx' : {'model': 'ohmpi_card_3_15', 'rx': {'model': 'ohmpi_card_3_15',
'coef_p2': 2.50, # slope for current conversion for ADS.P2, measurement in V/V 'coef_p2': 2.50, # slope for current conversion for ADS.P2, measurement in V/V
'sampling_rate': 100., # Hz 'sampling_rate': 100., # Hz
'nb_samples': 20, # Max value 10 # was named integer before... 'nb_samples': 20, # Max value 10 # was named integer before...
......
...@@ -16,7 +16,8 @@ within_ohmpi = False ...@@ -16,7 +16,8 @@ within_ohmpi = False
if stand_alone_mux: if stand_alone_mux:
mux_id = 'mux_02' mux_id = 'mux_02'
print(MUX_CONFIG) print(MUX_CONFIG)
MUX_CONFIG.update({mux_id: HARDWARE_CONFIG['mux']['boards'][mux_id]}) MUX_CONFIG.update(HARDWARE_CONFIG['mux']['boards'][mux_id])
MUX_CONFIG.update('id', mux_id)
MUX_CONFIG['ctl'] = ctl_module.Ctl() MUX_CONFIG['ctl'] = ctl_module.Ctl()
mux = Mux(**MUX_CONFIG) mux = Mux(**MUX_CONFIG)
mux.switch_one(elec=1, role='M', state='on') 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