aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py
index 6731caa..e106279 100644
--- a/qolab/hardware/power_supply/keysight_e3612a.py
+++ b/qolab/hardware/power_supply/keysight_e3612a.py
@@ -94,6 +94,8 @@ class KeysightE3612A(PowerSupplySCPI):
@BasicInstrument.tsdb_append
def setChanVlimit(self, chNum, val):
+ if val < 0:
+ val=0
if chNum == 1 and val > 6.180:
val = 6.180
if (chNum == 2 or chNum == 3) and val > 25.750: