""" Refocusing mirror TRY axis scan set scan parameters below, move the mirror to the center position. set analyser parameters separately! """ import math STEPS = 0.02 LATENCY = 0.0 ENDSCAN = False MOTORS = ('ca://X03DA-OP-RMU:TRY') SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) STARTPOS = (8.5) ENDPOS = (9.5) 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()