Skip to content

Some MUX voltages not reachable with get_ADC_value function

This is related to ITkPixV1. There are five MUX names that appear in both, the current and the voltage MUX dictionaries: NTC_PAD, DAC_TH2, DAC_TH1_M, DAC_TH1_L and DAC_TH1_R.

The get_ADC_value function checks first if the name is in the current MUX dictionary and only if it is NOT, it checks the voltage MUX dictionary. Since they have the same name, the voltage MUX will never be read out and always the current will be measured. For example in the get_chip_status function the current will be measured twice for the five, but never the voltage.

A possible solution would be to add suffixes like _V and _I to the names. This would also avoid potential confusion which physical quantity of the two has been measured.