SampleAutoScan_xy is a script to scan almost continuously (quite small step quickly) while XAS ans XES/RIXS measurement. This script does’t use sardana macro. it is possible to scan sample independently without conflict with running scripts, like XAS scan, RIXS map scan etc.
You can find script in a_branch_SampleAutoScan_xy_v1.py in pythonScript folder of veritas-user account on contron PCs.
Simply modify setting related to position like below in the script.
#Setting (edit here) x_start=73.7 #start posint x x_end=74.7 #stop point x x_step=0.05 #step x y_start=25.3 #start point y y_end=27.2 #stop point y y_step=0.002 #step y z_start=26.8 #start point z z_end=25.8 #end point z z_step= (z_end - z_start)/((x_end - x_start) / x_step) #print(z_step) scan_timer=0.5 #it will try to scan each 0.5 second
and run from command line as follows
python a_SampleAutoScan_xy.py
The script will as start scan from the start point or the current position. so please input s or r and press enter, and it will start scanning. to stop scnanning, press control+c in the commnad line terminal.
Vertitas Sample Auto Scan script Start scannning from s:start point or r:restart scan from current position? [s/r]