Script execution
This commit is contained in:
@@ -7,11 +7,11 @@ set analyser parameters (fixed mode) separately!
|
||||
|
||||
import math
|
||||
|
||||
RANGE_Z = (114.6, 115.6)
|
||||
RANGE_Z = (114.9, 115.9)
|
||||
# actual number of positions will be +1!
|
||||
STEPS_Z = 10
|
||||
|
||||
RANGE_Y = (-1., 1.)
|
||||
RANGE_Y = (-1.5, 1.5)
|
||||
# speed = distance_per_point / (dwell_time + 0.1)
|
||||
# minimum 0.01, maximum 0.125 mm/s
|
||||
SPEED_Y = 0.125
|
||||
@@ -55,13 +55,14 @@ def before_pass(index, scan):
|
||||
print "z = ", z
|
||||
ManipulatorZ.waitValueInRange(z, 1.0, 100)
|
||||
|
||||
|
||||
DIAGS = [ManipulatorZ]
|
||||
|
||||
try:
|
||||
#cscan(dMOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_read=before_readout, after_read = after_readout, before_pass = before_pass, check_positions = False)
|
||||
|
||||
Scienta.setGrabMode(Scienta.getGrabMode().Continuous)
|
||||
Scienta.start()
|
||||
cscan(MOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_pass=before_pass, check_positions=False)
|
||||
cscan(MOTORS, SENSORS, RANGE_Y[0], RANGE_Y[1], STEPS_Y, time=fly_time, passes=len(positions_z), zigzag=ZIGZAG, before_pass=before_pass, check_positions=False, diags=DIAGS)
|
||||
Scienta.stop()
|
||||
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user