Files
x03da/script/optics/RefocusTRYScan.py
2023-04-26 15:53:57 +02:00

28 lines
609 B
Python

"""
Refocusing mirror TRY axis scan
set scan parameters below, move the mirror to the center position.
set analyser parameters separately!
"""
import math
STEPS = 0.1
LATENCY = 0.0
ENDSCAN = False
MOTORS = ('ca://X03DA-OP-RMU:TRY')
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
STARTPOS = (-50.)
ENDPOS = (-40.)
RELATIVE = False
adjust_sensors()
set_adc_averaging()
try:
lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()