blob: 18a933c67b1981636203b7c354ccc0140b4fa2d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from pathlib import Path
from lab_control.function_generator import FunctionGenerator
from lab_control.oscilloscope import Oscilloscope
def getLinearRange(first: float, last: float, steps: int) -> list[float]:
assert steps > 1, "Linear range requires at least two steps"
diff = last - first
stepSize = diff / (steps - 1)
return [first + i * stepSize for i in range(0, steps)]
class Measurement:
def measure(self, osc: Oscilloscope, fg: FunctionGenerator) -> None:
pass
def dumpToCSV(self, path: Path) -> None:
pass
|