diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-03-09 14:46:42 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-03-09 14:46:42 -0500 |
commit | b5681cfc37bb559aea508ad1d524f6dcce2430df (patch) | |
tree | d40a4f2babbd0dbb9b1e56a724120de74cf01bda /qolab/hardware/power_supply | |
parent | a9289ece6923f4863d48c86299aac32e647caedc (diff) | |
download | qolab-b5681cfc37bb559aea508ad1d524f6dcce2430df.tar.gz qolab-b5681cfc37bb559aea508ad1d524f6dcce2430df.zip |
rename State to IsOn
Diffstat (limited to 'qolab/hardware/power_supply')
-rw-r--r-- | qolab/hardware/power_supply/keysight_e3612a.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py index 82b3ff4..d95f02a 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 = {'State', 'Vout', 'Iout', } + self.channelProperties = {'IsOn', 'Vout', 'Iout', } def setChanOn(self, chNum): self.write(f'OUTP ON,(@{chNum})') @@ -20,7 +20,7 @@ class KeysightE3612A(PowerSupplySCPI): self.write(f'OUTP OFF,(@{chNum})') @BasicInstrument.tsdb_append - def getChanState(self, chNum): + def getChanIsOn(self, chNum): qstr = f'OUTP? (@{chNum})' rstr = self.query(qstr) return( bool(float(rstr)) ) |