esrf

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

LTSCAN.MAC
See other macros in category: Scans
Description:
    Macros for lookup scan
Documentation:
    DESCRIPTION
    Those macros provide users a lookup scan posibility on n motors

    OVERVIEW
    There is two external macro :

    ltinit :
    initilise global variable for each motor
    ltscan :
    start scan on motor


    SETUP
    ltinit mot1 mot2...motn
    It initialise global variable LT_START,LT_STOP,LT_LINE and one array for each motors motname_ltscan_arr.
    Global variable description:
    LT_START
    is a long array which index line start position in the motors array
    LT_STOP
    is a long array which index line stop position in the motors array
    LT_LINE
    the number of line in the scan sizeof(LT_STOP|LT_START) or less
    <motorname>_ltscan_arr
    is a motor float array position
    ltscan mot1 mot2...motn ctime
    start scan on motors : mot1 mot2... motn. Count time is given by ctime,which if positive, specifies seconds and if negative, specifies monitor counts.

    EXAMPLE
    ltscan samy samz 0.5 with this global : LT_START = [0,4] LT_STOP = [3,6] LT_LINE = 2 samy_lscan_arr = [0,1,2,3,4,5,6,7] samz_ltscan_arr = [7,6,5,4,3,2,1,0] this will scan 2 lines; first 0..3 is [(0,7), (1,6), (2,5), (3,4)] and the second 4..6 is [(4,3), (5,2), (6,1), (7,0)]


Macros:
    ltscan
    Usage: ltscan <motor1> .. <motorn> <ctime>


    ltinit
    Usage: ltinit <mot1> ... <motN>


    ltscan_test
    Usage: ltscan_test <parma>


Internal Macros:
    _ltscan
    Usage: _ltscan <parma>


    _ltscanonepoint
    Usage: _ltscanonepoint <parma>
    Called in _ltscan via _ltscan_core

    _ltinit
    Usage: _ltinit <parma>


    ltinit_datacol
    Usage: ltinit_datacol <parma>


    _ltDataCol
    Usage: _ltDataCol <parma>


Filename: ltscan.mac
Author:
Last mod.: 16/09/2014 14:07 by witsch