aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/rf_generator/__init__.py
blob: 15a366e5a47e62880f07e5b06c10fa272fd3b377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()
    RFGeneratorSCPI(rm.open_resource('TCPIP::192.168.0.2::INSTR'))
    """
    def __init__(self, resource):
        SCPIinstr.__init__(self, resource)
        RFGenerator.__init__(self)

from .agilent_e8257d import AgilentE8257D