diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 7537aa9c03173f57f3446bf0a494e893cf5bdc22..31b3e99866b86a774840f65728cc9a20ed1c7a45 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -37,7 +37,7 @@ for k, v in tx_module.SPECS['tx'].items(): RX_CONFIG = HARDWARE_CONFIG['rx'] -current_max = np.min([TX_CONFIG['current_max'], np.min([MUX_CONFIG[i].pop('current_max', np.inf) for i in MUX_CONFIG.keys()])]) +current_max = np.min([TX_CONFIG['voltage_max']/50/TX_CONFIG['r_shunt'], np.min([MUX_CONFIG[i].pop('current_max', np.inf) for i in MUX_CONFIG.keys()])]) voltage_max = np.min([TX_CONFIG['voltage_max'], np.min([MUX_CONFIG[i].pop('voltage_max', np.inf) for i in MUX_CONFIG.keys()])]) voltage_min = RX_CONFIG['voltage_min']