Running a peak scan

Brief Description

Running a peak scan

Example

findpeak A3 5 1 Monitor 5000 Detector -accept

This performs a peakscan around the current position of A3. It will scan 5 degrees in both directions with a step size of 1. At each point it will count for 5000 monitor counts and use the detector reading to determine the fit. The -accept option causes the instrument to drive to position of the calculated peak when the scan concludes.

findpeak A3 5 1 Time 5 Monitor –accept –t 0.1 –func POLY3

This performs a peakscan around the current position of A3. It will scan 5 degrees in both directions with a step size of 1. At each point it will count for 5 seconds and use the monitor reading to determine the fit. The -accept option causes the instrument to drive to position of the calculated peak when the scan concludes. The –t 0.1 option causes the software position of A3 to be set to its initial position before the scan, after A3 has been moved to the calculated peak. This affectively changes the zero of A3 so that it now measures the original software position while being at the peak position. The -func POLY3 causes the fitting function to be changed from the default Gaussian fit to a 3rd order polynomial fit.

findpeak A4 5 1 Time 5 Detector –bragg A3 -lattice 1

This will perform a theta-2theta scan and calcuate d-spacing using the fitted peak position.