Script execution

This commit is contained in:
gac-x03da
2019-08-12 15:21:56 +02:00
parent c66c7f709a
commit 8f901af99a

View File

@@ -22,10 +22,10 @@ scienta_time = (time2 - time1)
print "scienta time: ", scienta_time
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent)
MOTORS = (ManipulatorY)
MOTORS = ManipulatorY
RANGE = (-5., +5.)
STEP = 0.2
MOTORS[0].move(0.)
MOTORS.move(0.)
# time for one scan in seconds
SPEED = STEP / scienta_time
@@ -46,13 +46,13 @@ lo_edge = min(sample_positions)
hi_edge = max(sample_positions)
print "low and high edge: ", lo_edge, ", ", hi_edge
MOTORS[0].move(lo_edge)
MOTORS.move(lo_edge)
RANGE = (-0.4, +0.4)
STEP = 0.01
result = cscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, time=fly_time, before_read=before_readout, after_read = after_readout, check_positions = False)
MOTORS[0].move(hi_edge)
MOTORS.move(hi_edge)
RANGE = (-0.4, +0.4)
STEP = 0.01
result = cscan(MOTORS, SENSORS, RANGE[0], RANGE[1], STEPS, time=fly_time, before_read=before_readout, after_read = after_readout, check_positions = False)