Script execution
This commit is contained in:
27
script/optics/RefocusTRYScan.py
Normal file
27
script/optics/RefocusTRYScan.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
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()
|
||||
Reference in New Issue
Block a user