We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97dfce7 + 82ca4ab commit f30264bCopy full SHA for f30264b
labgrid/driver/power/siglent.py
@@ -3,15 +3,17 @@
3
import vxi11
4
5
6
-def power_set(host, index, value):
+def power_set(host, port, index, value):
7
+ assert port is None
8
index = int(index)
9
assert 1 <= index <= 2
10
value = "ON" if value else "OFF"
11
psu = vxi11.Instrument(host)
12
psu.write(f"OUTPUT CH{index},{value}")
13
14
-def power_get(host, index):
15
+def power_get(host, port, index):
16
17
18
19
0 commit comments