Script execution

This commit is contained in:
gac-x03da
2018-01-30 18:26:28 +01:00
parent 6c5c68bbf8
commit ae81ec0658

View File

@@ -37,7 +37,7 @@ time.sleep(0.1)
#caput(KEI_DIODE + "READSCAN.SCAN", 0)
#caput(KEI_DIODE + "NPLC", 1)
caput(KEI_DIODE + "NAVG", 10)
caput(KEI_DIODE + "NAVG", 50)
#caput(KEI_DIODE + "TCOUNT", 1)
caput(KEI_DIODE + "RANGE", 6) # 200 nA
time.sleep(1.0)
@@ -63,6 +63,7 @@ def trig():
caput(KEI_DIODE + "DOFETCH", 1)
#caput(KEI_RMU + "DOFETCH", 1)
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
caput(KEI_DIODE + "DORESET", 1)
try:
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
finally:
caput(KEI_DIODE + "DORESET", 1)