esrf

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

LNA.MAC
See other macros in category: Other hardware
Description:
    Macros for operating and testing the LNA unit
Documentation:
    OVERVIEW
    An interactive macro lna can be used for device configuration and monitoring.
    More than one LNA unit can be operated through this macro set.

    EXAMPLE
    lnasetup ldet1 2 address=LNADET1
    Configures a LNA unit connected to the serial line #2 with address LNADET1 and assigns the name \"ldet1\" to it .
    lnasetup ldet2 id33/serlna/0 address=2
    Configures a LNA unit connected in the second position of a daisychain accesed by the ESRF device id33/serlna/0 and assigns the name \"ldet2\" to it .
    lna
    Starts the interactive test program with the default unit.


    DEPENDENCIES
    These macros make use of the following macro sets:
    • stlist.mac
    • isgdevice.mac
    • isg.mac


    SETUP
    A lnasetup macro must be included in the setup file for every LNA unit configured. Each unit is identified by its name that must be a unique isgdevice identifier.

Macros:
    lnasetup
    Usage: lnasetup <lna_name> <serline> [<parameter>=<value> ...]
    Configures a lna unit connected to <serline> with the name <lna_name>. The following optional parameters can be also set.
    • Valid parameters:
      address=<addr>
      This parameter allows to address a particular unit when the serial line is shared by several isgdevices in dasychain. If <addr> is a non-numerical value, it is treated as the isgdevice address set by the ADDR command and stored internally in the unit. On the other hand if <addr> is a numerical value it indicates the relative position of the module in the serial line chain starting from 0. If this parameter is not specified, spec looks for the first unit in the chain.


    lna
    Usage: lna [<device_name>]
    Macro that runs the interactive loop. lna refresh certain information on the screen and at the same time accepts commands from the standard input.


Internal Macros:
    _lnasetup
    Usage: _lnasetup(args)


    lnaunsetup
    Usage: lnaunsetup


    lna_setdefault
    Usage: lna_setdefault(isgname)


    lna_update
    Usage: lna_update


    lna_getstate
    Usage: lna_getstate(isgname)


    lna_prompt
    Usage: lna_prompt
    Displays the prompt on the screen. If the "update" flag is set also displays the board status.

    lna_show_comm
    Usage: lna_show_comm


    lna_process_comm
    Usage: lna_process_comm


Filename: lna.mac
Author: P.Fajardo, (Original 12/02). $Revision: 1.2 $ / $Date: 2008/07/17 15:14:56 $
Last mod.: 17/07/2008 17:15 by rey