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__.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/qolab/hardware/rf_generator/__init__.py b/qolab/hardware/rf_generator/__init__.py
new file mode 100644
index 0000000..a82c1a0
--- /dev/null
+++ b/qolab/hardware/rf_generator/__init__.py
@@ -0,0 +1,20 @@
+from qolab.hardware.scpi import SCPIinstr
+
+class RFGenerator:
+ # Minimal set of methods to be implemented.
+ pass
+
+class RFGeneratorSCPI(SCPIinstr, RFGenerator):
+ """
+ Do not instantiate directly, use
+ rm = pyvisa.ResourceManager()
+ ScopeSCPI(rm.open_resource('TCPIP::192.168.0.2::INSTR'))
+ """
+ pass
+ def __init__(self, resource):
+ SCPIinstr.__init__(self, resource)
+ RFGenerator.__init__(self)
+
+from .agilent_e8257d import AgilentE8257D
+
+