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

Double Gate Devices part 7

parent 6c3d7167
No related branches found
No related tags found
No related merge requests found
...@@ -8,14 +8,12 @@ from help import * ...@@ -8,14 +8,12 @@ from help import *
from measurements import * from measurements import *
import configparser import configparser
# Create the grids # Create the grids
#create the information grid #create the information grid
style = {'description_width': 'initial'} style = {'description_width': 'initial'}
sample = information_box_new() sample = information_box_new()
###end of sampling information#######################################
# move checkboxes outside of the tabs # move checkboxes outside of the tabs
transfer_check,integration_transfer,transfer_gates = header('Transfer Curve',"MEDium") transfer_check,integration_transfer,transfer_gates = header('Transfer Curve',"MEDium")
output_check,integration_output,output_gates = header('Output Curve',"SHORt") output_check,integration_output,output_gates = header('Output Curve',"SHORt")
...@@ -25,7 +23,6 @@ checkboxes = widgets.HBox([transfer_check,output_check,gatediode_check]) ...@@ -25,7 +23,6 @@ checkboxes = widgets.HBox([transfer_check,output_check,gatediode_check])
display(checkboxes) display(checkboxes)
print() print()
#transfer #transfer
Vds_transfer_widgets,Vds_transfer = secondary('VDS',0.05,0.95,1,1e-2) Vds_transfer_widgets,Vds_transfer = secondary('VDS',0.05,0.95,1,1e-2)
Vtg_transfer_widgets,Vtg_transfer = primary('VTG',-5,0.01,5,1e-3) Vtg_transfer_widgets,Vtg_transfer = primary('VTG',-5,0.01,5,1e-3)
...@@ -60,8 +57,6 @@ tab.titles = titles ...@@ -60,8 +57,6 @@ tab.titles = titles
display(tab) display(tab)
print() print()
# the button # the button
button = widgets.Button(description ='Start Measurement') button = widgets.Button(description ='Start Measurement')
output = widgets.Output() output = widgets.Output()
...@@ -94,6 +89,7 @@ def on_start_clicked(b): ...@@ -94,6 +89,7 @@ def on_start_clicked(b):
Setup(device) #setup the device Setup(device) #setup the device
if transfer_check.value == True: if transfer_check.value == True:
mode = mode(transfer_gates.value)
#check the values #check the values
vtg_ok = check_values(Vtg_transfer,'primary') vtg_ok = check_values(Vtg_transfer,'primary')
vds_ok =check_values(Vds_transfer,'secondary') vds_ok =check_values(Vds_transfer,'secondary')
...@@ -163,6 +159,7 @@ def on_start_clicked(b): ...@@ -163,6 +159,7 @@ def on_start_clicked(b):
df.to_csv(file,sep=" ",mode='a') df.to_csv(file,sep=" ",mode='a')
if output_check.value == True: if output_check.value == True:
mode = mode(output_gates.value)
vds_ok = check_values(Vds_output,'primary') vds_ok = check_values(Vds_output,'primary')
vtg_ok = check_values(Vtg_output,'secondary') vtg_ok = check_values(Vtg_output,'secondary')
vbg_ok = check_values(Vbg_output,'secondary') vbg_ok = check_values(Vbg_output,'secondary')
......
...@@ -297,5 +297,13 @@ def calculate_line(VTG,VBG): ...@@ -297,5 +297,13 @@ def calculate_line(VTG,VBG):
offset = VBG['start'].value-ratio*VTG['start'].value offset = VBG['start'].value-ratio*VTG['start'].value
return ratio,offset return ratio,offset
#return active units
def mode(tuple):
if len(tuple)==2:
mode = 3 #both gates are sweeped
elif len(tuple)==1 and tuple[0]=="VBG":
mode = 2
else:
mode = 1
return mode
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment