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