Scans a device over a given range to find device position at which maximum intensity is reached. If a peak is found, a fit can be done, and the zero of the scanning motor will be reset appropriately. APD command uses counts coming in to scaler or detector specified.
Usage: APD [Detector],[Motor],[Range],[Step size],[Counts],[Tolerance],[Max iteration]
[Detector] specifies detector used to measure intensity at each device position.
[Motor] is an integer that specifies the motor selected for the scan.
[Range] is the device range centered at current device position.
[Step size] is the length between two adjacent device positions in the scan. The number of points in the scan will be set to [Range]/[Step size].
[Counts] specifies the number of monitor counts (if [Counts] is greater than zero) or the number of seconds (if [Counts] is less than zero) till which count is performed at every device position.
[Tolerance] specifies tolerance of the selected motor. (Optional)
[Max iteration] specifies the maximum number of iterations. (Optional)