diff --git a/devices/RefocusYTrans.properties b/devices/RefocusYTrans.properties new file mode 100644 index 00000000..135edd91 --- /dev/null +++ b/devices/RefocusYTrans.properties @@ -0,0 +1,8 @@ +#Fri Sep 09 18:09:02 CEST 2016 +maxValue=9.36 +minValue=9.36 +offset=0.0 +precision=9 +resolution=NaN +scale=1.0 +unit=9.360 diff --git a/devices/RefocusZTrans.properties b/devices/RefocusZTrans.properties new file mode 100644 index 00000000..3a09f2a1 --- /dev/null +++ b/devices/RefocusZTrans.properties @@ -0,0 +1,8 @@ +#Fri Sep 09 18:09:02 CEST 2016 +maxValue=0.0 +minValue=0.0 +offset=0.0 +precision=0 +resolution=NaN +scale=1.0 +unit=0.000 diff --git a/script/RefocusYManipulatorZScan.py b/script/RefocusYManipulatorZScan.py new file mode 100644 index 00000000..649b5b81 --- /dev/null +++ b/script/RefocusYManipulatorZScan.py @@ -0,0 +1,38 @@ +""" +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() + +def trig_sensors(): + wait_beam() + trig_scienta() + caput("X03DA-OP-10ADC:TRG.PROC", 1) + +try: + lscan(MOTOR, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=trig_sensors, after_read = after_readout) +finally: + if ENDSCAN: + after_scan()