Files
x03da/script/optics/FocusYRotScan.py
2019-08-09 11:30:16 +02:00

32 lines
707 B
Python

"""
Focusing mirror Ry scan
set scan parameters below, move the mirror to the center position.
set analyser parameters separately!
"""
import math
set_exec_pars(compression=True)
# adjust the following parameters
DISTANCE = 0.08
STEPS = 40
LATENCY = 0.5
ENDSCAN = False
MOTORS = [FocusYRot]
SENSORS = [SampleCurrent, RefCurrent, MachineCurrent, OpticsCameraCentroidX, OpticsCameraSigmaX, opps1img.getDataMatrix()]
STARTPOS = (-DISTANCE / 2.0)
ENDPOS = (DISTANCE / 2.0)
RELATIVE = True
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()