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
43e1efef
Commit
43e1efef
authored
Jun 27, 2024
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
ADU final version with new files
parent
88f68b08
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
hp4155/ADU/ADU_interface.ipynb
+25
-1
25 additions, 1 deletion
hp4155/ADU/ADU_interface.ipynb
hp4155/ADU/lib/help.py
+28
-9
28 additions, 9 deletions
hp4155/ADU/lib/help.py
hp4155/hp4155a.py
+12
-0
12 additions, 0 deletions
hp4155/hp4155a.py
with
65 additions
and
10 deletions
hp4155/ADU/ADU_interface.ipynb
+
25
−
1
View file @
43e1efef
...
...
@@ -9,7 +9,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "91b007d1c3f34b39b4bc4d4fc430fcbf",
=======
"model_id": "085dce1f59214d188b41662aa105b2d3",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
...
...
@@ -23,7 +27,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "a989b58d9fa44eb0827c087afd0c5efe",
=======
"model_id": "f6fd1f84320f406bb08c41951d62bdf5",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
...
...
@@ -44,7 +52,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "5fb4ecee398f4c0ebff2e7b679b525fe",
=======
"model_id": "b512386ba3cf42c98b8fd13325cd8791",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
...
...
@@ -65,7 +77,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "6a08c9595e524587a810c29bb75c713e",
=======
"model_id": "e4a53ef64f184afd9ece9bf61f16a992",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
...
...
@@ -86,7 +102,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "fde2af87a1934f37b1ec1d7bf43a2dff",
=======
"model_id": "d142f057b2124fcebe3175fa8971677c",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
...
...
@@ -100,7 +120,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "1f8f0870133d44468fd31fa1ab9434cf",
=======
"model_id": "07df3b7af50443eca87e6c8059763b52",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
...
...
@@ -119,7 +143,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "
0331b265-0fe6-4749-ac85-099509f735ea
",
"id": "
d480980e-f36a-4096-89b0-f65fe874d8a6
",
"metadata": {},
"outputs": [],
"source": []
...
...
This diff is collapsed.
Click to expand it.
hp4155/ADU/lib/help.py
+
28
−
9
View file @
43e1efef
...
...
@@ -25,7 +25,7 @@ def plot_transfer(x,y1,y2,curves,norm_unit='mA/mm'):
for
i
in
range
(
curves
):
ax1
.
plot
(
x
[
i
],
y1
[
i
],
color
=
color
)
#ax1.plot(Vgs, Idmm, color = color)
ax1
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
,
which
=
'
both
'
)
ax1
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
)
# Adding Twin Axes
ax2
=
ax1
.
twinx
()
...
...
@@ -35,13 +35,19 @@ def plot_transfer(x,y1,y2,curves,norm_unit='mA/mm'):
ax2
.
set_ylabel
(
'
$g_{m} (mS/mm)$
'
,
color
=
color
)
else
:
ax2
.
set_ylabel
(
'
$g_{m} (uS/um)$
'
,
color
=
color
)
for
i
in
range
(
curves
):
ax
1
.
plot
(
x
[
i
],
y2
[
i
],
color
=
color
)
ax
2
.
plot
(
x
[
i
],
y2
[
i
],
color
=
color
)
#ax2.plot(Vgs, gm, color = color)
ax2
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
,
which
=
'
both
'
)
ax2
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
)
# Adding title
<<<<<<<
HEAD
plt
.
title
(
'
Transfer Curve
'
,
fontweight
=
"
bold
"
)
=======
fig
.
suptitle
(
'
Transfer Curve
'
,
fontweight
=
"
bold
"
)
fig
.
tight_layout
()
>>>>>>>
7e1
febb
(
fixed
matplotlib
bug
plotting
in
transfer
curve
)
# Show plot
display
(
fig
)
...
...
@@ -60,9 +66,10 @@ def plot_output(x,y1,y2,curves,norm_unit = "mA/mm"):
ax1
.
set_ylabel
(
'
$I_{D} (mA/mm)$
'
,
color
=
color
)
else
:
ax1
.
set_ylabel
(
'
$I_{D} (uA/um)$
'
,
color
=
color
)
for
i
in
range
(
curves
):
ax1
.
plot
(
x
[
i
],
y1
[
i
],
color
=
color
)
ax1
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
,
which
=
'
both
'
)
ax1
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
)
ax2
=
ax1
.
twinx
()
color
=
'
tab:green
'
...
...
@@ -70,11 +77,18 @@ def plot_output(x,y1,y2,curves,norm_unit = "mA/mm"):
ax2
.
set_ylabel
(
'
$I_{G} (mA/mm)$
'
,
color
=
color
)
else
:
ax2
.
set_ylabel
(
'
$I_{G} (uA/um)$
'
,
color
=
color
)
for
i
in
range
(
curves
):
ax2
.
plot
(
x
[
i
],
y2
[
i
],
color
=
color
)
ax2
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
,
which
=
'
both
'
)
ax2
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
)
<<<<<<<
HEAD
plt
.
title
(
"
Output Curve
"
,
fontweight
=
"
bold
"
)
=======
fig
.
suptitle
(
"
Output Curve
"
,
fontweight
=
"
bold
"
)
fig
.
tight_layout
()
>>>>>>>
7e1
febb
(
fixed
matplotlib
bug
plotting
in
transfer
curve
)
display
(
fig
)
def
plot_gatediode
(
x
,
y
,
norm_unit
=
"
mA/mm
"
):
...
...
@@ -91,9 +105,14 @@ def plot_gatediode(x,y,norm_unit = "mA/mm"):
y
=
np
.
absolute
(
y
)
ax1
.
plot
(
x
,
y
,
color
=
color
)
ax1
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
,
which
=
'
both
'
)
ax1
.
tick_params
(
axis
=
'
y
'
,
labelcolor
=
color
)
<<<<<<<
HEAD
plt
.
title
(
'
Gatediode Curve
'
,
fontweight
=
"
bold
"
)
=======
fig
.
suptitle
(
'
Gatediode Curve
'
,
fontweight
=
"
bold
"
)
fig
.
tight_layout
()
>>>>>>>
7e1
febb
(
fixed
matplotlib
bug
plotting
in
transfer
curve
)
display
(
fig
)
...
...
This diff is collapsed.
Click to expand it.
hp4155/hp4155a.py
+
12
−
0
View file @
43e1efef
...
...
@@ -167,6 +167,18 @@ class HP4155a(object):
def
stop_measurement
(
self
):
self
.
inst
.
write
(
"
:PAGE:SCON:STOP
"
)
<<<<<<<
HEAD
=======
# list to save variables in files up to 8 variables
def
variables_to_save
(
self
,
variables_list
):
command
=
"
:PAGE:DISP:LIST
"
for
index
,
variable
in
enumerate
(
variables_list
):
command
=
command
+
f
"
{
repr
(
variable
)
}
"
if
index
!=
len
(
variables_list
)
-
1
:
command
=
command
+
"
,
"
self
.
inst
.
write
(
command
)
>>>>>>>
7e1
febb
(
fixed
matplotlib
bug
plotting
in
transfer
curve
)
#delete all user functions
def
del_user_functions
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Alexandros Asonitis
@asoalexandros
mentioned in commit
53acac34
·
Jul 9, 2024
mentioned in commit
53acac34
mentioned in commit 53acac34f11ba608c97f223012c5a43b0b2af23c
Toggle commit list
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