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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
05f43ea8
Commit
05f43ea8
authored
3 months ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
Stress Functions fixed (apparently the new class was never used for measurements)
parent
6da6b27e
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/Custom_SMU/lib/interface.py
+1
-1
1 addition, 1 deletion
hp4155/Custom_SMU/lib/interface.py
hp4155/Custom_SMU/test_interface.ipynb
+4
-4
4 additions, 4 deletions
hp4155/Custom_SMU/test_interface.ipynb
hp4155/hp4155a.py
+11
-2
11 additions, 2 deletions
hp4155/hp4155a.py
with
16 additions
and
7 deletions
hp4155/Custom_SMU/lib/interface.py
+
1
−
1
View file @
05f43ea8
...
...
@@ -38,7 +38,7 @@ def page_1():
#Fifth column function
options_function
=
[
'
VAR1
'
,
'
VAR2
'
,
'
VARD
'
,
'
CONS
'
,
'
SYNC
'
,
'
NSYNC
'
]
options_function
=
[
'
VAR1
'
,
'
VAR2
'
,
'
VARD
'
,
'
CONS
'
]
first_page
[
0
,
4
]
=
widgets
.
Label
(
'
FUNC
'
,
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
))
first_page
[
1
,
4
]
=
widgets
.
Dropdown
(
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
),
options
=
options_function
,
value
=
'
CONS
'
)
#smu1
first_page
[
2
,
4
]
=
widgets
.
Dropdown
(
layout
=
Layout
(
height
=
'
auto
'
,
width
=
'
auto
'
),
options
=
options_function
,
value
=
'
VAR2
'
)
#smu2
...
...
This diff is collapsed.
Click to expand it.
hp4155/Custom_SMU/test_interface.ipynb
+
4
−
4
View file @
05f43ea8
...
...
@@ -9,7 +9,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
ab0613b08d1c4593b10d5aee82e41db8
",
"model_id": "
881e72368c0d4a38a12413a23d573b7d
",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -23,7 +23,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
c41a8e0c74774f05b933bdc9129731c
8",
"model_id": "
b63db9b2c25d444eb3d18bc61103296
8",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -37,7 +37,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "
a9e398217285490e9b1659327a45a
07
6
",
"model_id": "
f88cceabc2954893adb3528ea5aa93
07",
"version_major": 2,
"version_minor": 0
},
...
...
@@ -78,7 +78,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.1
2.0
"
"version": "3.1
1.4
"
}
},
"nbformat": 4,
...
...
This diff is collapsed.
Click to expand it.
hp4155/hp4155a.py
+
11
−
2
View file @
05f43ea8
...
...
@@ -22,10 +22,11 @@ class HP4155a(object):
command
=
f
"
:PAGE:STR:SMU
{
number
}
:MODE
{
smu
[
'
mode
'
]
}
;FUNC
{
smu
[
'
func
'
]
}
;NAME
{
repr
(
smu
[
'
name
'
])
}
"
self
.
inst
.
write
(
command
)
command
=
f
"
:PAGE:STR:SET:CONS:SMU
{
number
}
{
smu
[
'
value
'
]
}
"
def
setup_smu_stress
(
self
,
value
,
comp
):
command
=
f
"
:PAGE:STR:SET:CONS:SMU
{
number
}
{
value
}
"
self
.
inst
.
write
(
command
)
command
=
f
"
:PAGE:STR:SET:CONS:SMU
{
number
}
:COMP
{
smu
[
'
comp
'
]
}
"
command
=
f
"
:PAGE:STR:SET:CONS:SMU
{
number
}
:COMP
{
comp
}
"
self
.
inst
.
write
(
command
)
def
smu_stress_disable
(
self
,
number
:
int
):
...
...
@@ -45,6 +46,14 @@ class HP4155a(object):
command
=
f
"
:PAGE:STR:SET:DUR
{
time
}
"
self
.
inst
.
write
(
command
)
def
stress_disable_not_smu
(
self
):
self
.
inst
.
write
(
"
:PAGE:STR:VSU1:DIS
"
)
self
.
inst
.
write
(
"
:PAGE:STR:VSU2:DIS
"
)
def
stress_smu_disable
(
self
,
number
:
int
):
command
=
f
"
:PAGE:STR:SMU
{
number
}
:DIS
"
self
.
inst
.
write
(
command
)
#start stress operation
def
start_stress
(
self
):
self
.
inst
.
write
(
"
:PAGE:SCON:STR
"
)
...
...
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