aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/daq/_basic.py
blob: 0eb0ca8ef294245556b549f825c9ce055c18ba5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Basic DAQ to be included into hardware aware classes."""

from qolab.hardware.basic import BasicInstrument


class DAQ(BasicInstrument):
    # Minimal set of methods to be implemented by a RFGenerator
    def __init__(self, *args, **kwds):
        BasicInstrument.__init__(self, *args, **kwds)
        self.config["Device type"] = "DAQ"
        self.config["Device model"] = "Generic DAQ Without Hardware interface"
        self.config["FnamePrefix"] = "daq"
        self.deviceProperties.update({"AnalogInputsNum", "AnalogOutputsNum"})

        # this is device dependent
        self.AnalogInputsNum = 0
        self.AnalogOutputsNum = 0