Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labcode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
a0f5f1eb
Commit
a0f5f1eb
authored
Jul 5, 2024
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
Double Gate Devices part 7
parent
6c3d7167
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
hp4155/ADU for double gate devices/double_gate_ADU.py
+3
-6
3 additions, 6 deletions
hp4155/ADU for double gate devices/double_gate_ADU.py
hp4155/ADU for double gate devices/lib/help.py
+10
-2
10 additions, 2 deletions
hp4155/ADU for double gate devices/lib/help.py
with
13 additions
and
8 deletions
hp4155/ADU for double gate devices/double_gate_ADU.py
+
3
−
6
View file @
a0f5f1eb
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU for double gate devices/lib/help.py
+
10
−
2
View file @
a0f5f1eb
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment