20 lines
590 B
Python
Executable File
20 lines
590 B
Python
Executable File
#ascan ([manip_x,manip_y],machine_cur, [-950,900], [-960,910], [5.0,5.0], latency=1.0,zigzag=True, save=False)
|
|
|
|
RANGE_V = [-2000, 2000]
|
|
RANGE_H = [-2000, 2000]
|
|
STEP_V = 500.0
|
|
STEP_H = 500.0
|
|
SETTLING_TIME = 1.0
|
|
|
|
#We start at 0,0 absolute position
|
|
tilt_vertical.initialize()
|
|
tilt_horizontal.initialize()
|
|
|
|
try:
|
|
ascan ( [tilt_horizontal, tilt_vertical], machine_cur, \
|
|
[RANGE_H[0], RANGE_V[0]], [RANGE_H[1], RANGE_V[1]], [float(STEP_H), float(STEP_V)], \
|
|
latency=SETTLING_TIME,zigzag=True, save=True)
|
|
|
|
finally:
|
|
tilt_vertical.write(0)
|
|
tilt_horizontal.write(0) |