Preliminary: The General Scan

The General Scan widget extends the capabilities of the Scan Menu 7.1. It is more flexible at the cost of being more complicated. Therefore, a user should consider the 'normal' scan menu first before diving into secrets of General Scans.

Figure 10.1 displays the General Scan widget. This menu is the user interface to a Perl module that executes the scan. A template for such a Perl module is given in 10.1.

Figure 10.1: The TkI ScanG Widget
Image scang

The explanation of the elements:

 Scan name: Scan names are composed of a generic part (prefix) and a combination of numbers and letters that make the name unique. The generic part of the scan name is specified by the user. It can be changed by clicking into the Scan name widget.

 Module: Specifies a Perl module that defines the scan. It can be found in /online_dir/. The file GS.pm serves as a template.

 MOT1: The motor that drives the axis a1 (1D scan). It can be dummy1.

 'Entry widget': The target position for an a1-motor move. The move is started by clicking the Move button.

 Start, Stop, Step width, ST: The scan limits and the sample time. They can be given in several ways. A selector button (StartStop) offers these modes:

  • Start, stop, step width
  • Start, stop, np
  • Range, np
  • List
  • Commands
  • Regions, for a1-motor only
  • EXAFS, for a1-motor only

 1D: Selects a a1-scan. The other options of this menu button are 2D 10.4 and 3D 10.5.

 Start: Starts a scan.

 Stop: Stops a scan. Pressing the space bar has the same effect.

 Refresh: Refreshes the widget. Useful after the module has changed or after EXAFS regions have been changed.

The Module popup menu allows you to edit the selected module or to display the contents of the hash %GS::h. This data structure stores the internal parameters of the module. Some of the keys are mandatory, some not. See the section about the template below for explanations.

Figure 10.2: The TkI ScanG Widget, Module Popup Menu
Image scang_module

Figure 10.3: The TkI ScanG Widget, Flags Popup Menu
Image scang_flags

Figure 10.4: The TkI ScanG Widget, 2D
Image scang_2d

Figure 10.5: The TkI ScanG Widget, 3D
Image scang_3d



Subsections