Files
ncs/script/tutorial/05_RelativeScan.py
boccioli_m 79e9aac763 Startup
2015-09-02 10:39:31 +02:00

12 lines
370 B
Python

"""
Demonstrate use of Relative Line Scan.
The arguments start and end are relative to the current position.
After the scan the positioner(s) move back to the initial position.
"""
print "Initial position = " + str(m1.position)
a= lscan(m1, (ai1,ai2,wf1,im1), start = -2, end =2, steps = 20, relative = True)
print "Final position = " + str(m1.position)