esrf

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

WAGOCTAUX.MAC
See other macros in category: All
Description:
    %B%wagoctaux.mac%B% - Auxilary macros to change gains and calibrate wago counters.
Documentation:
    DESCRIPTION
    B% - The counters are read from a Wago ADC, using the WagoCt device server. They are configured in SPEC as VCT6 counters only, with factor of 1000. The gains (if any) are connected to WAGO relay modules and are controlled using the same WagoCt device servers.

Macros:
    wagoaux_setup
    Usage: wagoaux_setup [ctmne gain_factor scale_factor offset]


    wcgain
    Usage: wcgain [ctmne gain]
    Set the gain (1-3) for a counter ctmne or show all gains if no parameter is given.

Internal Macros:
    wcsetgain
    Usage: wcsetgain (ctmne,gain)
    Set the gain value (1-3) for ctmne counter. Return 0 if OK, -1 if error setting.

    wcreadgain
    Usage: wcreadgain (ctmne)
    Return the gain (1-3) for ctmne counter, -1 if error reading.

    wc_photon_scale
    Usage: wc_photon_scale (ctmne,ctval)
    Return the counter ctmne value ctval calculated as photons.

    wcshowgain
    Usage: wcshowgain ()
    show all current gain values.

    setAutoGain
    Usage: setAutoGain (ctmne,ctval)
    Set autogain mode (0=no autogain, 1=autogain) for the ctmne counter. Return gain mode if OK, -1 if error.

    getAutoGain
    Usage: getAutoGain (ctmne)
    Get autogain mode (0=no autogain, 1=autogain, -1 if error) for the ctmne counter. With no ctmne, all the configured counters are read.

Filename: wagoctaux.mac
Author: A.Beteva $Revision: 1.2 $ $Date: 2013/08/19 12:07:00 $
Last mod.: 19/08/2013 14:07 by beteva