Script execution

This commit is contained in:
gac-x03da
2018-01-30 18:32:32 +01:00
parent 0bba7431f4
commit 5e3f4bfd4c
+10 -7
View File
@@ -20,8 +20,10 @@ KEI_DIODE = "X03DA-KEITHLEY-1:"
KEI_RMU = "X03DA-KEITHLEY-2:"
caput(KEI_DIODE + "DOSETDEFAULT", 1)
caput(KEI_RMU + "DOSETDEFAULT", 1)
time.sleep(1.0)
caput(KEI_DIODE + "DOSETADVANCED", 1)
caput(KEI_RMU + "DOSETADVANCED", 1)
time.sleep(1.0)
#caput(KEI_DIODE + "DATAFORMAT", 1)
@@ -40,14 +42,14 @@ time.sleep(0.1)
caput(KEI_DIODE + "NAVG", 5)
#caput(KEI_DIODE + "TCOUNT", 1)
caput(KEI_DIODE + "RANGE", 6) # 200 nA
time.sleep(1.0)
#caput(KEI_RMU + "READSCAN.SCAN", 0)
#caput(KEI_RMU + "NPLC", 1)
#caput(KEI_RMU + "NAVG", DWELL / 0.02)
caput(KEI_RMU + "NAVG", 5)
#caput(KEI_RMU + "TCOUNT", 1)
#caput(KEI_RMU + "RANGE", 8) # 2 nA
caput(KEI_RMU + "RANGE", 8) # 2 nA
time.sleep(1.0)
def trig():
wait_beam()
@@ -55,15 +57,16 @@ def trig():
#caput(KEI_DIODE + "DOREAD", 1)
#
caput(KEI_DIODE + "DOINIT", 1)
#caput(KEI_RMU + "DOINIT", 1)
caput(KEI_RMU + "DOINIT", 1)
time.sleep(0.1)
caput(KEI_DIODE + "DOTRIGGER", 1)
#caput(KEI_RMU + "DOTRIGGER", 1)
#time.sleep(DWELL * 2)
caput(KEI_RMU + "DOTRIGGER", 1)
time.sleep(DWELL * 1.1)
caput(KEI_DIODE + "DOFETCH", 1)
#caput(KEI_RMU + "DOFETCH", 1)
caput(KEI_RMU + "DOFETCH", 1)
try:
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
finally:
caput(KEI_DIODE + "DORESET", 1)
caput(KEI_RMU + "DORESET", 1)