34 lines
794 B
Python
34 lines
794 B
Python
"""
|
|
Scan refocusing mirror ROZ and manipulator X in parallel (to find analyser focus).
|
|
Beam stays on same spot on the sample.
|
|
|
|
set scan parameters below.
|
|
set analyser parameters separately!
|
|
move manipulator and mirror to center position before start!
|
|
"""
|
|
|
|
import math
|
|
|
|
# adjust the following parameters
|
|
STEPS = 25
|
|
LATENCY = 0.0
|
|
ENDSCAN = False
|
|
|
|
# do not edit below
|
|
|
|
MOTOR = (RefocusZRot, ManipulatorZ)
|
|
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
|
|
|
|
STARTPOS = (-2.000, 114.9)
|
|
ENDPOS = (-1.259, 115.1)
|
|
RELATIVE = False
|
|
|
|
adjust_sensors()
|
|
set_adc_averaging()
|
|
|
|
try:
|
|
lscan(MOTOR, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|