Bug: CH1 and CH2 autorange set incorrectly
cynthi8 opened this issue · 3 comments
cynthi8 commented
- Reading a measurement from CH1 or CH2
- Removing the measurement probes
- Re-inserting them
yields incorrect results.
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)
cynthi8 commented
Ah ok, sorry, I didn't check. Thanks!
bessman commented
No worries. Good job on finding the bug either way. I'll draft a new release and push it to pypi shortly.

