aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-05-27 15:46:00 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-05-27 15:46:00 -0400
commitfadcbdac7836579bed05f9598eb5a06654a24f9c (patch)
treec141ea1613f3d6a03819cd237db6ff60d8ecb320
parent78a9eb8fbffb496ab22e2becee82822c41b72e98 (diff)
downloadqolab-fadcbdac7836579bed05f9598eb5a06654a24f9c.tar.gz
qolab-fadcbdac7836579bed05f9598eb5a06654a24f9c.zip
added helper function
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py
index a7159f4..6793088 100644
--- a/qolab/hardware/power_supply/keysight_e3612a.py
+++ b/qolab/hardware/power_supply/keysight_e3612a.py
@@ -106,6 +106,13 @@ class KeysightE3612A(PowerSupplySCPI):
rstr = self.query(qstr)
return( float(rstr) )
+ def setChanIout_mA(self, chNum, val, **kwds):
+ """
+ Set current in mA.
+ Calls setChanIout with val converted from mA to A
+ """
+ return self.setChanIout(chNum, val/1000.0, **kwds)
+
@BasicInstrument.tsdb_append
def setChanIout(self, chNum, val, currentHeadRoom=1e-3, dwellTime=0.3):
"""