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

Debug Pulse version 4.0 ready

parent dcb37452
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ def constant_meas(dictionary,device): ...@@ -172,7 +172,7 @@ def constant_meas(dictionary,device):
smu_help.update( smu_help.update(
iname = 'I3', iname = 'I3',
vname = 'V3', vname = 'V3',
mode = 'V', mode = 'VPULSE',
func = 'VAR1' func = 'VAR1'
) )
smu_ground.update( smu_ground.update(
......
...@@ -6,10 +6,6 @@ from keyboard import add_hotkey,remove_hotkey ...@@ -6,10 +6,6 @@ from keyboard import add_hotkey,remove_hotkey
# pulsed libraries # pulsed libraries
from help_pulse import * from help_pulse import *
import warnings
warnings.filterwarnings("ignore")
#create temporary file to store the results localy #create temporary file to store the results localy
temp_file= os.path.join(os.getcwd(),'tempfile.txt') temp_file= os.path.join(os.getcwd(),'tempfile.txt')
...@@ -397,7 +393,7 @@ def on_full_button_clicked(b): ...@@ -397,7 +393,7 @@ def on_full_button_clicked(b):
add_hotkey("esc",break_loop) add_hotkey("esc",break_loop)
#execute number of measurements #execute number of measurements
for i in range(number.value):#here it is easier to implement the sampling checks for i in range(number.value):#here it is easier to implement the sampling checks
clear_output() clear_output(wait = True)
if i>0: if i>0:
display(fig) display(fig)
if sampling.value == True: #before set(100mv) if sampling.value == True: #before set(100mv)
...@@ -415,6 +411,7 @@ def on_full_button_clicked(b): ...@@ -415,6 +411,7 @@ def on_full_button_clicked(b):
V34,I34 = sweep(0,Vreset.value,step.value,CC_vreset.value,integration_time.value,device) #reset V34,I34 = sweep(0,Vreset.value,step.value,CC_vreset.value,integration_time.value,device) #reset
plot_sweep(V34,I34,f"RESET Iteration {i+1}") plot_sweep(V34,I34,f"RESET Iteration {i+1}")
#after reset #after reset
if sampling.value == True:#-0.1V if sampling.value == True:#-0.1V
R_mean_reset = sampling_check(-0.01,device) R_mean_reset = sampling_check(-0.01,device)
...@@ -455,10 +452,16 @@ def on_full_button_clicked(b): ...@@ -455,10 +452,16 @@ def on_full_button_clicked(b):
#check for loop termination #check for loop termination
if stop == True: if stop == True:
clear_output(wait= True)
time.sleep(2)
display(fig)
information_box("Endurance stopped after esc!") information_box("Endurance stopped after esc!")
f.write("endurance stopped!\n\n") f.write("endurance stopped!\n\n")
break break
else: else:
clear_output(wait = True)
time.sleep(2)
display(fig)
information_box("Endurance completed!") information_box("Endurance completed!")
f.write("endurance completed!\n\n") f.write("endurance completed!\n\n")
...@@ -539,11 +542,8 @@ def on_sweep_button_clicked(b): ...@@ -539,11 +542,8 @@ def on_sweep_button_clicked(b):
'field':field, 'field':field,
'dut':DUT 'dut':DUT
} }
if first == True:
change_state(information)
first = False
times,values = sweep_meas(sweep_dict) times,values = sweep_meas(sweep_dict,device)
plot_sweep_pulse(values) plot_sweep_pulse(values)
save_sweep(folder,sample_dict,values,times,sweep_dict) save_sweep(folder,sample_dict,values,times,sweep_dict)
change_state(all_widgets) change_state(all_widgets)
...@@ -563,7 +563,7 @@ def on_constant_button_clicked(b): ...@@ -563,7 +563,7 @@ def on_constant_button_clicked(b):
'dut':DUT 'dut':DUT
} }
times,values = constant_meas(cons_dict) times,values = constant_meas(cons_dict,device)
plot_constant_pulse(values) plot_constant_pulse(values)
save_constant(folder,sample_dict,values,times,cons_dict) save_constant(folder,sample_dict,values,times,cons_dict)
change_state(all_widgets) change_state(all_widgets)
......
%% Cell type:code id:7611a98c-c1cf-46cb-bdd9-fd3dc6a1f53c tags: %% Cell type:code id:b913930d-b120-4e59-8a42-d9eecb526a61 tags:
``` python ``` python
%run memristor.py %run memristor.py
``` ```
%% Output %% Output
%% Cell type:code id:38e8523c-17f0-48b4-9501-dd2278ffe8d1 tags: %% Cell type:code id:1047e606-d5cb-420b-892f-766226339854 tags:
``` python
print(device.error())
```
%% Output
(0, '"No error"\n')
%% Cell type:code id:01f338ba-d3a5-47ec-993e-53866010308b tags:
``` python ``` python
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment