When _voltmeter_autorangeis bypassed by calling _measure_voltage directly, this issue does not occur.
Setup
I connected CH1 measurement pins to I2C VDD (3.3 V) and GND and ran this code
import time
import sys
from PSL import sciencelab
I = sciencelab.connect()
channel = sys.argv[1]
while True:
voltage = I.multimeter.measure_voltage(channel)
print(channel, "=", voltage)
time.sleep(1)
yields incorrect results.
When
_voltmeter_autorange
is bypassed by calling_measure_voltage
directly, this issue does not occur.Setup I connected CH1 measurement pins to I2C VDD (3.3 V) and GND and ran this code
Results
With
_measure_voltage
instead ofmeasure_voltage
,