esrf

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

ATTFACTOR.MAC
See other macros in category: All
Description:
    %B%attfactor.mac%B% - monochromatic beam attenuators
Documentation:
    DESCRIPTION
    Additional macros to calculate the attenuation factor as function of the attenuators or the attenuators to be set as function of the transmission.

    DEPENDENCIES
    matt.mac, CalcServer.py, AttMonoSetup.py, percent.arr

Macros:
    transmission_setup
    Usage: transmission_setup [device_name]
    Set the calculation server device_name

    transmission
    Usage: transmission [trm_factor]
    Set the attenuators as function of the current energy [keV] and the transmission factor trm_factor [percent].

    calc_attenuation
    Usage: calc_attenuation [trm]
    Calculate which attenuators to be set as function of the current energy [keV] and the transmission trm [percent]. Print the attenuators to be set.

    calc_transmission
    Usage: calc_transmission [matt_state]
    Calculate the transmission factor as function of the current energy [keV] and the attenuators matt_state set.

Internal Macros:
    attio
    Usage: attio [filterno]
    Set the filterno filter in and calculate the new transmission factor.

    calc_att
    Usage: calc_att (nrj, trm)
    Calculate which attenuators to be set as function of the energy nrj [keV] and the transmission trm [percent]. Return the number to be used by the mattset macro.

    calc_transm
    Usage: calc_transm (nrj,matt_state)
    Calculate the transmission as function of the energy nrj [keV] and the attenuators matt_state set. Return the attenuation factor if susess, -1 if error.

Filename: transmission.mac
Author: A.Beteva, BLISS
$Revision: 1.1 $,$Date: 2006/04/11 07:04:27 $
Last mod.: 11/04/2006 09:04 by guijarro