Script execution

This commit is contained in:
gac-x03da
2018-08-16 18:00:27 +02:00
parent ac7e05e3c2
commit 507891b72f

View File

@@ -11,28 +11,28 @@ STARTPOS = (-1.5)
ENDPOS = (+1.5)
STEPS = 0.01
LATENCY = 1.0
DWELL = 1.0
DWELL = 0.1
KEI_RMU = "X03DA-KEITHLEY-2:"
caput(KEI_RMU + "DOSETDEFAULT", 1)
time.sleep(1.0)
caput(KEI_RMU + "DOSETADVANCED", 1)
time.sleep(1.0)
#caput(KEI_RMU + "DOSETDEFAULT", 1)
#time.sleep(1.0)
#caput(KEI_RMU + "DOSETADVANCED", 1)
#time.sleep(1.0)
caput(KEI_RMU + "READSCAN.SCAN", 0)
caput(KEI_RMU + "NPLC", 1)
caput(KEI_RMU + "NAVG", 5)
caput(KEI_RMU + "TCOUNT", 1)
caput(KEI_RMU + "RANGE", 6) # 200 nA
#caput(KEI_RMU + "READSCAN.SCAN", 0)
#caput(KEI_RMU + "NPLC", 1)
#caput(KEI_RMU + "NAVG", 5)
#caput(KEI_RMU + "TCOUNT", 1)
#caput(KEI_RMU + "RANGE", 6) # 200 nA
def trig():
wait_beam()
caput(KEI_RMU + "DOINIT", 1)
time.sleep(0.1)
caput(KEI_RMU + "DOTRIGGER", 1)
#caput(KEI_RMU + "DOINIT", 1)
#time.sleep(0.1)
#caput(KEI_RMU + "DOTRIGGER", 1)
time.sleep(DWELL * 1.1)
caput(KEI_RMU + "DOFETCH", 1)
#caput(KEI_RMU + "DOFETCH", 1)
FrontendHSize.write(2.0)
FrontendVSize.write(2.0)