30 lines
812 B
Python
30 lines
812 B
Python
"""
|
|
exit slit calibration scan
|
|
|
|
manual settings: photon energy 800 eV (G1200), FE = 1 x 1, ADC/Keithley averaging
|
|
|
|
set keithleys manuall to free run!
|
|
"""
|
|
|
|
POSITIONERS = (ExitSlitY)
|
|
SENSORS = (SampleCurrent,RefCurrent, MachineCurrent)
|
|
STARTPOS = (0.5)
|
|
ENDPOS = (-0.5)
|
|
STEPS = -0.001
|
|
LATENCY = 0.1
|
|
DWELL = 0.1
|
|
TOTAL_TIME = 50
|
|
|
|
def trig():
|
|
wait_beam()
|
|
#caput(KEI_RMU + "DOINIT", 1)
|
|
#time.sleep(0.1)
|
|
#caput(KEI_RMU + "DOTRIGGER", 1)
|
|
time.sleep(DWELL * 1.1)
|
|
#caput(KEI_RMU + "DOFETCH", 1)
|
|
|
|
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, before_read=trig, after_read=after_readout)
|