fossasia / pslab-python

Python Library for PSLab Desktop: https://pslab.io
GNU General Public License v3.0
1.63k stars 225 forks source link

PowerSupply pcs = 0 sets current to max #167

Closed arkostin closed 3 years ago

arkostin commented 3 years ago

Thanks for taking the time to read this :)

Currently, setting the current on the PCS pin in the Power Supply instrument to 0 sets it to the maximum value (3.3e-3).

Here's some code to replicate the behavior:

from pslab import PowerSupply
ps = PowerSupply()

print(ps.pcs) # Prints 0
ps.pcs = 0
print(ps.pcs) # Prints 0.0033

Using Python 3.7.9, pslab 2.0.0

bessman commented 3 years ago

Thanks for reporting this. It will be fixed shortly. In the meantime, rest assured the bug is purely aesthetical; the actual current is zero.

bessman commented 3 years ago

Resolved by #168.