Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
BLCAL.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: MX | ||||||
Description:
| ||||||
Documentation:
| ||||||
Macros:
Usage: flux_setup flux_counters_setup Usage: flux_counters_setup flux_do_calibration Usage: flux_do_calibration The calibration procedure. flux_counters_on Usage: flux_counters_on Deactivate the flux pseudo counters. flux_counters_off Usage: flux_counters_off Activate the flux pseudo counters. isnum Usage: isnum (variable) Return 1 if variable is a number, 0 otherwise. | ||||||
Internal Macros: | ||||||
Usage: flux_from_diode (diode_type) Get the flux from calculation of a calibrated diode. The diode_type is 3 (AL diode) or 4 (Mylar diode). flux_openshutters Usage: flux_openshutters Open the safety and fast shutters. flux_closeshutters Usage: flux_closeshutters Close the safety and fast shutters get_flux Usage: get_flux diode_type Get the flux procedure. The diode type is 3 (AL) or 4 (Mylar). flux_set_transmission Usage: flux_set_transmission (t) Set the transmission t. flux_scan_transmission Usage: flux_scan_transmission diode_type Get the flux for different transmissions (as defined in flux_setup). The diode_type is 3 (AL diode) or 4 (Mylar diode). flux_scan_energy Usage: flux_scan_energy do the calibration for different energies (as defined by flus_setup). flux_load_calibration Usage: flux_load_calibration Load the calibration values from a file. flux_get_calibration Usage: flux_get_calibration () return the calibration values for the i0 and i1 counters at the current energy. flux_counters_calculation Usage: flux_counters_calculation () Calculate the flux and update the flux pseudo counters. _interpol Usage: _interpol (arr, val) Do linear interpolation between two points of the array arr for the x value val. Return the y value, or -1 if value out of bounds. _findidx Usage: _findidx (val, arr, size) return the index of the closest to a value val element in the array arr of size size. | ||||||
|