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

interface part 3

parent 7cae822c
No related branches found
No related tags found
No related merge requests found
[ALL VALUES ARE IN SI-UNITS!]
[IT IS RECOMMENDED TO CHANGE THE INI FILE FROM THE INTERFACE AND DO NOT CHANGE ANY VALUES MANUALLY]
[Transfer]
integration = MEDium
[Vgs_transfer]
start = 2.0
step = -0.05
stop = -8.0
comp = 0.01
hyst = SINGle
pcomp = 0.0
[Vds_transfer]
start = 0.1
step = 0.45
stop = 1.0
comp = 0.1
pcomp = 0.0
[Output]
integration = MEDium
[Vgs_output]
start = 2.0
step = -1.0
stop = -8.0
comp = 0.01
pcomp = 0.0
[Vds_output]
start = 0.0
step = 0.1
stop = 15.0
comp = 0.1
hyst = SINGle
pcomp = 0.0
[Gatediode]
integration = MEDium
[Vgs_gatediode]
start = -8.0
step = 0.05
stop = 2.0
comp = 0.02
hyst = SINGle
pcomp = 0.0
[ALL VALUES ARE IN SI-UNITS!]
[IT IS RECOMMENDED TO CHANGE THE INI FILE FROM THE INTERFACE AND DO NOT CHANGE ANY VALUES MANUALLY]
[Transfer]
integration = MEDium
[Vgs_transfer]
start = 1
step = -2
stop = -3
comp = 4
hyst = SINGle
pcomp = 1
[Vds_transfer]
start = 0
step = 0.4
stop = 1.1
comp = 0
pcomp = 0.1
[Output]
integration = MEDium
[Vgs_output]
start = 3
step = -4
stop = -5
comp = 0.1
pcomp = 0.01
[Vds_output]
start = 0.01
step = 0.11
stop = 15.01
comp = 0.11
hyst = SINGle
pcomp = 0.01
[Gatediode]
integration = MEDium
[Vgs_gatediode]
start = -8.01
step = 0.051
stop = 2.01
comp = 0.021
hyst = SINGle
pcomp = 0.01
%% Cell type:code id:6defdb49-06c2-469d-beb5-bc2e147e3f79 tags: %% Cell type:code id:6defdb49-06c2-469d-beb5-bc2e147e3f79 tags:
``` python ``` python
%run ADU_version_2.py %run ADU_version_2.py
``` ```
%% Output %% Output
%% Cell type:code id:76715453-39d3-45e0-b4cf-c299174bf261 tags: %% Cell type:code id:3c7c9ce4-952a-4823-beb0-b0559dd8a79f tags:
``` python
print(device.error())
```
%% Output
+0,"No error"
%% Cell type:code id:18663ca1-81ad-40b9-b9d2-95db1b1354d3 tags:
``` python ``` python
``` ```
......
...@@ -6,6 +6,7 @@ import sys ...@@ -6,6 +6,7 @@ import sys
width = "50%" width = "50%"
height = 'auto' height = 'auto'
style = {'description_width': 'initial'} style = {'description_width': 'initial'}
floatbox_width = "80%"
def header(name): def header(name):
header_grid = GridspecLayout(1,3) header_grid = GridspecLayout(1,3)
style = {'description_width': 'initial'} style = {'description_width': 'initial'}
...@@ -30,9 +31,9 @@ def primary(name,start,step,stop,comp): ...@@ -30,9 +31,9 @@ def primary(name,start,step,stop,comp):
primary_grid[0,2]=widgets.Label("Stop(V)",layout=Layout(height='auto', width='auto')) primary_grid[0,2]=widgets.Label("Stop(V)",layout=Layout(height='auto', width='auto'))
#second line #second line
primary_grid[1,0]=widgets.BoundedFloatText(value=start,min=-100,max=100,step=1,layout=Layout(height='auto', width='auto')) primary_grid[1,0]=widgets.BoundedFloatText(value=start,min=-100,max=100,step=1,layout=Layout(height='auto', width=floatbox_width))
primary_grid[1,1]=widgets.BoundedFloatText(value=step,min=-200,max=200,step=1,layout=Layout(height='auto', width='auto')) primary_grid[1,1]=widgets.BoundedFloatText(value=step,min=-200,max=200,step=1,layout=Layout(height='auto', width=floatbox_width))
primary_grid[1,2]=widgets.BoundedFloatText(value=stop,min=-100,max=100,step=1,layout=Layout(height='auto', width='auto')) primary_grid[1,2]=widgets.BoundedFloatText(value=stop,min=-100,max=100,step=1,layout=Layout(height='auto', width=floatbox_width))
#third line #third line
primary_grid[2,0]=widgets.Label("Compliance(A)",layout=Layout(height='auto', width='auto')) primary_grid[2,0]=widgets.Label("Compliance(A)",layout=Layout(height='auto', width='auto'))
...@@ -40,9 +41,9 @@ def primary(name,start,step,stop,comp): ...@@ -40,9 +41,9 @@ def primary(name,start,step,stop,comp):
primary_grid[2,2] =widgets.Label("Hysterisis",layout=Layout(height='auto', width='auto'))#mind the gap primary_grid[2,2] =widgets.Label("Hysterisis",layout=Layout(height='auto', width='auto'))#mind the gap
#fourth line #fourth line
primary_grid[3,0]=widgets.BoundedFloatText(value=comp,min=-0.1,max=0.1,step=0.01,layout=Layout(height='auto', width='auto')) primary_grid[3,0]=widgets.BoundedFloatText(value=comp,min=-0.1,max=0.1,step=0.01,layout=Layout(height='auto', width=floatbox_width))
primary_grid[3,1]=widgets.BoundedFloatText(value=0,min=0,max=2,step=0.1,layout=Layout(height='auto', width='auto'))#mind the gap primary_grid[3,1]=widgets.BoundedFloatText(value=0,min=0,max=2,step=0.1,layout=Layout(height='auto', width=floatbox_width))#mind the gap
primary_grid[3,2]=widgets.Dropdown(options=['SINGle','DOUBle'],value='SINGle',layout=Layout(height='auto', width='auto'))#mind the gap primary_grid[3,2]=widgets.Dropdown(options=['SINGle','DOUBle'],value='SINGle',layout=Layout(height='auto', width=floatbox_width))#mind the gap
parameters = { parameters = {
'start': primary_grid[1,0], 'start': primary_grid[1,0],
...@@ -67,17 +68,17 @@ def secondary(name,start,step,stop,comp): ...@@ -67,17 +68,17 @@ def secondary(name,start,step,stop,comp):
secondary_grid[0,2]=widgets.Label("Stop(V)",layout=Layout(height='auto', width='auto')) secondary_grid[0,2]=widgets.Label("Stop(V)",layout=Layout(height='auto', width='auto'))
#second line #second line
secondary_grid[1,0]=widgets.BoundedFloatText(value=start,min=-100,max=100,step=1,layout=Layout(height='auto', width='auto')) secondary_grid[1,0]=widgets.BoundedFloatText(value=start,min=-100,max=100,step=1,layout=Layout(height='auto', width=floatbox_width))
secondary_grid[1,1]=widgets.BoundedFloatText(value=step,min=-200,max=200,step=1,layout=Layout(height='auto', width='auto')) secondary_grid[1,1]=widgets.BoundedFloatText(value=step,min=-200,max=200,step=1,layout=Layout(height='auto', width=floatbox_width))
secondary_grid[1,2]=widgets.BoundedFloatText(value=stop,min=-100,max=100,step=1,layout=Layout(height='auto', width='auto')) secondary_grid[1,2]=widgets.BoundedFloatText(value=stop,min=-100,max=100,step=1,layout=Layout(height='auto', width=floatbox_width))
#third line #third line
secondary_grid[2,0]=widgets.Label("Compliance(A)",layout=Layout(height='auto', width='auto')) secondary_grid[2,0]=widgets.Label("Compliance(A)",layout=Layout(height='auto', width='auto'))
secondary_grid[2,2] =widgets.Label("Power Compliance(W) (0=OFF)",layout=Layout(height='auto', width='auto'))#mind the gap secondary_grid[2,2] =widgets.Label("Power Compliance(W) (0=OFF)",layout=Layout(height='auto', width='auto'))#mind the gap
#fourth line #fourth line
secondary_grid[3,0]=widgets.BoundedFloatText(value=comp,min=-0.1,max=0.1,step=0.01,layout=Layout(height='auto', width='auto')) secondary_grid[3,0]=widgets.BoundedFloatText(value=comp,min=-0.1,max=0.1,step=0.01,layout=Layout(height='auto', width=floatbox_width))
secondary_grid[3,2]=widgets.BoundedFloatText(value=0,min=0,max=2,step=0.1,layout=Layout(height='auto', width='auto'))#mind the gap secondary_grid[3,2]=widgets.BoundedFloatText(value=0,min=0,max=2,step=0.1,layout=Layout(height='auto', width=floatbox_width))#mind the gap
parameters = { parameters = {
'start': secondary_grid[1,0], 'start': secondary_grid[1,0],
...@@ -100,6 +101,13 @@ def information_box_new(): ...@@ -100,6 +101,13 @@ def information_box_new():
for j in range(2): for j in range(2):
if i ==2 and j == 1: if i ==2 and j == 1:
information_grid[i,j]=widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height=height, width=width))#mind the gap information_grid[i,j]=widgets.Dropdown(options=['mA/mm','µA/µm'],value='mA/mm',layout=Layout(height=height, width=width))#mind the gap
elif i == 2 and j == 0:
information_grid[i,j]=widgets.BoundedFloatText(
value=100,
min=sys.float_info.min,
max=sys.float_info.max,step=1,
layout=Layout(height=height, width=width)
)
else: else:
information_grid[i,j]=widgets.Text(layout=Layout(height=height, width=width)) information_grid[i,j]=widgets.Text(layout=Layout(height=height, width=width))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment