fossasia / pslab-python

Python Library for PSLab Desktop: https://pslab.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerSupply pcs = 0 sets current to max

arkostin opened this issue · comments

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

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

Resolved by #168.