The macro mvsa moves a motor to a peak position. The position is determined by analysing the most recent .fio file.
Syntax: mvsa <mode> <interactiveFlag> -> <result> Reads the most recent output file and moves a motor to the maximum of the column defined by SignalCounter. Used environment variables: ScanDir, ScanFile, ScanID -> file name ScanHistory -> motor name and scan type, supported: ascan, a2scan, a3scan, dscan, d2scan, d3scan, hscan, kscan, lscan, hklscan SignalCounter -> counter name 'mvsa show' shows the results, no move Parameters: mode : (String) Options: 'show','peak','cms','cen','dip','dipm', 'dipc','slit', 'slitm', 'slitc', 'step','stepm' and 'stepc' interactiveFlag : (Integer) '1' query before move (def.) Result: result : (String) 'status=False' or 'status=True,mot1=12,...' Source: /pyshared/sardana/sardana-macros/DESY_general/mvsa.py