Skip to content

Commit c40d3e3

Browse files
committed
corrections in test.py
1 parent 6e47bd3 commit c40d3e3

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

test1.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
FOLDER_PATH = r"C:\\Users\bar.kristal\Documents\GitHub\Python\Tests\functionality_test"
55
FOLDER_NAME = "Log"
66
TEST_NAME = "test1"
7+
8+
T32_APP_CMM_PATH = r"T:\\barkristal\DVF101\SPI\scripts\dvf101_app.cmm"
79
#################################################################
810

911
execfile(r"C:\Users\bar.kristal\Documents\GitHub\Python\init.py")
@@ -37,7 +39,7 @@
3739
########################
3840
## Excel:
3941

40-
# wb1, full_path = create_excel_file(Dir_Name, Excel_Log_Name")
42+
# wb1, full_path = create_excel_file(DIR_NAME, LOG_NAME_EXCEL)
4143
# ws1 = wb1.create_sheet("new sheet is the new shit!")
4244
# ws1.cell(row=1,column=1).value="write something"
4345
# wb1.save(full_path)
@@ -48,12 +50,14 @@
4850
########################
4951
## Power Supply:
5052

51-
# pwr_sply = QL355TPPwrSply('GPIB0::29::INSTR',RESOURCE_MANAGER)
53+
# pwr_sply = QL355TPPwrSply(POWER_SUPLLY_ADDRESS, RESOURCE_MANAGER)
5254
# print pwr_sply.name
53-
# pwr_sply.set_volt(1,5)
55+
# pwr_sply.channel_on('1')
56+
# pwr_sply.set_volt(1,4.3)
5457
# pwr_sply.read_current(1)
5558
# pwr_sply.sense(2,1)
56-
# pwr_sply.channel_on('1')
59+
#
60+
# pwr_sply.set_current_lim(1,1.32)
5761
# pwr_sply.close()
5862

5963
########################
@@ -95,10 +99,10 @@
9599
########################
96100
## Blue oven:
97101

98-
# termotron = Termotron3800(TERMOTRON_TCP_IP)
99-
# termotron.stop_chamber()
100-
# termotron.set_temp(23)
101-
# termotron.wait_for_temp(29)
102-
# print termotron.read_temp()
103-
# time.sleep(3)
104-
# termotron.stop_chamber()
102+
termotron = Termotron3800(TERMOTRON_TCP_IP)
103+
termotron.stop_chamber()
104+
termotron.set_temp(23)
105+
termotron.wait_for_temp(29)
106+
print termotron.read_temp()
107+
time.sleep(3)
108+
termotron.stop_chamber()

0 commit comments

Comments
 (0)