31 lines
1.2 KiB
Python
Executable File
31 lines
1.2 KiB
Python
Executable File
###################################################################################################
|
|
# Demonstrate the use of Region Scan: one positioner move linearly in multiple regions.
|
|
###################################################################################################
|
|
|
|
|
|
passes = 2
|
|
zigzag = True
|
|
|
|
#Execute the scan: 3 regions with different number of steps
|
|
r1 = rscan(out, (sin,inp) , [(0,5,5), (10,15,20), (20,25,5)] , 0.01, passes = passes, zigzag = zigzag)
|
|
|
|
#Execute the scan: 3 regions with different step size
|
|
r2 = rscan(out, (sin,inp) , [(0,5,1.0), (10,15,0.2), (20,25,1.0)] , 0.01, passes = passes, zigzag = zigzag)
|
|
|
|
|
|
vector = [ 1, 3, 5, 10, 25, 40, 45, 47, 49]
|
|
|
|
|
|
r1 = vscan(out,(sin,inp),vector,False, 0.123, passes = passes, zigzag = zigzag)
|
|
|
|
|
|
|
|
#2D vector scan, plot to 2D Vector tab
|
|
vector = [ [1,1] , [1,2] , [1,3] , [1,4] ,
|
|
[1.5,2.5] ,
|
|
[2,1] , [2,2] , [2,3] , [2,4] ,
|
|
[2.5,2.5] ,
|
|
[3,1] , [3,2] , [3,3] , [3,4] ]
|
|
|
|
r2 = vscan((out,testd),(sin,inp),vector,False, 0.123, passes = passes, zigzag = zigzag)
|