esrf

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

gauge.mac
See other macros in category: Vacuum
Description:
    Macros to get a penning reading as counter in spec.
Documentation:
    DESCRIPTION
    Very simple macro set to get the reading of a penning gauge as a counter in spec

    This macro set oversedes the macro set balzer.mac

    Two options to configure them:
    1/ as macro counter
    * create a macro counter controller.
    * set the number of channels to what you need
    * set the prefix as "gauge"
    * add counters in the scaler window with controller MAC_CNT
    * set unit as appropiate
    * in the additional parameter window (type "p" when
    you are over the counter line) add a parameter
    called device with the right value

    2/ as old style pseudo counter
    * define counters in the scaler window with controller
    as NONE
    * add lines like "gaugeadd mne devname" in setup


Macros:
    gaugeadd
    Usage: gaugeadd ctmne devname
    Setup counter ctmne to accept pressure reading from device devname The counter needs to be defined in config If the line is configure in setup file, just taking the line away or commenting it out will deactivate the counter

    gaugeon
    Usage: gaugeon
    Activates reading on all gauges defined in setup with gaugeadd

    gaugeoff
    Usage: gaugeoff
    Deactivates reading on all gauges defined in setup with gaugeadd

Internal Macros:
    gauge_getcounts
    Usage: gauge_getcounts


    gauge_unsetup
    Usage: gauge_unsetup


    gauge_config
    Usage: gauge_config( mne, type, unit, mod, chan)
    Checks that a device name has been set for each counter after reconfig Otherwise sets the counter as unusable

    gauge_cmd
    Usage: gauge_cmd( mne, key, p1, p2, unit )
    Read pressure value

Filename: gauge.mac
Author: V.Rey / BLISS / ESRF - Feb 2008
C.Guilloud / BLISS / ESRF - Feb 2012 for tango version
Last mod.: 15/03/2012 18:31 by guilloud