PowerSupply pcs = 0 sets current to max
arkostin opened this issue · comments
Alex Kostin commented
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
Alexander Bessman commented
Thanks for reporting this. It will be fixed shortly. In the meantime, rest assured the bug is purely aesthetical; the actual current is zero.
Alexander Bessman commented
Resolved by #168.