Skip to content

Commit f30264b

Browse files
authored
Merge pull request #960 from Bastian-Krause/bst/siglent
driver/power/siglent: use backend function signatures expected by NetworkPowerDriver
2 parents 97dfce7 + 82ca4ab commit f30264b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

labgrid/driver/power/siglent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
import vxi11
44

55

6-
def power_set(host, index, value):
6+
def power_set(host, port, index, value):
7+
assert port is None
78
index = int(index)
89
assert 1 <= index <= 2
910
value = "ON" if value else "OFF"
1011
psu = vxi11.Instrument(host)
1112
psu.write(f"OUTPUT CH{index},{value}")
1213

1314

14-
def power_get(host, index):
15+
def power_get(host, port, index):
16+
assert port is None
1517
index = int(index)
1618
assert 1 <= index <= 2
1719
psu = vxi11.Instrument(host)

0 commit comments

Comments
 (0)