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
0e4e82f7
Commit
0e4e82f7
authored
1 year ago
by
JupyterHub User
Browse files
Options
Downloads
Patches
Plain Diff
added parameters for stress measurement
parent
88ce3932
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hp4155/measurements.py
+16
-16
16 additions, 16 deletions
hp4155/measurements.py
with
16 additions
and
16 deletions
hp4155/measurements.py
+
16
−
16
View file @
0e4e82f7
...
...
@@ -62,7 +62,8 @@ def I_V_Measurement(start,stop,step):
del
device
def
stress_sampling
():
def
stress_sampling
(
V2_stress
=
10
,
V3_stress
=
3
,
stress_time
=
30
,
V2_sampling
=
10
,
V3_sampling
=
2
,
sampling_mode
=
'
L10
'
,
number_of_points
=
21
,
integration_time
=
'
SHOR
'
):
#connect to device
device
=
module
.
HP4155a
(
'
GPIB0::17::INSTR
'
)
...
...
@@ -80,10 +81,10 @@ def stress_sampling():
device
.
sync
(
4
,
0
)
#values
device
.
smu_value
(
2
,
10
)
device
.
smu_value
(
3
,
-
3
)
device
.
smu_value
(
2
,
V2_stress
)
device
.
smu_value
(
3
,
V3_stress
)
#time
zeit
=
device
.
stress_time
(
30
)
zeit
=
device
.
stress_time
(
stress_time
)
device
.
start_stress
()
while
device
.
operation_completed
()
==
False
:
...
...
@@ -100,18 +101,18 @@ def stress_sampling():
#set the values of smu for sampling
device
.
constant_smu_sampling
(
2
,
10
)
device
.
constant_smu_sampling
(
3
,
2
)
device
.
constant_smu_sampling
(
2
,
V2_sampling
)
device
.
constant_smu_sampling
(
3
,
V3_sampling
)
#time log10
device
.
sampling_mode
(
'
L10
'
)
device
.
sampling_mode
(
sampling_mode
)
#minimum initial interval
#
device.initial_interval('MIN')
device
.
initial_interval
(
'
MIN
'
)
device
.
number_of_points
(
21
)
device
.
integration_time
(
'
SHOR
'
)
device
.
number_of_points
(
number_of_points
)
device
.
integration_time
(
integration_time
)
device
.
single_measurement
()
while
device
.
operation_completed
()
==
False
:
...
...
@@ -122,18 +123,16 @@ def stress_sampling():
I2_values
=
device
.
return_data
(
'
I2
'
)
fig
=
plt
.
figure
()
plt
.
plot
(
time_values
,
I2_values
)
plt
.
show
()
fig
=
plt
.
figure
()
plt
.
plot
(
time_values
,
I3_values
)
plt
.
plot
(
time_values
,
I2_values
,
label
=
'
I2
'
)
plt
.
plot
(
time_values
,
I3_values
,
label
=
'
I3
'
)
plt
.
legend
()
plt
.
show
()
del
device
#prepare full measurement
def
ctlm
(
field_name
=
'
M00
'
,
time
=
'
MED
'
,
start
=-
50
*
10
**
(
-
3
),
stop
=
50
*
10
**
(
-
3
),
step
=
10
**
(
-
3
),
comp
=
10
V
,
distances
=
(
5
,
10
,
15
,
25
,
45
)):
def
ctlm
(
field_name
=
'
M00
'
,
start
=-
50
*
10
**
(
-
3
),
stop
=
50
*
10
**
(
-
3
),
step
=
10
**
(
-
3
),
comp
=
10
,
distances
=
(
5
,
10
,
15
,
25
,
45
)
,
time
=
'
MED
'
):
#connect to the device
device
=
module
.
HP4155a
(
'
GPIB0::17::INSTR
'
)
...
...
@@ -227,6 +226,7 @@ def ctlm(field_name ='M00',time='MED',start=-50*10**(-3),stop=50*10**(-3),step=1
break
#close the connection and plot all the diagramms
plt
.
legend
()
plt
.
show
()
del
device
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