aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-03-09 14:46:42 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-03-09 14:46:42 -0500
commitb5681cfc37bb559aea508ad1d524f6dcce2430df (patch)
treed40a4f2babbd0dbb9b1e56a724120de74cf01bda /qolab
parenta9289ece6923f4863d48c86299aac32e647caedc (diff)
downloadqolab-b5681cfc37bb559aea508ad1d524f6dcce2430df.tar.gz
qolab-b5681cfc37bb559aea508ad1d524f6dcce2430df.zip
rename State to IsOn
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/power_supply/keysight_e3612a.py4
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)) )