-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdmm_test.py
More file actions
53 lines (35 loc) · 1.13 KB
/
dmm_test.py
File metadata and controls
53 lines (35 loc) · 1.13 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
################################################################
## Test ID:
FOLDER_PATH = r"C:\GitHub\Python\functionality_test"
FOLDER_NAME = "Log"
TEST_NAME = "dmm_test"
#################################################################
execfile(r"C:\GitHub\Python\init.py")
########################
## Power Supply:
# pwr_sply = QL355TPPwrSply(POWER_SUPLLY_ADDRESS, RESOURCE_MANAGER) #init power supply
# DMM = Agillent34401A(DMM_ADDRESS, RESOURCE_MANAGER) #init DMM
# print pwr_sply.name
# pwr_sply.channel_on('1')
# volt_list=[0.5, 1, 2, 3.5]
# for voltage in volt_list:
# pwr_sply.set_volt(1,voltage)
# time.sleep(0.5)
# DMM.meas("DCV")
# print pwr_sply.read_current(1)
# print voltage
# print pwr_sply.name
# pwr_sply.channel_on('1')
# volt_list=[0.5, 1, 2, 1.5]
# for voltage in volt_list:
# pwr_sply.set_volt(1,voltage)
# time.sleep(0.1)
# print pwr_sply.read_current(1)
# pwr_sply.sense(1,1)
# pwr_sply.set_current_lim(1,1.32)
# pwr_sply.close()
##HEWLETT PACKARD 34401A
# print DMM.name
# DMM.meas("DCV")
# a= dmm_multimeter.meas("volt_min_peak")
# dmm_multimeter.meas("phase")