Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
WAGOCTAUX.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
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:
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: | ||||||
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. | ||||||
|