esrf

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

MXOSCSCAN.MAC
See other macros in category: MX
Description:
    %B%mxoscscan.mac%B% - Do different type of "spec" scans with an oscillation for each point
Documentation:
    DESCRIPTION


    DEPENDENCIES


Macros:
    mx_oscscan_setup
    Usage: mx_oscscan_setup ()
    Set the scan motors default names. If differen, use mx_oscscan_localmot macro hook. Return 0 if OK, -1 if any of the motors is not configured in SPEC.

Internal Macros:
    mx_oscscan_save
    Usage: mx_oscscan_save ()
    Save current motor positions. Return -1 if no motors set 0 if OK.

    mx_oscscan_restore
    Usage: mx_oscscan_restore ()
    Restore previously saved motor positions and move the motors to them. Return -1 if no motors set 0 if OK.

    mx_oscscan_prepare
    Usage: mx_oscscan_prepare ()
    What is to be done before each scan - save the motor positions open the safety shutter, close the fast shutter, prepare the detector, set the acquisition flag on.

    mx_oscscan_finish
    Usage: mx_oscscan_finish ()
    What is to be done after each scan - set the acquisition flag off, close the fast shutter, close the safety shutter, move the motorts to their before the scan position.

    local_deton
    Usage: local_deton
    Set the acquisition flag on.

    local_detoff
    Usage: local_detoff
    Set the acquisition flag off.

    _mx_oscscan_cleanup
    Usage: _mx_oscscan_cleanup
    Actions taken if ^C pressed.

    mx_oscscan_a2scan
    Usage: mx_oscscan_a2scan
    Do a2scan with scan parameters coming from the GUI. Set the dark current flag if needed. Prepare the acquisition. Do required actions after the scan.

    mx_oscscan_mesh
    Usage: mx_oscscan_mesh
    Do mesh with scan parameters coming from the GUI. Set the dark current flag if needed. Prepare the acquisition. Do required actions after the scan.

    mx_oscscan_ltscan
    Usage: mx_oscscan_ltscan
    Do ltscan with scan parameters coming from the GUI. Set the dark current flag if needed. Prepare the acquisition. Do required actions after the scan.

    _mxdetstart
    Usage: _mxdetstart
    For each scan point: set the file and the collection parameters, start the detector acquisition; do an oscillation for 1 degree, 1 pass, starting from the phi current position and the scan counting time.

    _mxdetread
    Usage: _mxdetread
    For each scan point: read the detector, save the data. Flush the detector at the end of the scan.

    mx_oscscan_collectpars
    Usage: mx_oscscan_collectpars ()
    Generate acquisition file with the parameters from the GUI and oscilation parametsrs 1 degree, 1 pass, starting from the phi current position.

    id29_adsc_prepare
    Usage: id29_adsc_prepare ()
    Actions to be executed with the microdiff and the ADSC Q315 detector to prepare the acquisition.

    id232_mccd_prepare
    Usage: id232_mccd_prepare()
    Actions to be executed with the minidiff and the MAR555 detector to prepare the acquisition.

    tstccdfile
    Usage: tstccdfile(cpars,frame)


    jpeg_files
    Usage: jpeg_files()


Filename: mxoscscan.mac
Author: BLISS
$Revision: 1.1 $ $Date: 2010/07/01 12:48:47 $
Last mod.: 01/07/2010 14:48 by beteva