aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/rf_generator/__init__.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-26 19:59:55 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-26 19:59:55 -0500
commit5449c6ae1fea9f925798f3a25cba12bd13946291 (patch)
tree8862f43d1b86b2ad3098a1f9fee08507300dad0c /qolab/hardware/rf_generator/__init__.py
parent07243e32a4737bb00fea4affec16da6d522fa76c (diff)
downloadpyExpControl-5449c6ae1fea9f925798f3a25cba12bd13946291.tar.gz
pyExpControl-5449c6ae1fea9f925798f3a25cba12bd13946291.zip
rf generator log to tsdb
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