From 18b1a4db5f3d71036ae13d4026759dd64f42f9dd Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Tue, 30 Jan 2018 17:46:12 +0100 Subject: [PATCH] Script execution --- script/optics/ExitSlitYScanKei.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/optics/ExitSlitYScanKei.py b/script/optics/ExitSlitYScanKei.py index 8d5fd78b..85eca0b4 100644 --- a/script/optics/ExitSlitYScanKei.py +++ b/script/optics/ExitSlitYScanKei.py @@ -12,6 +12,7 @@ SENSORS = (Keithley1, Keithley2, MachineCurrent) STARTPOS = (-0.5) ENDPOS = (1.0) STEPS = 0.01 +NSTEPS = round((ENDPOS - STARTPOS) / STEPS) + 1 LATENCY = 0.1 DWELL = 1.0 @@ -21,13 +22,13 @@ KEI_RMU = "X03DA-KEITHLEY-2:" caput(KEI_DIODE + "READSCAN.SCAN", 0) caput(KEI_DIODE + "NPLC", 1) caput(KEI_DIODE + "NAVG", DWELL / 0.02) -caput(KEI_DIODE + "TCOUNT", 1) +caput(KEI_DIODE + "TCOUNT", NSTEPS) caput(KEI_DIODE + "RANGE", 6) # 200 nA caput(KEI_RMU + "READSCAN.SCAN", 0) caput(KEI_RMU + "NPLC", 1) caput(KEI_RMU + "NAVG", DWELL / 0.02) -caput(KEI_RMU + "TCOUNT", 1) +caput(KEI_RMU + "TCOUNT", NSTEPS) caput(KEI_RMU + "RANGE", 8) # 2 nA def trig():