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
ad819d11
Commit
ad819d11
authored
1 year ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
GateDiode with results!
parent
9a81e2e9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
hp4155/ADU/ADU.ipynb
+33
-14
33 additions, 14 deletions
hp4155/ADU/ADU.ipynb
hp4155/ADU/ADU.py
+43
-1
43 additions, 1 deletion
hp4155/ADU/ADU.py
hp4155/ADU/help.py
+6
-2
6 additions, 2 deletions
hp4155/ADU/help.py
hp4155/ADU/measurements_new.py
+10
-10
10 additions, 10 deletions
hp4155/ADU/measurements_new.py
with
92 additions
and
27 deletions
hp4155/ADU/ADU.ipynb
+
33
−
14
View file @
ad819d11
...
...
@@ -9,7 +9,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
295e462e4d4a433583afbd54f4360767
",
"model_id": "
880cfcfd01ce48ddaf8510354ad88e28
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -23,7 +23,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
bda925c499bb4680b8afd624c3d625f4
",
"model_id": "
66f9d0be936047d0a2d1d27f415c2708
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -44,7 +44,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
0fb152bcfc1642288d9862b346d3e09d
",
"model_id": "
4500a53acf28486da27ed5ea6aeac220
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -65,7 +65,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
755842ccb9b44ee9a6dd74138828e3bd
",
"model_id": "
93a46f9d79f7471091a0f9c41cfcf07b
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -86,7 +86,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
773fbc868d8b4e388f7a6404c864c0f2
",
"model_id": "
fd8c158c3e69470492822af75b126413
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -107,7 +107,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
f2ab3baa5acf4621888840fa831f0ebf
",
"model_id": "
a6ac16c1104e4366be9501699730f0d0
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -130,7 +130,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
e4c96d5c69cd45778f68cfa1423aa6e7
",
"model_id": "
09302f75408847f9a18503c997665079
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -151,7 +151,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2
f05cb09836f472dbcfede0f24e76cbd
",
"model_id": "2
72ade3a81824073a4c3f145409e091e
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -172,7 +172,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7
911d205dd364a4fa630267125d7db45
",
"model_id": "7
bae57da28114829870a953fae216e21
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -195,7 +195,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
886aacc213bc4c809aef5ccfd5c944c
c",
"model_id": "
ea8d96e4a02744df9c8eebed86623e5
c",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -216,7 +216,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4
8cc1e19af7b4ce1b1ec9616dff9ad6b
",
"model_id": "4
bd4caeda283448783794cf90ea68223
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -239,7 +239,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
4b882c7ae21c4c8b86ea8b3b66ba88f8
",
"model_id": "
0ac1e57ecd10426982db3814844bcb4d
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -253,7 +253,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
680473ea596845d6871ae0abe5f18381
",
"model_id": "
df161623abe54d039ea8ed1dfb720272
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -271,9 +271,28 @@
},
{
"cell_type": "code",
"execution_count":
null
,
"execution_count":
3
,
"id": "3da7c505-85a3-45e9-853e-86a9c9e30569",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"+0,\"No error\"\n",
"\n"
]
}
],
"source": [
"print(device.error())"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ed84d07f-5703-455f-b2ff-32bf82dd910c",
"metadata": {},
"outputs": [],
"source": []
}
...
...
%% Cell type:code id:6defdb49-06c2-469d-beb5-bc2e147e3f79 tags:
```
python
%
run
ADU
.
py
```
%% Output
%% Cell type:code id:3da7c505-85a3-45e9-853e-86a9c9e30569 tags:
```
python
print
(
device
.
error
())
```
%% Output
+0,"No error"
%% Cell type:code id:ed84d07f-5703-455f-b2ff-32bf82dd910c tags:
```
python
```
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/ADU.py
+
43
−
1
View file @
ad819d11
...
...
@@ -71,7 +71,6 @@ def on_start_clicked(b):
#check the values
vgs_ok
=
check_values
(
Vgs_transfer
[
'
start
'
],
Vgs_transfer
[
'
step
'
],
Vgs_transfer
[
'
stop
'
],
'
primary
'
)
vds_ok
=
check_values
(
Vds_transfer
[
'
start
'
],
Vds_transfer
[
'
step
'
],
Vds_transfer
[
'
stop
'
],
'
secondary
'
)
print
(
vgs_ok
,
vds_ok
)
if
vgs_ok
==
True
and
vds_ok
==
True
:
#calculate number of points for var2(VDS)
...
...
@@ -184,6 +183,49 @@ def on_start_clicked(b):
file
=
create_file
(
filename
)
save_to_file
(
'
Output Curve
'
,
file
,
df
,
sample
,
integration_output
,
Vgs_output
,
Vds_output
)
if
gatediode_check
.
value
==
True
:
#check the values
vgs_ok
=
check_values
(
Vgs_gatediode
[
'
start
'
],
Vgs_gatediode
[
'
step
'
],
Vgs_gatediode
[
'
stop
'
],
'
primary
'
)
if
vgs_ok
==
True
:
#configure smus
smu1
=
device
.
smu_dict
()
smu1
.
update
(
vname
=
'
VS1
'
,
iname
=
'
IS1
'
,
mode
=
'
COMM
'
,
func
=
'
CONS
'
)
smu3
=
device
.
smu_dict
()
smu3
.
update
(
vname
=
'
VGS
'
,
iname
=
'
IG
'
,
mode
=
'
V
'
,
func
=
'
VAR1
'
)
smu4
=
device
.
smu_dict
()
smu4
.
update
(
vname
=
'
VS2
'
,
iname
=
'
IS2
'
,
mode
=
'
COMM
'
,
func
=
'
CONS
'
)
var1
=
device
.
var1_dict
()
var1
.
update
(
mode
=
Vgs_gatediode
[
'
hyst
'
].
value
,
start
=
Vgs_gatediode
[
'
start
'
].
value
,
stop
=
Vgs_gatediode
[
'
stop
'
].
value
,
step
=
Vgs_gatediode
[
'
step
'
].
value
,
comp
=
Vgs_gatediode
[
'
comp
'
].
value
,
pcomp
=
Vgs_gatediode
[
'
pcomp
'
].
value
)
smu3
.
update
(
VAR1
=
var1
)
#execute measurement
Vgs
,
Igmm
,
abs_Igmm
=
Gatediode
(
smu1
,
smu3
,
smu4
,
integration_gatediode
.
value
,
device
)
clear_output
()
plot_gatediode
(
Vgs
,
Igmm
)
#save results
header
=
[
'
VGS(V)
'
,
'
IGmm(mA/mm)
'
,
"
ABS(IGmm(mA/mm))
"
]
data
=
{
header
[
0
]:
Vgs
,
header
[
1
]:
Igmm
,
header
[
2
]:
abs_Igmm
}
df
=
pd
.
DataFrame
(
data
)
filename
=
f
"
{
sample
[
'
sample
'
].
value
}
_
{
sample
[
'
field
'
].
value
}
_
{
sample
[
'
device
'
].
value
}
D.txt
"
file
=
create_file
(
filename
)
save_to_file
(
'
Gatediode
'
,
file
,
df
,
sample
,
integration_gatediode
,
Vgs_gatediode
)
information_box
(
"
Measurement finished!
"
)
enable_widgets
(
all_widgets
)
button
.
on_click
(
on_start_clicked
)
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/help.py
+
6
−
2
View file @
ad819d11
...
...
@@ -196,7 +196,9 @@ def save_to_file(measurement,file,df,sample,integration,Vgs,Vds=None):
f
.
write
(
f
"
Device Width(µm):
{
sample
[
'
width
'
].
value
}
"
+
"
\n\n
"
)
f
.
write
(
'
Parameters
\n
'
)
f
.
write
(
f
'
Integration time:
{
integration
.
value
}
'
+
"
\n
"
)
f
.
write
(
f
"
VGS from
{
Vgs
[
'
start
'
].
value
}
V to
{
Vgs
[
'
stop
'
].
value
}
V with step
{
Vgs
[
'
step
'
].
value
}
V
"
+
"
\n
"
)
if
Vds
!=
None
:
f
.
write
(
f
"
VDS from
{
Vds
[
'
start
'
].
value
}
V to
{
Vds
[
'
stop
'
].
value
}
V with step
{
Vds
[
'
step
'
].
value
}
V
"
+
"
\n
"
)
#calculate the values
Vgs_comp
=
Vgs
[
"
comp
"
].
value
...
...
@@ -212,6 +214,8 @@ def save_to_file(measurement,file,df,sample,integration,Vgs,Vds=None):
f
.
write
(
f
"
Drain Current Compliance(A):
{
Vds_comp
}
"
+
"
\n
"
)
else
:
f
.
write
(
f
"
Drain Power Compliance(A):
{
Vds_pcomp
}
"
+
"
\n
"
)
f
.
write
(
f
'
Integration time:
{
integration
.
value
}
'
+
"
\n
"
)
f
.
write
(
"
\n
Results
\n
"
)
f
.
write
(
df
.
to_string
())
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/measurements_new.py
+
10
−
10
View file @
ad819d11
...
...
@@ -64,7 +64,7 @@ def Test(device):
device
.
autoscaling
()
def
Transfer
(
smu1
,
smu2
,
smu3
,
smu4
,
integration
,
device
):
device
.
del_user_functions
()
#set all the smus
device
.
setup_smu
(
1
,
smu1
)
device
.
setup_smu
(
2
,
smu2
)
...
...
@@ -75,7 +75,7 @@ def Transfer(smu1,smu2,smu3,smu4,integration,device):
device
.
setup_var2
(
smu2
[
'
VAR2
'
])
device
.
integration_time
(
integration
)
device
.
del_user_functions
()
device
.
user_function
(
'
Gm
'
,
'
mS/mm
'
,
'
1E4*DIFF(ID,VGS)
'
)
device
.
user_function
(
'
IDmm
'
,
'
mA/mm
'
,
'
1E4*ID
'
)
...
...
@@ -102,7 +102,7 @@ def Transfer(smu1,smu2,smu3,smu4,integration,device):
def
Output
(
smu1
,
smu2
,
smu3
,
smu4
,
integration
,
device
):
device
.
del_user_functions
()
#setup all smus
device
.
setup_smu
(
1
,
smu1
)
device
.
setup_smu
(
2
,
smu2
)
...
...
@@ -113,7 +113,7 @@ def Output(smu1,smu2,smu3,smu4,integration,device):
device
.
setup_var1
(
smu2
[
'
VAR1
'
])
device
.
integration_time
(
integration
)
device
.
del_user_functions
()
device
.
user_function
(
'
IDmm
'
,
'
mA/mm
'
,
'
1E4*ID
'
)
device
.
user_function
(
'
IGmm
'
,
'
mA/mm
'
,
'
1E4*IG
'
)
...
...
@@ -135,7 +135,8 @@ def Output(smu1,smu2,smu3,smu4,integration,device):
return
Vgs
,
Vds
,
Idmm
,
Igmm
def
Gatediode
(
smu1
,
smu3
,
sm4
,
integration
,
device
):
def
Gatediode
(
smu1
,
smu3
,
smu4
,
integration
,
device
):
device
.
del_user_functions
()
#setup all smus
device
.
setup_smu
(
1
,
smu1
)
...
...
@@ -146,15 +147,14 @@ def Gatediode(smu1,smu3,sm4,integration,device):
device
.
setup_var1
(
smu3
[
'
VAR1
'
])
device
.
integration_time
(
integration
)
device
.
del_user_functions
()
#define user functions
device
.
user_function
(
'
IGmm
'
,
'
mA/mm
'
,
'
1E4*IG
'
)
device
.
user_function
(
'
ABSIGm
'
,
'
mA/mm
'
,
'
ABS(IGmm)
'
)
#display
device
.
display_variable
(
'
X
'
,
'
V
D
S
'
)
device
.
display_variable
(
'
Y1
'
,
'
I
D
mm
'
)
device
.
display_variable
(
'
Y2
'
,
'
IGm
m
'
)
device
.
display_variable
(
'
X
'
,
'
V
G
S
'
)
device
.
display_variable
(
'
Y1
'
,
'
I
G
mm
'
)
device
.
display_variable
(
'
Y2
'
,
'
ABS
IGm
'
)
device
.
single_measurement
()
while
device
.
operation_completed
()
==
False
:
...
...
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