diff options
Diffstat (limited to 'qolab/hardware/power_supply')
-rw-r--r-- | qolab/hardware/power_supply/keysight_e3612a.py | 7 |
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 |