summaryrefslogtreecommitdiffstats
path: root/lab_control/function_generator.py
blob: b7b52664ac8fd3e8956ca282064286e1e7406e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class FunctionGenerator:
    FUNCTION_SINE     = 0
    FUNCTION_SQUARE   = 1
    FUNCTION_SAWTOOTH = 2

    def __init__(self):
        raise Exception("This class should not be instantiated directly, please extend it instead")

    def setOn(self, channel: int) -> None:
        pass

    def setOff(self, channel: int) -> None:
        pass

    def setFrequency(self, channel: int, frequency: float) -> None:
        pass

    def setAmplitude(self, channel: int, amplitude: float) -> None:
        pass

    def setFunction(self, channel: int, function: int) -> None:
        pass