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
77f826ac
Commit
77f826ac
authored
Dec 4, 2023
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
The end of memristor measurement!!(part1)
parent
aed21f07
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/memristor/default.ini
+4
-4
4 additions, 4 deletions
hp4155/memristor/default.ini
hp4155/memristor/help.py
+10
-8
10 additions, 8 deletions
hp4155/memristor/help.py
hp4155/memristor/memristor_buttons.ipynb
+5
-5
5 additions, 5 deletions
hp4155/memristor/memristor_buttons.ipynb
with
19 additions
and
17 deletions
hp4155/memristor/default.ini
+
4
−
4
View file @
77f826ac
...
@@ -3,9 +3,9 @@ step = 0.02
...
@@ -3,9 +3,9 @@ step = 0.02
integration_time
=
MED
integration_time
=
MED
[SET]
[SET]
voltage
=
1
voltage
=
4
comp
=
1
0
E-3
comp
=
1E-3
[RESET]
[RESET]
voltage
=
-1
voltage
=
-2
comp
=
10E-3
comp
=
20E-3
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
hp4155/memristor/help.py
+
10
−
8
View file @
77f826ac
...
@@ -29,13 +29,15 @@ import os
...
@@ -29,13 +29,15 @@ import os
#double sweep from start to stop and then from start to stop
#double sweep from start to stop and then from start to stop
def
sweep
(
start
,
stop
,
step
,
comp
,
integration
,
device
):
def
sweep
(
start
,
stop
,
step
,
comp
,
integration
,
device
):
device
.
measurement_mode
(
'
SWE
'
)
device
.
measurement_mode
(
'
SWE
'
)
#changed smu2 is source and 4 is ground
#smu2 is constant and common
#smu2 is constant and common
device
.
smu_mode_meas
(
2
,
'
COMM
'
)
device
.
smu_mode_meas
(
4
,
'
COMM
'
)
device
.
smu_function_sweep
(
2
,
'
CONS
'
)
device
.
smu_function_sweep
(
4
,
'
CONS
'
)
#smu4 is VAR1 and V
#smu4 is VAR1 and V
device
.
smu_mode_meas
(
4
,
'
V
'
)
device
.
smu_mode_meas
(
2
,
'
V
'
)
device
.
smu_function_sweep
(
4
,
'
VAR1
'
)
device
.
smu_function_sweep
(
2
,
'
VAR1
'
)
device
.
integration_time
(
integration
)
device
.
integration_time
(
integration
)
...
@@ -52,8 +54,8 @@ def sweep(start,stop,step,comp,integration,device):
...
@@ -52,8 +54,8 @@ def sweep(start,stop,step,comp,integration,device):
device
.
comp
(
'
VAR1
'
,
comp
)
device
.
comp
(
'
VAR1
'
,
comp
)
#display variables
#display variables
device
.
display_variable
(
'
X
'
,
'
V
4
'
)
device
.
display_variable
(
'
X
'
,
'
V
2
'
)
device
.
display_variable
(
'
Y1
'
,
'
I
4
'
)
device
.
display_variable
(
'
Y1
'
,
'
I
2
'
)
#execute measurement
#execute measurement
device
.
single_measurement
()
device
.
single_measurement
()
...
@@ -63,8 +65,8 @@ def sweep(start,stop,step,comp,integration,device):
...
@@ -63,8 +65,8 @@ def sweep(start,stop,step,comp,integration,device):
device
.
autoscaling
()
device
.
autoscaling
()
#return values
#return values
V
=
device
.
return_data
(
'
V
4
'
)
V
=
device
.
return_data
(
'
V
2
'
)
I
=
device
.
return_data
(
'
I
4
'
)
I
=
device
.
return_data
(
'
I
2
'
)
#convert the list to np.array to return the absolute values for the logarithmic scale
#convert the list to np.array to return the absolute values for the logarithmic scale
V
=
np
.
array
(
V
)
V
=
np
.
array
(
V
)
...
...
This diff is collapsed.
Click to expand it.
hp4155/memristor/memristor_buttons.ipynb
+
5
−
5
View file @
77f826ac
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "a
f4e65d1af3f4099b7987c6357e5b52c
",
"model_id": "a
d1d4d2991b3473fbd227f8cfa06f00d
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
10e14d983dba4495bc479456a03d3009
",
"model_id": "
09da34b961294c33903dc64b9bacb0a6
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
aa2abc45856c4a60943ac9e9e114827d
",
"model_id": "
8196f25a04a84253a6de58d24853190e
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
4f611a8934e345e78eb6190b4fac8517
",
"model_id": "
88141acacc47437383f8f33765e3cad6
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
{
{
"data": {
"data": {
"application/vnd.jupyter.widget-view+json": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
4375a6d2b950483da7bd5cc5cf3b8f8d
",
"model_id": "
7cdda9fe7b45480ba63b64572edf7dc0
",
"version_major": 2,
"version_major": 2,
"version_minor": 0
"version_minor": 0
},
},
...
...
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