summaryrefslogtreecommitdiffstats
path: root/lab_control/oscilloscope.py
blob: 167879c7daaea0372f013f606f62ee4b48c29d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
""" Interface definition for oscilloscope devices. """

class Oscilloscope:
    """
    This interface specifies the common API for all
    supported oscilloscope devices.
    """
    def measureAmplitude(self, channel: int) -> float:
        """ Return amplitude measurement on specific channel. """

    def measurePeakToPeak(self, channel: int) -> float:
        """ Return peak-to-peak measurement on specific channel. """

    def measureRMS(self, channel: int) -> float:
        """ Return RMS measurement on specific channel. """

    def measureFrequency(self, channel: int) -> float:
        """ Return frequency measurement on specific channel. """