From 3943e2880dcd6943be3e6d4b38855d2665e7960b Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 9 Mar 2022 14:58:04 -0500 Subject: added get Ilimit --- qolab/hardware/power_supply/keysight_e3612a.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qolab') 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 -- cgit v1.2.3