34 lines
696 B
Python
34 lines
696 B
Python
"""
|
|
TEST: OTF scan for mono calibration
|
|
|
|
under development - does not run yet
|
|
|
|
tasks:
|
|
- find out positioner of beta angle and set up device (must be of motor class).
|
|
- load table of scan positions.
|
|
- add outer theta loop.
|
|
"""
|
|
|
|
MOTORS = (MonoBeta)
|
|
SENSORS = (SampleCurrent, RefCurrent, MachineCurrent)
|
|
STARTPOS = (beta1)
|
|
ENDPOS = (beta2)
|
|
TIME = 120.0 # seconds
|
|
STEPS = 1000
|
|
RELATIVE = False
|
|
ENDSCAN = False
|
|
|
|
adjust_sensors()
|
|
set_adc_averaging()
|
|
|
|
def trig_sensors():
|
|
caput("X03DA-OP-10ADC:TRG.PROC", 1)
|
|
|
|
try:
|
|
wait_beam()
|
|
cscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, time = TIME, relative = RELATIVE, before_read = trig_sensors)
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|
|
|