From 9a929384d42d51a5d68a363c5623c2937cc33815 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 16 Mar 2022 13:44:32 -0400 Subject: proper upper current limit --- qolab/hardware/power_supply/keysight_e3612a.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qolab/hardware/power_supply') 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) -- cgit v1.2.3