aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/rf_generator/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/rf_generator/__init__.py')
-rw-r--r--qolab/hardware/rf_generator/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qolab/hardware/rf_generator/__init__.py b/qolab/hardware/rf_generator/__init__.py
index 726dbb0..3064c54 100644
--- a/qolab/hardware/rf_generator/__init__.py
+++ b/qolab/hardware/rf_generator/__init__.py
@@ -3,8 +3,8 @@ from qolab.hardware.basic import BasicInstrument
class RFGenerator(BasicInstrument):
# Minimal set of methods to be implemented by a RFGenerator
- def __init__(self):
- BasicInstrument.__init__(self)
+ def __init__(self, *args, **kwds):
+ BasicInstrument.__init__(self, *args, **kwds)
self.config['Device type']='RFGenerator'
self.config['Device model'] = 'Generic RF generator Without Hardware interface'
self.config['FnamePrefix'] = 'rfgen'
@@ -16,9 +16,9 @@ class RFGeneratorSCPI(SCPIinstr, RFGenerator):
rm = pyvisa.ResourceManager()
RFGeneratorSCPI(rm.open_resource('TCPIP::192.168.0.2::INSTR'))
"""
- def __init__(self, resource):
+ def __init__(self, resource, *args, **kwds):
SCPIinstr.__init__(self, resource)
- RFGenerator.__init__(self)
+ RFGenerator.__init__(self, *args, **kwds)
self.config['DeviceId'] = str.strip(self.idn)
from .agilent_e8257d import AgilentE8257D