Script execution

This commit is contained in:
gac-x03da
2019-05-01 11:13:35 +02:00
parent 975b947148
commit 0aa33d85ab

View File

@@ -10,9 +10,10 @@ POSITIONERS = (ExitSlitY)
SENSORS = (SampleCurrent,RefCurrent, MachineCurrent)
STARTPOS = (0.5)
ENDPOS = (-0.5)
STEPS = 1
#STEPS = -0.01
DWELL = 0.1
TOTAL_TIME = 50
STEPS = int(TOTAL_TIME / DWELL) + 1
def trig():
wait_beam()
@@ -25,4 +26,4 @@ def trig():
#set_adc_averaging(dwelltime=DWELL)
#set_exec_pars(compression=True, shuffle=True)
#lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
cscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, time=TOTAL_TIME, after_read=after_readout)
cscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, time=TOTAL_TIME, after_read=after_readout, check_positions = False)