aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:16:39 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-14 01:16:39 -0400
commit2599636afa70f4dc09d4620a9babd3bf8ee9ae89 (patch)
tree0eeb06316d5506ee6908b6fed708aadc80e3d61f /qolab/hardware
parent40f5acce77b9d98a5a30b7dfbe7540e22c992faa (diff)
downloadqolab-2599636afa70f4dc09d4620a9babd3bf8ee9ae89.tar.gz
qolab-2599636afa70f4dc09d4620a9babd3bf8ee9ae89.zip
improved comment formatting
Diffstat (limited to 'qolab/hardware')
-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):