-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathE3631A.py
More file actions
28 lines (19 loc) · 730 Bytes
/
E3631A.py
File metadata and controls
28 lines (19 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import visa
rm = visa.ResourceManager()
res = rm.list_resources()
print("Find following resources: ")
print(res)
print("Opening " + res[-1])
inst = rm.open_resource(res[-1])
# When sending command to E3631A, The "Rmt" and "Adrs" icon are on on the display
# panel. All input from panel are inactived, util you press "Store/Local" button.
inst.query("*IDN?")
inst.write("INST P6V") # Select +6V output
inst.write("VOLT 2.0") # Set output voltage to 3.0 V
inst.write("CURR 1.0") # Set output current to 1.0 A
# The APPLy command provides the most straightforward method to program the
# power supply over the remote interface.
# inst.write("APPL P6V, 3.0, 1.0")
# power on/off
inst.write("OUTP OFF")
inst.write("OUTP ON")