esrf

Beamline Instrument Software Support
SPEC Macro documentation: [ Macro Index | BCU Home ]

cenpiccurs.mac
See other macros in category: Scans
Description:
    Move all of last scan's motors to peak or center of previous scan.
Documentation:
    DESCRIPTION
    Move motors of last scan to peak. Should work for multi motor scans.
    In case multiple counters are used for plotting, the last one defined by plotselect will be used, not the first one on the line!

Macros:
    cen
    Usage: cen %DESC% Move motor(s) to last scan`s center between half height points.


    pcen
    Usage: pcen %DESC% print motor(`s) position(s) of last scan`s center between half height points.


    _pic
    Usage: _pic %DESC% Moves motors of last scan to peak.


    _calc_cen
    Usage: _calc_cen %DESC% return motor position(s) of last scan`s center between half height points.


    wcen
    Usage: wcen %DESC% Draws a line in the plot of the last (motor) scan at the actual position.


    _curs
    Usage: _curs
    Draws a little red cursor and allow user to move it with + or - keys.

    _diff
    Usage: _diff Differentiate currently plotted data
    (Friedrich Schotte)


    _min
    Usage: _min %DESC% Moves motors of last scan to minimum.


    _cofm
    Usage: _cofm %DESC% Moves motors of last scan to center of mass.


    wcofm
    Usage: wcofm %DESC% CALCULATES BUT NOT MOVE to last scan center of mass.


    wmin
    Usage: wmin %DESC% Shows position of last scan minimum.


Internal Macros:
    pic
    Usage: pic


    curs
    Usage: curs


    diff
    Usage: diff


    invert
    Usage: invert


    uninvert
    Usage: uninvert


    cpc_init
    Usage: cpc_init()


    cpc_restore
    Usage: cpc_restore()


    neg
    Usage: neg


    cenneg
    Usage: cenneg


    _plot_line
    Usage: _plot_line (x, y1, y2)
    Draw a vertical red line from (x,y1) to (x,y2).

    cpc_plot
    Usage: cpc_plot()


    cpc_zap_init
    Usage: cpc_zap_init


    cpc_zap_restore
    Usage: cpc_zap_restore


    _invert
    Usage: _invert


    undiff
    Usage: undiff


    cpc_test
    Usage: cpc_test


    cpc_info
    Usage: cpc_info


    min
    Usage: min


    cofm
    Usage: cofm


Filename: cenpiccurs.mac
Author: H. Witsch, based on the work of L. Claustre, BLISS (C.G:ugly zap version) and D. Wermeille
$Revision: 1.34 $
Last mod.: 17/04/2023 14:01 by witsch