aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/power_supply/keysight_e3612a.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-03-09 14:58:04 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-03-09 14:58:04 -0500
commit3943e2880dcd6943be3e6d4b38855d2665e7960b (patch)
tree803f6b0f2fc48b67fdd6d6c8643a6d64ca9da81a /qolab/hardware/power_supply/keysight_e3612a.py
parentb5681cfc37bb559aea508ad1d524f6dcce2430df (diff)
downloadqolab-3943e2880dcd6943be3e6d4b38855d2665e7960b.tar.gz
qolab-3943e2880dcd6943be3e6d4b38855d2665e7960b.zip
added get Ilimit
Diffstat (limited to 'qolab/hardware/power_supply/keysight_e3612a.py')
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py
index d95f02a..d6a0770 100644
--- a/qolab/hardware/power_supply/keysight_e3612a.py
+++ b/qolab/hardware/power_supply/keysight_e3612a.py
@@ -11,7 +11,7 @@ class KeysightE3612A(PowerSupplySCPI):
self.config['Device model'] = 'Keysight E3612A'
self.numberOfChannels = 3
# self.channelProperties = {'Vlimit', 'Ilimit', 'Vout', 'Iout' }
- self.channelProperties = {'IsOn', 'Vout', 'Iout', }
+ self.channelProperties = {'IsOn', 'Vout', 'Iout', 'Ilimit' }
def setChanOn(self, chNum):
self.write(f'OUTP ON,(@{chNum})')
@@ -37,6 +37,11 @@ class KeysightE3612A(PowerSupplySCPI):
rstr = self.query(qstr)
return( float(rstr) )
+ @BasicInstrument.tsdb_append
+ def getChanIlimit(self, chNum):
+ qstr = f'SOURce:CURR? (@{chNum})'
+ rstr = self.query(qstr)
+ return( float(rstr) )
if __name__ == '__main__':
import pyvisa