39 lines
833 B
Python
39 lines
833 B
Python
"""
|
|
front end calibration scans
|
|
|
|
keithley 1: diode
|
|
keithley 2: RMU
|
|
set keithley manually to "poll curr medi"
|
|
"""
|
|
|
|
import time
|
|
|
|
SENSORS = (RefCurrent,SampleCurrent)
|
|
STARTPOS = (-1.5)
|
|
ENDPOS = (+1.5)
|
|
STEPS = 0.02
|
|
LATENCY = 0.5
|
|
DWELL = 0.1
|
|
FLY_TIME = 120.
|
|
|
|
def my_before_readout():
|
|
wait_beam()
|
|
time.sleep(DWELL)
|
|
|
|
|
|
STARTPOS = (-5.0)
|
|
ENDPOS = (+5.0)
|
|
STEPS = 0.1
|
|
|
|
POSITIONERS = (FrontendBladeRing)
|
|
FrontendBladeRing.write(STARTPOS)
|
|
FrontendBladeWall.write(-5.0)
|
|
time.sleep(5.0)
|
|
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=my_before_readout, after_read=after_readout)
|
|
|
|
POSITIONERS = (FrontendBladeWall)
|
|
FrontendBladeWall.write(STARTPOS)
|
|
FrontendBladeRing.write(+5.0)
|
|
time.sleep(5.0)
|
|
lscan(POSITIONERS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, before_read=my_before_readout, after_read=after_readout)
|