Skip to content
Snippets Groups Projects
Commit 19fbe735 authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

everything works!

parent a7558094
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,16 @@ import os
#these are the quick sampling checks
def test_contacts():
device = module.HP4155a('GPIB0::17::INSTR')
device.reset()
smu = [1,2,3,4]
for i in range(1,4): # iterate through smus 1-4
for j in range(4,i,-1):
"""
We have the following pairs in order
1-4,1-3,1-2,2-4,2-3,3-4
"""
device.reset()
device.measurement_mode('SAMP')
device.sampling_mode('LIN')
......@@ -51,14 +57,6 @@ def test_contacts():
device.disable_vmu(1)
device.disable_vmu(2)
smu = [1,2,3,4]
for i in range(1,4): # iterate through smus 1-4
for j in range(4,i,-1):
"""
We have the following pairs in order
1-4,1-3,1-2,2-4,2-3,3-4
"""
device.smu_mode_meas(i,'V') #one smu is measuring
device.smu_mode_meas(j,'COMM') #one smu is ground
......@@ -67,7 +65,7 @@ def test_contacts():
device.constant_smu_comp(i,'MAX')
#smus to remove
smu_didable = smu.copy()
smu_disable = smu.copy()
smu_disable.remove(i)
smu_disable.remove(j)
......@@ -81,13 +79,11 @@ def test_contacts():
time.sleep(2)
device.autoscaling()
try:
V = device.return_data(f'V{i}')
I = device.return_data(f'I{i}')
R = V[0]/I[0]
print(f"R{ij}:{R} Ohm")
except:
print(f"Contact check of smu{i} and smu{j} failed!")
print(f"R{i}{j}:{R} Ohm")
#print(f"Contact check of smu{i} and smu{j} failed!")
......
......@@ -200,12 +200,15 @@ add_widgets_to_list(sweep_dict,all_widgets)
def on_contact_check_clicked(b):
with output:
clear_output(wait = True)
change_state(all_widgets)
change_state(buttons)
change_state(parameters)
test_contacts()
information_box("Contact Check Completed")
change_state(all_widgets)
change_state(buttons)
change_state(parameters)
......@@ -575,6 +578,7 @@ def on_retention_button_clicked(b):
def on_sweep_button_clicked(b):
with output:
global first
clear_output(wait = True)
change_state(all_widgets)
change_state(buttons)
......@@ -582,17 +586,17 @@ def on_sweep_button_clicked(b):
check_pulse(sweep_dict)
sample_dict= {
'series':sample_series.value,
'field':field.value,
'DUT':DUT.value
'series':sample_series,
'field':field,
'dut':DUT
}
if first == True:
change_state(information)
first = False
times,values = sweep_meas(sweep_dict)
plot_sweep(values)
save_sweep_pulse(folder,sample_dict,values,times,sweep_dict)
plot_sweep_pulse(values)
save_sweep(folder,sample_dict,values,times,sweep_dict)
change_state(all_widgets)
change_state(buttons)
change_state(parameters)
......@@ -600,6 +604,7 @@ def on_sweep_button_clicked(b):
def on_constant_button_clicked(b):
with output:
global first
clear_output(wait = True)
change_state(all_widgets)
change_state(buttons)
......@@ -607,9 +612,9 @@ def on_constant_button_clicked(b):
check_pulse(sweep_dict)
sample_dict= {
'series':sample_series.value,
'field':field.value,
'DUT':DUT.value
'series':sample_series,
'field':field,
'dut':DUT
}
if first == True:
change_state(information)
......
......@@ -9,7 +9,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1274bbf70f46478dafe850c83698232b",
"model_id": "8e42e33b13b94bc28d51ac3879635a83",
"version_major": 2,
"version_minor": 0
},
......@@ -30,7 +30,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "163116ce6cc846e9b8d93a4b5ea763cc",
"model_id": "b645be04ed3040d5bfa6ab024e5dd698",
"version_major": 2,
"version_minor": 0
},
......@@ -51,7 +51,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "cd73ee3e645b4b28b5716787cd67fd42",
"model_id": "382a0395fff84d78b2e3ef2c67f2de6a",
"version_major": 2,
"version_minor": 0
},
......@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "692f0dc067bd4ec5a7b53fd6550807fd",
"model_id": "1f0a16c6eaf44dce8926c29cff203ec7",
"version_major": 2,
"version_minor": 0
},
......@@ -106,7 +106,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.11.4"
}
},
"nbformat": 4,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment