WinSPA Help

Author: Dr. Peter Kury-Thien

Version 1.06

Last update: March 13th 2011

This is the help for WinSPA, a SPA-LEED software package for Microsoft Windows operating systems, implemented with Borland Delphi 2005 Personal Edition. The help is written in plain HTML (hypertext markup language) in order to make it compact, quickly loadable, platform-independent and easy to update.

Any comments, corrections and suggestions are welcome.


Content

  1. Some general remarks
  2. The basic scan modes
    1. The two-dimensional scan in reciprocal space
    2. The one-dimensional scan in reciprocal space
    3. The spot tracker with intensity logging
    4. The reciprocal space map (RSM)
    5. Combining basic scan modes to create complex measurement applications
  3. Advanced scan modes
    1. The real space scanning mode (SEM)
    2. The timeplot
    3. The I(V) scan
    4. The spot profile optimization window
  4. Maintenance and adjustment
    1. The software settings form
    2. The rate meter
    3. The voltage meters
    4. The k-space calibration
    5. The R-space calibration
    6. The stop watch
    7. The log file
  5. GUI elements that are similar in different scan forms
    1. The scaling group boxes
    2. The file settings group box
    3. The right-click menu
  6. Miscellaneous
    1. Standard operating procedures
    2. Graphic tools
    3. k-space calculator
    4. The help file
    5. The about window
  7. Information about the hardware
    1. The SPA-LEED instrument
    2. The data acquisition hardware
  8. "Externals"
    1. WinSPA's file formats
    2. The configuration file
    3. The library SpaDAQ
  9. References

I - Some general remarks

The surface analysis method of spot profile analysis low energy electron diffraction was developed in the group of Prof. Martin Henzler at the "Institut für Festkörperphysik" of the University of Hannover, Germany. Since then several measurement software implementations have been developed, some of which are still available.

Helpful resources of further information about SPA-LEED can be found at In the following, it is assumed that the reader is familiar with the basics of low energy electron diffraction (LEED), including the basics of diffraction, reciprocal space and how a spot-profile analysis LEED system (SPA-LEED) works in principle. If this is not the case, it is strongly recommended that you gather those information from surface physics textbooks (such as the one by Henzler/Göpel and the one by Lüth) or at least start with the LEED overview article at wikipedia and then continue with the first pages of the comprehensive review article by Prof. Horn-von Hoegen, which is very a valuable resource for all advanced SPA-LEED users.

Overview of WinSPA

WinSPA's general user interface concept is a mixture between the screen oriented design of DOS or embedded OS applications and a window oriented software style. The result is similar to a multiple documents interface (MDI) application, except that a small navigator form replaces the main (or "parent") window and that each scan window is perfectly suited for use in full screen size. All different scan mode windows are explained in detail in different sections of this help. In order to achieve maximum consistency, many graphical user interface (GUI) elements of different scan forms are very similar or even the same. These GUI elements are described in a separate section.

To aid the navigation through the program, there is the navigator window which looks like this:

All scan windows, tools and settings of WinSPA can be accessed either via the tool buttons or via the main menu. The meanings of the - hopefully due to the small icons already self-describing - tool buttons are:

Button name Icon Description
1D scan Open a 1D scan form.
2D scan Open a 2D scan form.
Spot tracker Open/Close the spot tracker form.
RSM scan Open an RSM form.
Timeplot Open a Timeplot form.
Note: This feature is not yet implemented in V1.06.
I(V) scan Open an I(V) scan form.
Note: This feature is not yet implemented in V1.06.
Opti scan Open/close the Opti form.
SEM scan Open/close the SEM scan form.
Stopwatch Open/close the Stopwatch form.
Rate meter Open/close the Ratemeter form.
Voltages meter Open/close the voltage meter form.
Scan engine messages Open/close the scan engine messages form.
k-space calibration Open/close the k sensitivity calibration form.
R-space calibration Open/close the R sensitivity calibration form.
Image shift calculation Open/close the image shift calculation form.
Manual energy control Open/close the manual energy control form.
Deflection offsets Open/close the manual offset form.
k-space calculator Open/close the k calculator form.
Software settings Open/close the software settings form.
Macro commander Open/close the macro commander form.
Note: This feature is not yet implemented in V1.06.
Offline help Open the offline help.
Online help Open the online help.
About WinSPA Open the "about" form.
License information Open the license information form.

There are some things you should know about the operational approach of WinSPA before you start to use it. While the simple use of 2D scans and 1D scans is very similar to Spa4.1d (and even the reciprocal space map hopefully appears intuitive) there are several not obvious features of WinSPA which could support you substantially in your daily work with SPA-LEED, which are described below. Please also note the "standard operating procedures section"!

  1. Multi-Threading

    WinSPA makes extensive use of threads, i.e., software modules which can operate simultaneously and independently. Since in principle a SPA-LEED system can obviously not operate with different energies, deflection voltages and detectors at the same time, the threads have to share the hardware. The purpose of the WinSPA scan engine is to organize this sharing of the hardware resource "SPA-LEED" between different scan threads.
    The scan engine allows threads within WinSPA to access the data acquisition hardware for a single measurement sequence (line scan(s), point scan(s)). Even though the user does not have to deal directly with the functionality of the scan engine, there are several settings accessible via GUI elements in the different scans that control the behavior of the scan engine.
    The scan engine is mainly a combination between a semaphore, a queue and a dispatcher; any thread within WinSPA that wants to get access to the hardware can request scan time. The request is then put into a queue and it is executed when it gets to the first position in the queue. Each scan task has to wait until its request is granted and inform the scan engine as soon as it has finished its scan sequence (cooperative multitasking). In many scans there is a switch "Atomic" which means that the scan should not be divided. A non-atomic 2D scan, for example, will give back control to the scan engine after each single scan line and then directly requests further scan time. An atomic 2D scan will report "finished!" only after the very last scan line. If only one scan thread is running, there is nearly no difference for the user. But if more than one scan thread is running, there may be a large difference: You may, for example, use a large and high-gate-time 2D scan as non-atomic thread in the background and work in parallel on setting up a detail scan by using small atomic 2D scans.
    The requests and the scheduling of the scan engine can be observed in the "scan engine messages" window.

    Info: For more details about multithreading with Delphi in general see the Delphi multithreading tutorial by Martin Harvey.

  2. Reciprocal space coordinates

    The native reciprocal space coordinates for a SPA-LEED system are its deflection and acceleration voltages: Ux, Uy and E. Those units are, however, basically only "arbitrary units" if a real metric of the reciprocal space is the objective. The Spa4.1d software allowed the definition of a "sensitivity" factor for the conversion between V (Volts) and %BZ (percent of the Brillouin zone).
    Since the sensitivity depends on the type of the sample, WinSPA takes the reciprocal space coordinates one step further and allows inverse Angstroms as reciprocal space coordinates. The path of calculation is as follows: The user (you) has to calibrate his SPA-LEED system once with a known sample at a well defined and reproducible sample position. During this calibration the k sensitivity factor in the "software settings" window should be defined. After that (again, given that the sample position is fairly reproducible) you can use both coordinates, inverse Angstroms and Volts.
    If you also know your sample type (lattice constant and step height), you can enter these values in the "software settings" windows as well. WinSPA then can also operate with correct %BZ.
    It is similar for the kz reciprocal space units. The scattering phase S=Δ/λe (defined by the path length difference Δ of electron waves scattered at neighboring terraces, see below) for the (00) spot is calculated from the step height of the sample surface and the angle of incidence at Ux=Uy=0 (mechanically centered specular spot).

    Note: All reciprocal space units except the native units (Volts, electron Volts) depend on correct calibration of the k sensitivity (inverse Angstroms) and on the correct sample setting (%BZ, scattering phase).

    Note: The actual sample settings are saved in each WinSPA file. If you have used incorrect settings for the sample you will be able to find this out afterwards.

  3. Standard operating procedures

    There are a few procedures that the user should go through from time to time in order to ensure that the system is correctly aligned: WinSPA offers many automatic corrections and calibrations which could become counter-helpful if they are not set up properly.
    Please refer to the respective section "standard operating procedures" of this help for further details.

  4. The spot tracker

    The spot tracker is not a scan in the sense that it requests scan time; instead, if the spot tracker is running it is activated each time the scan engine dispatcher is in control of the SPA-LEED. You can think of the scan engine's queue as a priority queue with the spot tracker having the highest priority.
    The operation of the spot tracker falls between that of a scan type and a global deflection setting. The Spot Tracker can be used to measure the intensity of one reference and up to six additional diffraction spots versus time. In order to do so, the exact position of the reference spot is re-determined each time before a point scan is executed on the selected diffraction spot. Every point scan in the spot tracker is thus executed relative to the reference spots to compensate a possible slow motion of the whole diffraction image relative to the detection system.
    The displacement of the reference spot compared to its initial position can be used as a deflection offset in other scans ("absolute"/"dependent on spot tracker").

    Note: Since the possible reasons for the motion of diffraction spots can be very different (mechanical drift, sample deformation, electromagnetic fields) it is not possible to calculate the drift Δx1 at a given energy E1 if the drift Δx2 of a diffraction spot at an energy E2 is known. Therefore, you should only use the spot tracker as a reference for other scans, if they are executed at the same electron energy.

  5. Graphic tools/data exchange between scans

    In all scan windows you'll find a panel labeled "Tools" with a selection of graphic tools for a quick data evaluation. The graphic tools are not designed for the final data analysis (WinSPA is not a data analysis software, please use designated software packages like IDL, Igor, Matlab or similar software for this purpose), but for a quick determination of reciprocal space coordinates/sections/areas in order to plan the next alignment step or the next scan.

    You can exchange data (such as reciprocal space coordinates of detailed scans around a selected diffraction spot) between scan windows by using the "copy/paste to clipboard" buttons that are available on the upper right of all scan windows as well as on the windows that belong to the graphic tools.

  6. Logfile, Stopwatch and printouts

    Data acquisition and documentation are closely related to each other. WinSPA supports your effort to keep an account of your measurements with some quite simple but rather effective tools.
    In the logfile all scan actions (start/stop of scans) and additional comments are stored along with the precise time. You can evaluate this later and so you do not need to write down each single scan immediately in your lab book. It is recommended that you store the logfile in the data sub-directory after each measurement.
    The stopwatch mainly defines a local time frame and helps you to determine correct deposition times etc. without manual calculation. Also, you can directly add a comment ("Log this!") into the logfile in the stop watch window.
    For a documentation of the most important scan you can use the "print out" function in the right-click context menus. This will print an image of the scan "as on screen" together with all parameters of the scan.

Latest updates and further information about WinSPA

For the latest information about WinSPA please visit the WinSPA homepage in the world wide web.