Q scans can also be executed as fast scans. All explanations that were given in section 15.4 about scan macros apply for Q scans as well.
In this section we want to demonstrate how a scan is being setup that which is a little bit more complicated than a simple fast scan:
ONLINEscan/q
The menu is displayed in table 8.2.
Figure 15.2 shows the graphical output which is generated during the scan.
Table 15.7 shows the contents of the before-file.
Here are the explanations for this file:
deactivate
The GQEs which belong to preceeding scans must not be displayed during the current measurement. |
c1name = scan_name"_c1"
The name of the SCAN GQE that stores the counter reading of c1. |
copy scan_name c1name
ONLINE creates scan_name which can serve as a template for other SCANs that store data, like in this example. The size of scan_name has been calculated from the scan parameters. |
create/text/string=C1/x=0.95/y=0.85/h_alig=3 c1name
A TEXT GQE is created that describes c1name. |
set c1name/at=(2,4,1,1)
The SCAN c1name is put to the upper left corner of the
screen. Precisly: If the screen were divided into 2 column and
4 rows, c1name is placed in column 1, row 1.
|
The during-file does the measurement, table 15.7:
The explanations:
do resaco()
Resets all counter. |
sawft(scan_timer) = sample_time
Start-and-wait-for-timer. The symbol scan_timer has been created in the before-file. The symbol sample_time is created by ONLINE. It is filled with the value from the menu. |
c1name(sindex) = gc(c1)
The symbol sindex is maintained by ONLINE. It starts at 1 and it is incremented at every during-call. The function gc() reads the counters (get-counts).
|
Table 15.7 looks familiar. Notice that we may use the output command write/fio/scan because all our data begin with scan_name.
if yesno( "Write to disk ") write/fio/scan/motor scan_name endif if yesno( "Postscript ") post/nocon/dina4/print endif Cleanup
|