Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
ElementsServer.mac | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
Macros to interface with python element server SETUP If the python server is defined in the database, use elt_setup to setup device_name. Otherwise, the server is used with localhost and port number. | ||||||
Macros:
Usage: elt_setup <device_name> Set device_name for ElementsServer elt_checkserver Usage: elt_checkserver () Checks if ElementsServer is running elt_ID Usage: elt_ID (material) Return server ID for material elt_density Usage: elt_density (material) Return material density elt_crosssection Usage: elt_crosssection (material, energy) Return material cross-section at given energy elt_transmission Usage: elt_transmission (material, thickness, density, energy) Return material transmission thickness (mm) density (g/cm3) energy (kev) elt_calcdensity Usage: elt_calcdensity (material, thickness, transmission, energy) Calculates apparent density to fit given thickness/transmission/energy thickness (mm) energy (kev) elt_interpoledensity Usage: elt_interpoledensity (material, thickness, transm0, ene0m transm1, ene1, energy) Interpolates apparent density to fit given thickness/transmission/energy Return apparent density at given energy | ||||||
Internal Macros: | ||||||
Usage: elt_print_error | ||||||
|