diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-05-27 15:46:00 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-05-27 15:46:00 -0400 |
commit | fadcbdac7836579bed05f9598eb5a06654a24f9c (patch) | |
tree | c141ea1613f3d6a03819cd237db6ff60d8ecb320 /qolab/hardware | |
parent | 78a9eb8fbffb496ab22e2becee82822c41b72e98 (diff) | |
download | qolab-fadcbdac7836579bed05f9598eb5a06654a24f9c.tar.gz qolab-fadcbdac7836579bed05f9598eb5a06654a24f9c.zip |
added helper function
Diffstat (limited to 'qolab/hardware')
-rw-r--r-- | qolab/hardware/power_supply/keysight_e3612a.py | 7 |
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): """ |