Skip to content

Commit

Permalink
mp scripts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jan 2, 2020
1 parent 79a4da8 commit 8bfe5da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions scripts/curve-tracer (N-type).py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
TIME_OFF_MS = 6

# Ch1 G-S
Ugs = [3, 3.5, 4, 4.5, 6, 8, 12]
Ugs = [3.5, 4, 4.5, 5, 5.5, 6]
Ig = 5.0

# Ch2 D-S
Expand Down Expand Up @@ -97,10 +97,10 @@ def start(deviceName, Uds_max, Id_max):

iMonValues[ugs_step_counter] = getI(2)

setU(1, 0)

t = ticks_add(t, TIME_OFF_MS)
sleep_ms(ticks_diff(t, ticks_ms()))
if TIME_OFF_MS > 0:
setU(1, 0)
t = ticks_add(t, TIME_OFF_MS)
sleep_ms(ticks_diff(t, ticks_ms()))

dlogTraceData(iMonValues)
finally:
Expand Down
4 changes: 2 additions & 2 deletions scripts/curve-tracer (NPN).py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from utime import ticks_ms, ticks_add, ticks_diff, sleep_ms
from eez import scpi, setU, setI, getOutputMode, getI, dlogTraceData

TIME_ON_MS = 15
TIME_OFF_MS = 6
TIME_ON_MS = 30
TIME_OFF_MS = 0

# Ch1 B-E
Ib = [50e-6, 100e-6, 150e-6, 200e-6, 250e-6, 300e-6, 350e-6, 400e-6]
Expand Down
2 changes: 1 addition & 1 deletion scripts/transfer-curve (NPN).py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Ch1 B-E
Ib = 3E-3
Ube_min = 0.0
Ube_max = 1.0
Ube_max = 1.2
NUM_U_BE_STEPS = 400

# Ch2 C-E
Expand Down

0 comments on commit 8bfe5da

Please sign in to comment.