From d60cb2f3ef81c2603e08430df8ef4ead1c6018b4 Mon Sep 17 00:00:00 2001 From: x03daop Date: Tue, 2 Aug 2016 11:19:14 +0200 Subject: [PATCH] Script execution --- script/RefocusManipulatorScan.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/script/RefocusManipulatorScan.py b/script/RefocusManipulatorScan.py index 9d648dba..8851b76c 100644 --- a/script/RefocusManipulatorScan.py +++ b/script/RefocusManipulatorScan.py @@ -1,5 +1,6 @@ """ -Parallel refocusing mirror RY and manipulator X scan (to find analyser focus) +Scan refocusing mirror RY 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! @@ -9,20 +10,19 @@ move manipulator and mirror to center position before start! import math # adjust the following parameters -DISTANCE = 0.8 # mrad (Ry) +DISTANCE_Ry = 0.8 # mrad (Ry) SLOPE = -2.000 # mm/mrad (DX / DRy) STEPS = 40 LATENCY = 0.5 ENDSCAN = False # do not edit below -DISTANCE_X = DISTANCE * math.cos(math.radians(ANGLE)) -DISTANCE_Y = DISTANCE * math.sin(math.radians(ANGLE)) +DISTANCE_X = DISTANCE_Ry * SLOPE -MOTOR = (ManipulatorX, ManipulatorY) +MOTOR = (RefocusYRot, ManipulatorX) SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution) -STARTPOS = (-DISTANCE_X / 2.0, -DISTANCE_Y / 2.0) -ENDPOS = (DISTANCE_X / 2.0, DISTANCE_Y / 2.0) +STARTPOS = (-DISTANCE_Ry / 2.0, -DISTANCE_X / 2.0) +ENDPOS = (DISTANCE_Ry / 2.0, DISTANCE_X / 2.0) RELATIVE = True adjust_sensors()