From 8a0d3872ecd841b92f5f05f5f19f99166ddcdf34 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 7 Apr 2022 17:16:38 -0400 Subject: added new functions to access dI and dV --- qolab/hardware/power_supply/keysight_e3612a.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py index fc13bc0..168e7b3 100644 --- a/qolab/hardware/power_supply/keysight_e3612a.py +++ b/qolab/hardware/power_supply/keysight_e3612a.py @@ -10,7 +10,29 @@ class KeysightE3612A(PowerSupplySCPI): self.config['Device model'] = 'Keysight E3612A' self.numberOfChannels = 3 self.deviceProperties = {'OpMode', }; - self.channelProperties = {'IsOn', 'Regulation', 'Vout', 'Vlimit', 'Iout', 'Ilimit', } + self.channelProperties = {'IsOn', 'Regulation', 'Vout', 'Vlimit', 'Iout', 'Ilimit', 'dV', 'dI', } + + def getChandV(self, chNum): + """ + Voltage precision per channel. + Obtained from data sheet. + Alternative estimate is by assuming 14 bit precision from the maximum reading. + """ + if chNum == 1: + return 0.24e-3 + return 1.5e-3 + + def getChandI(self, chNum): + """ + Current precision per channel. + Obtained from data sheet. + Alternative estimate is by assuming 14 bit precision from the maximum reading. + """ + if chNum == 1: + return 0.2e-3 + return 0.160e-3 # see specification for high current > 20mA + + def getOpMode(self): """ -- cgit v1.2.3