Script execution

This commit is contained in:
x03daop
2016-08-01 17:09:58 +02:00
parent df863425d8
commit a7441ea4bc

29
script/RefocusYRotScan.py Normal file
View File

@@ -0,0 +1,29 @@
"""
Refocusing mirror Ry scan
set scan parameters below, move the mirror to the center position.
set analyser parameters separately!
"""
import math
# adjust the following parameters
DISTANCE = 0.2
STEPS = 20
LATENCY = 0.5
ENDSCAN = True
MOTOR = (RefocusYRot)
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
STARTPOS = (-DISTANCE / 2.0)
ENDPOS = (DISTANCE / 2.0)
RELATIVE = True
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()