aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py
index 8000c56..69f6f4a 100644
--- a/qolab/hardware/power_supply/keysight_e3612a.py
+++ b/qolab/hardware/power_supply/keysight_e3612a.py
@@ -138,14 +138,17 @@ class KeysightE3612A(PowerSupplySCPI):
"""
iDesired = val
# self.setChanIlimit(chNum, val+currentHeadRoom)
- # Here, we assume that hook up is already made, so we can estimate source resistance
+ # Here, we assume that hook up is already made,
+ # so we can estimate source resistance.
# So the protocol is the following:
# find R -> calculate required Vout for the desired Idesired
# -> set Vlimit to reach desired Vout and Iout
- # In general, once we estimate resistance of the load + source, we do not need to
- # anything extra. But there is a problem: for a given Vlimit setting, the actual Vout
+ # In general, once we estimate resistance of the load + source,
+ # we do not need to anything extra.
+ # But there is a problem: for a given Vlimit setting, the actual Vout
# is slightly off.
- # We will assume that Vlimit = R*Iout + Vo = Vout + Vo, i.e. linear approximation
+ # We will assume that Vlimit = R*Iout + Vo = Vout + Vo,
+ # i.e. linear approximation
for i in range(10):
iOut = self.getChanIout(chNum)
if abs(iOut - iDesired) <= self.getChandI(chNum):