The calc command calculates motor positions for a given h,k,l,e,ei,ef
(or vice-versa).
The syntax for the calc command is:
calc motor_1 value1 motor_2 value2 ...
where motor_n can be either a physical motor or a Q,E value. If
Q,E values are given, the physical motor positions are calculated and if
physical motors are given, the resulting Q-E positions (if any) are
given.
The functionality of the calc command can be
accessed through the GUI by selecting the Angle Utilities
tab from the Sample top-level tab. NOTE that the buttons in the tab DO NOT issue
calc command but rather operate directly. This is incorporated so
that the user can perform calculations while other commands are running.
The available features on this tab are:
1. Calculate
motor positions for above Q-E position: type in the h,k,l, and
energy transfer and the resulting angles are given below the button.
2. Calculate Q
of above motor positions: type in the positions of
m2,a1,s2,s1,sgl.sgu and the resulting Q-E positions will be given in the
top h,k,l,Energy indicators.
3. Drive to
the above (h,k,l,E): this button will drive the motors to
the h,k,l,Energy specified above. 4. Calculate -->:
this button takes the observed sample scattering angle (s2) and
calculates the resulting d-spacing and Q. This calculation uses
the energy that is stored for both ei and ef. For instance, if you
are working in fixed ef mode with a fixed ef value of 14.7 meV then this
energy is used in the calculation.
5. Calculate
angle between two (h,k,l) positions: this button take the (h,k,l)
indices for 2 reflections and calculates the angle between these two
positions. This (in conjunction with 6. below) is useful when 2
reflections have been measured but the indices are unknown.
6. Calculate
angle between two Q's with above motor positions: this button
take 2 sets of (s2,s1,sgl,sgu) motor positions and calculate the angle
between them. This is useful (in conjunction with 5. above) when 2
reflections have been measured but the indices are unknown.