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

corrected errors in the measurement

parent e28858b3
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,6 @@ def sampling(VDS,VGS,VDS_comp,VGS_comp,sampling_mode,number_of_points,integratio ...@@ -83,7 +83,6 @@ def sampling(VDS,VGS,VDS_comp,VGS_comp,sampling_mode,number_of_points,integratio
#we need this function for the dataframe at the txt. #we need this function for the dataframe at the txt.
IDmm = device.return_data('IDmm') IDmm = device.return_data('IDmm')
IGmm = device.return_data('IGmm') IGmm = device.return_data('IGmm')
return time,IDmm,IGmm return time,IDmm,IGmm
def stress(VDS,VGS,duration,comp,device): def stress(VDS,VGS,duration,comp,device):
......
%% Cell type:code id:cbd9d4ba-be85-4165-98b6-fed0f580eec2 tags: %% Cell type:code id:cbd9d4ba-be85-4165-98b6-fed0f580eec2 tags:
``` python ``` python
%run stress_sampling_new.py %run stress_sampling_new.py
``` ```
%% Output %% Output
{'LINEAR': 'LIN', 'LOGARITHMIC 10P/DEC': 'L10', 'LOGARITHMIC 25P/DEC': 'L25', 'LOGARITHMIC 50P/DEC': 'L50', 'THINNED OUT': 'THIN'} %% Cell type:code id:5fa93ff5-77ee-4c13-8a46-33835cc73b42 tags:
LIN
%% Cell type:code id:fda02605-b4d6-4284-97ee-ebb913f68103 tags:
``` python ``` python
``` ```
......
...@@ -106,9 +106,9 @@ transient_grid[0,:2]=widgets.Label("VGS",layout =Layout(height='auto', width='au ...@@ -106,9 +106,9 @@ transient_grid[0,:2]=widgets.Label("VGS",layout =Layout(height='auto', width='au
transient_grid[0,2:]=widgets.Label('VDS',layout =Layout(height='auto', width='auto')) transient_grid[0,2:]=widgets.Label('VDS',layout =Layout(height='auto', width='auto'))
#second line #second line
transient_grid[1,0]=widgets.BoundedFloatText(value=10,min=-200,max=200,step=1,layout=Layout(height='auto', width='auto'),description="Constant(V)",style=style) transient_grid[1,0]=widgets.BoundedFloatText(value=2,min=-200,max=200,step=1,layout=Layout(height='auto', width='auto'),description="Constant(V)",style=style)
transient_grid[1,1]=widgets.BoundedFloatText(description="compliance(A)",layout=Layout(height='auto', width='auto'),style=style,min=-0.1,max=0.1,step=0.01,value=0.1) transient_grid[1,1]=widgets.BoundedFloatText(description="compliance(A)",layout=Layout(height='auto', width='auto'),style=style,min=-0.1,max=0.1,step=0.01,value=0.1)
transient_grid[1,2]=widgets.BoundedFloatText(value=10,min=-200,max=200,step=1,layout=Layout(height='auto', width='auto'),description="Constant(V)",style=style) transient_grid[1,2]=widgets.BoundedFloatText(value=1,min=-200,max=200,step=1,layout=Layout(height='auto', width='auto'),description="Constant(V)",style=style)
transient_grid[1,3]=widgets.BoundedFloatText(description="compliance(A)",layout=Layout(height='auto', width='auto'),style=style,min=-0.1,max=0.1,step=0.01,value=0.1) transient_grid[1,3]=widgets.BoundedFloatText(description="compliance(A)",layout=Layout(height='auto', width='auto'),style=style,min=-0.1,max=0.1,step=0.01,value=0.1)
print() print()
...@@ -191,11 +191,11 @@ sampling_mode = sampling_grid[3,2] ...@@ -191,11 +191,11 @@ sampling_mode = sampling_grid[3,2]
device = module.HP4155a('GPIB0::17::INSTR') device = module.HP4155a('GPIB0::17::INSTR')
setup(device) setup(device)
total_stress_time = 0
def on_button_clicked(b): def on_button_clicked(b):
with output: with output:
clear_output() total_stress_time = 0
#clear_output()
#here write header function #here write header function
#main loop #main loop
for i in range(7): for i in range(7):
...@@ -207,30 +207,31 @@ def on_button_clicked(b): ...@@ -207,30 +207,31 @@ def on_button_clicked(b):
#stress sampling and plot #stress sampling and plot
stress(Vds_str[i].value,Vgs_str[i].value,t_str[i].value,comp_str.value,device) stress(Vds_str[i].value,Vgs_str[i].value,t_str[i].value,comp_str.value,device)
t,IDmm,IGmm = sampling(Vds_samp.value,Vgs_samp.value,Vds_samp_comp.value,Vgs_samp_comp.value,options_mode_dict.get(sampling_mode.value),number_of_points.value,integration_time.value,initial_interval.value,hold_time.value,filter_status.value,device) t,IDmm,IGmm = sampling(Vds_samp.value,Vgs_samp.value,Vds_samp_comp.value,Vgs_samp_comp.value,options_mode_dict.get(sampling_mode.value),number_of_samples.value,integration_time.value,initial_interval.value,hold_time.value,int(filter_status.value),device)
clear_output()
plot_sampling(t,IDmm,IGmm) plot_sampling(t,IDmm,IGmm)
#create the data frame(additional lists required) sampling #create the data frame(additional lists required) sampling
Vgs_samp_i = [Vgs_samp[i] for j in range(len(t))] Vgs_samp_i = [Vgs_samp.value for j in range(len(t))]
Vds_samp_i = [Vds_samp[i] for j in range(len(t))] Vds_samp_i = [Vds_samp.value for j in range(len(t))]
#increase total stress time #increase total stress time
total_stress_time = total_stress_time + t_str[i] total_stress_time = total_stress_time + t_str[i].value
total_stress_time_i = [total_stress_time for i in range(len(t))] total_stress_time_i = [total_stress_time for i in range(len(t))]
#stress lists #stress lists
vgs_str_i=[Vgs_str[i] for j in range(len(t))] Vgs_str_i=[Vgs_str[i].value for j in range(len(t))]
vds_str_i = [Vds_str[i] for j in range(len(t))] Vds_str_i = [Vds_str[i].value for j in range(len(t))]
#create data frame #create data frame
header = ["t(s)","VGS(V)","VDS(V)","IGmm(mA/mm)","IDmm(mA/mm)","Total stress time(s)","Stress VGS(V), Stress VDS(V)"] header = ["t(s)","VGS(V)","VDS(V)","IGmm(mA/mm)","IDmm(mA/mm)","Total stress time(s)","Stress VGS(V)", "Stress VDS(V)"]
values = [t,vgs_samp_i,vds_samp_i,IGmm,IDmm,total_stress_time_i,vgs_str_i,vds_str_i] values = [t,Vgs_samp_i,Vds_samp_i,IGmm,IDmm,total_stress_time_i,Vgs_str_i,Vds_str_i]
df = pd.Dataframe(dict(zip(header,values))) df = pd.DataFrame(dict(zip(header,values)))
#test #test
print(df.to_string()) print(df.to_string())
#link functions with buttons
button.on_click(on_button_clicked)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment