The optimization of motor positions by searching the maximum intensity is supported by a menu.
ONLINE>
SCAN/CEN*
TER
[/M1=motor_name]
[/M2=motor_name]
[/M3=motor_name]
[/M4=motor_name]
The following qualifiers may be supplied by the user:
/COA* RSE
There is no refinement of the scan range. |
/EXEC* UTE
The centering starts immediately. Control is not passed to the menu driver. |
/NODIS* PLAY
Suppresses any graphical output. Most likely this is used in the /EXEC mode. |
/NOBA* CKGROUND_SUBTRACTION
Suppresses the subtraction of the background during the determination of the peak. |
/_AUTO_FILTER=1_or_0 |
/_CENTERING_M* ODE=int_expr |
/_CENTERING_ORDER=text_expr |
/_NP_SCAN=int_expr The number of scan points. |
/_RANGE_M![]() |
/_SCAN_NAME=val (Def.: CENTER_)
The initial values of the scan parameters.
|
The command
ONLINE>
scan/center/m1=mot1/m2=mot2
invokes a menu, that is displayed below (table 7.7).
Here is the description of the menu items:
The description of the PF keys:
PF1
Start centering: ONLINE performs scans to find the maximum intensity. The order in which the motors are moved is determined by the symbol CENTERING_ORDER.
Every motor undergoes a coarse scan first. The coarse scan is used
to determine the scan range (2 If the signal does not go down to half of the maximum. ONLINE informs the user that it is not able to determine the width:" FIND_MAX failed to determine the new width, continue? ". In case the user responds with "Y", the range is doubled and the program continues. Otherwise an error is generated which causes the centering routine to terminate. The maximum of a scan is found be calculating the center of gravity, the midpoint or by taking the highest y-value. If the scans pass the convergence test, the program terminates. Otherwise the fine scans are repeated ITERATIONS times. |
PF4 (Ctrl-X)
Exit this menu. |
KP7
M1 Scan |
KP9
M2 Scan |
KP_MINUS
M3 Scan |
KP5
M4 Scan |
The function gra_status() returns the completion status of the centering routine. It is 0, if the centering algorithm failed or if the user interrupted the routine.
In the non-automatic mode the user is asked for confirmation before the scan range is doubled.
Figure 7.1 displays the graphical output that is produced during scan/cent.