Script execution

This commit is contained in:
gac-x03da
2023-08-12 12:44:28 +02:00
parent 9050d17864
commit 06b1682a0b

View File

@@ -12,7 +12,7 @@ set ANGLE = +60.0 to move the sample along the beam.
import math
# adjust the following parameters
DISTANCE = 15
DISTANCE = 10
ANGLE = -30.0 # move sample across beam
#ANGLE = +60.0 # move sample along beam
STEPS = 200
@@ -24,7 +24,8 @@ DISTANCE_X = DISTANCE * math.cos(math.radians(ANGLE))
DISTANCE_Y = DISTANCE * math.sin(math.radians(ANGLE))
MOTOR = (ManipulatorX, ManipulatorY)
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
#SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution)
SENSORS = (SampleCurrent, RefCurrent, MachineCurrent)
STARTPOS = (-DISTANCE_X / 2.0, -DISTANCE_Y / 2.0)
ENDPOS = (DISTANCE_X / 2.0, DISTANCE_Y / 2.0)
RELATIVE = True