Beamline Instrument Software Support |
|
SPEC Macro documentation:
[ Macro Index |
BCU Home ]
|
LIN2TH.MAC | ||||||
[ source code | installed at | configured at ] | ||||||
See other macros in category: Positioning | ||||||
Description:
| ||||||
Documentation:
A very simple macro set to define an angular 2th motor for a linear translation stage. The linear tth real motor and the tth angular pseudo motor can be moved and read by the user. The detector mounted on the translation stage is mecanically coupled to the source to keep the radial distance constant all the time. The calibration can be simply done with an energy dependent detector and the bragg law. You can not set the angular motor, but you have to set the values for the real motor (lin tth). EXAMPLE SETUP The linear tth motor must be configuered as a real motor. The angular tth motor must be configured with spec's configuration editor and its controller type set to NONE. ATTENTION DEPENDENCIES - The file lin2th has to be read in !done by: startup script (this file needs: pseudo.mac stchanges.mac) | ||||||
Macros:
Usage: tlsetup [distance det-sample] [tth-angle-mne] [tth-lin-mne] configures the lin tth motor. The radial distance is constant in this setup and given as the first parameter. tthlin = sin(tth)*distance | ||||||
Internal Macros: | ||||||
Usage: tl_getangles tl_moveall Usage: tl_moveall | ||||||
|