mvsa: move-scan-analysis

The macro mvsa moves a motor to a peak position. The position is determined by analysing the most recent .fio file. Notice that the results of the fastscananalysis can also be made available as a dictionary, see 6.5.2.

 
p09/door/haso107tk.01 [4]: mvsa?
Docstring:
Syntax:
        mvsa <mode> <interactiveFlag> -> <result>

   
    Moves a motor to the maximum of the column defined by SignalCounter.
    Data are fetched from SardanaMonitor, if it is running on the local host.
    Otherwise the most recent .fio output file is read.
    
    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', 'stepc', 'stepssa' and '*ssa' in general
        interactiveFlag : (Integer)  '1' query before move (def.) 

Result:
        result : (String) 'status=False' or 'status=True,mot1=12,...'



Subsections