Script execution
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user