esrf

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

getbeam.mac
See other macros in category: All
Description:
    Macros for optics alignment
Documentation:
    DESCRIPTION
    Includes macros for pslit, sslit and slitbox alignment and mono calibration. Includes also a menu (getbeam) to select and run alignment procedures.

    DEPENDENCIES
    machinfo.mac getbeam_presets.mac monocalib.mac mirror_align.mac slitboxalign.mac

Macros:
    gb_setup
    Usage: gb_setup ()
    Set all the motors and counters. Check if exist. Return -1 if any error.

    getbeam
    Usage: getbeam
    Procedure to align the beam - primary slits, secondary slits. If all starts with calibrating the mono, then aligning the pslits and sslits.

    pslit_align
    Usage: pslit_align ()
    Align the primary slits to the centre of the beam. Return -1 if error.

    sslit_align
    Usage: sslit_align ()
    Align the secondary slits to the centre of the beam. Return -1 if error.

Internal Macros:
    gb_save_positions
    Usage: gb_save_positions ()
    Save position of pslits, sslits and slitbox

    gb_restore_positions
    Usage: gb_restore_positions (key)
    Restore all positions saved or a name set of it (key is set to pslit, sslit, slitbox )

    dark_current
    Usage: dark_current ()
    Procedure to take the dark current. Returns 0 if OK, -1 if error.

    getdark
    Usage: getdark (cnt,cttime,iter)
    Get the dark current of a cnt WAGO counter, for iter iterations.

    getdarkct
    Usage: getdarkct (cnt,cttime,iter)
    Get the dark current of a "VCT6 like" cnt counter, counting cttime, for iter iterations.

    gb_setfilters
    Usage: gb_setfilters (key)
    Move the detectors and filters motors to the predefined positions as function of the key word (pslit, sslit, empty, mono ...).

    gb_checkfilters
    Usage: gb_checkfilters (key)
    Check that detectors and filters motors are at predefined positions as function of the key word (pslit, sslit, empty...).

    gb_setslits
    Usage: gb_setslits (key)
    Set the primary and secondary slits predefined positions.

    slit_find_zero
    Usage: slit_find_zero (sfor,cnt)
    Find the min value position, using the cnt counter data and sfor treshold (e.g. sfor=0.5 gives the half height position).

    gb_pslit_cleanup
    Usage: gb_pslit_cleanup
    Primaty slits cleanup part.

    gb_monocalib_cleanup
    Usage: gb_monocalib_cleanup
    Monochromator calibration cleanup

    gb_sslit_cleanup
    Usage: gb_sslit_cleanup
    Secondary slits cleanup part.

Filename: getbeam.mac
Author: A.Beteva
$Revision: 2.0 $$Date: 2013/05/31 09:31:26 $
Last mod.: 31/05/2013 11:33 by beteva