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

interface part 3

parent 2d7cb1d5
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:6defdb49-06c2-469d-beb5-bc2e147e3f79 tags:
``` python
%run ADU.py
```
%% Output
%% Cell type:code id:a4bb888c-4d77-4f1e-8722-601c15e0bb6d tags:
%% Cell type:code id:e95955c1-f401-4e5d-ba89-9ce1ef5938ef tags:
``` python
```
......
......@@ -56,4 +56,10 @@ print()
print()
# the button
button = widgets.Button(description ='Start Measurement')
output = widgets.Output()
display(button,output)
......@@ -41,9 +41,17 @@ def primary(name,start,step,stop,comp):
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,2]=widgets.Dropdown(options=['SINGle','DOUBle'],value='SINGle',layout=Layout(height='auto', width='auto'))#mind the gap
parameters = {
'start': primary_grid[1,0],
'step': primary_grid[1,1],
'stop': primary_grid[1,2],
'comp': primary_grid[3,0],
'hysterisis':primary_grid[3,2]
}
display(primary_grid)
print()
return primary_grid
return parameters
def secondary(name,start,step,stop,comp):
......@@ -68,9 +76,16 @@ def secondary(name,start,step,stop,comp):
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,2]=widgets.BoundedFloatText(value=0,min=0,max=100,step=0.1,layout=Layout(height='auto', width='auto'))#mind the gap
parameters = {
'start': secondary_grid[1,0],
'step': secondary_grid[1,1],
'stop':secondary_grid[1,2],
'comp':secondary_grid[3,0],
'pcomp':secondary_grid[3,2]
}
display(secondary_grid)
print()
return secondary
return parameters
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment