Script execution
This commit is contained in:
38
script/PhotonFluxSpectrum.py
Normal file
38
script/PhotonFluxSpectrum.py
Normal file
@@ -0,0 +1,38 @@
|
||||
"""
|
||||
photon flux spectrum
|
||||
|
||||
SampleCurrent: diode
|
||||
RefCurrent: RMU
|
||||
AuxCurrent: not connected
|
||||
"""
|
||||
|
||||
import time
|
||||
|
||||
# G1200 1x1 reference sscan_2264 (elog:114)
|
||||
STARTPOS = (100)
|
||||
ENDPOS = (2000)
|
||||
STEPS = 25.0
|
||||
LATENCY = 1.0
|
||||
DWELL = 1.0
|
||||
|
||||
SampleCurrentGain.write("L, 10^8")
|
||||
RefCurrentGain.write("L, 10^9")
|
||||
AuxCurrentGain.write("L, 10^7")
|
||||
|
||||
FrontendHSize.write(1.5)
|
||||
FrontendVSize.write(1.4)
|
||||
ExitSlit.write(100.0)
|
||||
|
||||
def trig():
|
||||
wait_beam()
|
||||
caput("X03DA-OP-10ADC:TRG.PROC", 1)
|
||||
|
||||
value = DWELL * 10.0
|
||||
SampleCurrentAveraging.write(value)
|
||||
RefCurrentAveraging.write(value)
|
||||
AuxCurrentAveraging.write(value)
|
||||
|
||||
POSITIONERS = (Eph)
|
||||
SENSORS = (SampleCurrent, RefCurrent, AuxCurrent, MachineCurrent)
|
||||
|
||||
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=trig, after_read=after_readout)
|
||||
Reference in New Issue
Block a user