Skip to content

Commit 5b891a7

Browse files
authoredNov 11, 2017
Update README.md
Added voltage setting and output enable examples
1 parent 2281a27 commit 5b891a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎README.md

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ Example Usage:
1212
dps = pydps.dps_psu('COM3', 1) # port name, slave address
1313

1414
print(dps.getModel()) #Should show 5005 for dps5005
15+
16+
dps.setKeyLock(True) #Lock keys
17+
18+
dps.setVoltage(12) #Set Voltage to 12V
19+
dps.setOutput(True) #Enable Output
20+
1521
print(dps.getVoltage()) #returns the measured output voltage
1622
print(dps.getCurrent()) #Prints measured output current in A
1723

@@ -23,3 +29,6 @@ Example Usage:
2329

2430
print(dat["power"]) #Prints measured power in W
2531
print(dat["i-out"]) #Prints measured output current in A
32+
33+
dps.setKeyLock(False) #Unlock keys
34+

0 commit comments

Comments
 (0)
Please sign in to comment.