blob: 20f1b8c6d906adcdc42026b59ff831c3fbb1783b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
""" Interface definition for function generator devices. """
class FunctionGenerator:
"""
This interface specifies the common API for all
supported function generator devices.
"""
def setOn(self, channel: int) -> None:
""" Enable channel. """
def setOff(self, channel: int) -> None:
""" Disable channel. """
def setFrequency(self, channel: int, frequency: float) -> None:
""" Set channel output frequency. """
def setAmplitude(self, channel: int, amplitude: float) -> None:
""" Set channel output amplitude. """
def setFunction(self, channel: int, function: int) -> None:
""" Set channel output waveform. """
|