aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-03-16 13:44:32 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-03-16 13:44:32 -0400
commit9a929384d42d51a5d68a363c5623c2937cc33815 (patch)
tree84525e566f4cc6b0a28a4ae634c5741c433d2bc0 /qolab
parent9bab9cc68246fea287bb3bd001fcd0b1138e93a1 (diff)
downloadqolab-9a929384d42d51a5d68a363c5623c2937cc33815.tar.gz
qolab-9a929384d42d51a5d68a363c5623c2937cc33815.zip
proper upper current limit
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py
index 17a5aed..5977e91 100644
--- a/qolab/hardware/power_supply/keysight_e3612a.py
+++ b/qolab/hardware/power_supply/keysight_e3612a.py
@@ -111,8 +111,12 @@ class KeysightE3612A(PowerSupplySCPI):
""" Set current limit, seems to be >=0.002 for Ch1 and >=0.001 for Ch2 and Ch3 """
if chNum == 1 and val < 0.002:
val = 0.002
+ if chNum == 1 and val > 5.150:
+ val = 5.150
if (chNum == 2 or chNum == 3) and val < 0.001:
val = 0.001
+ if (chNum == 2 or chNum == 3) and val > 1.030:
+ val = 1.030
cmnd = f'SOURCe:CURR {val},(@{chNum})'
rstr = self.write(cmnd)