aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/multimeter/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/multimeter/__init__.py')
-rw-r--r--qolab/hardware/multimeter/__init__.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/qolab/hardware/multimeter/__init__.py b/qolab/hardware/multimeter/__init__.py
new file mode 100644
index 0000000..3c174f4
--- /dev/null
+++ b/qolab/hardware/multimeter/__init__.py
@@ -0,0 +1,30 @@
+from qolab.hardware.scpi import SCPIinstr
+from qolab.hardware.basic import BasicInstrument
+
+class Multimeter(BasicInstrument):
+ def __init__(self, *args, **kwds):
+ BasicInstrument.__init__(self, *args, **kwds)
+ self.config['Device type']='Multimeter'
+ self.config['FnamePrefix'] = 'Multimeter'
+ self.config['Device model'] = 'Generic Multimeter Without Hardware interface'
+ self.config['FnamePrefix'] = 'multimeter'
+ self.deviceProperties.update({})
+ # Minimal set of methods to be implemented.
+ pass
+
+class MultimeterSCPI(SCPIinstr, Multimeter):
+ """
+ Do not instantiate directly, use
+ rm = pyvisa.ResourceManager()
+ MultimeterSCPI(rm.open_resource('TCPIP::192.168.0.2::INSTR'))
+ """
+ pass
+ def __init__(self, resource, *args, **kwds):
+ SCPIinstr.__init__(self, resource)
+ Multimeter.__init__(self, *args, **kwds)
+ self.config['DeviceId'] = str.strip(self.idn)
+
+from .hp_34401 import HP_34401
+
+
+