aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/multimeter
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2023-06-20 10:15:20 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2023-06-20 10:15:20 -0400
commit6023425f8db0df9be996e418c53d2634f36054b9 (patch)
treec69bd082be1fd10ba3e6ee16eb97c5cab2f7c074 /qolab/hardware/multimeter
parent39339f05afd1fa59262413f9a1cedd57a07eb94a (diff)
downloadqolab-6023425f8db0df9be996e418c53d2634f36054b9.tar.gz
qolab-6023425f8db0df9be996e418c53d2634f36054b9.zip
good enough draft of hp_34401 functions
Diffstat (limited to 'qolab/hardware/multimeter')
-rw-r--r--qolab/hardware/multimeter/hp_34401.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/qolab/hardware/multimeter/hp_34401.py b/qolab/hardware/multimeter/hp_34401.py
index 326c162..206cbbe 100644
--- a/qolab/hardware/multimeter/hp_34401.py
+++ b/qolab/hardware/multimeter/hp_34401.py
@@ -80,12 +80,12 @@ class HP_34401(MultimeterSCPI):
return self.getReadingWithSettingFunction('"CURRent:DC"', '"CURR"')
def getAac(self):
return self.getReadingWithSettingFunction('"CURRent:AC"', '"CURR:AC"')
-
-
- # Vdc = SCPI_PROPERTY(scpi_prfx='SENSe:FUNCtion "VOLTage:DC"; :SYSTem:REMote\n read', ptype=float, doc='Report DC Voltage', no_setter=True)
- # Vac = SCPI_PROPERTY(scpi_prfx='SENSe:FUNCtion "VOLTage:AC"; :SYSTem:REMote\n read', ptype=float, doc='Report AC Voltage', no_setter=True)
- # Adc = SCPI_PROPERTY(scpi_prfx='SENSe:FUNCtion "CURRent:DC"; :SYSTem:REMote\n read', ptype=float, doc='Report DC Current', no_setter=True)
- # Aac = SCPI_PROPERTY(scpi_prfx='SENSe:FUNCtion "CURRent:AC"; :SYSTem:REMote\n read', ptype=float, doc='Report AC Current', no_setter=True)
+ def getResistance(self):
+ return self.getReadingWithSettingFunction('"RESistance"', '"RES"')
+ def getDiode(self):
+ return self.getReadingWithSettingFunction('"DIODe"', '"DIOD"')
+ def getFreq(self):
+ return self.getReadingWithSettingFunction('"FREQuency"', '"FREQ"')
if __name__ == '__main__':