In this example, the data sources are an ADC and some VFCs.
The online display shows the counters, the MCA spectrum
and also a SCA spectrum which is an integration
of a part of the MCA spectrum.
The ADC and the counters
have to be gated by a common signal. As a consequence we cannot
setup a fast scan for the counters and operate the MCA separatly
in the during~
file.
The solution is that the measurement is explicitly carried out in
the durin~
file.
Table 15.6 displays the before~
file.
Explanations:
The during~
file (15.6)
contains commands, which operate the counters and the MCA.
Explanations:
s1 = clear_mca( mca, 0)
The ADC is connected to a VME MCA board (MCA) which has 2 memory banks. We use bank 0 only. |
fname_sca( sindex) = sum( mca_data, 1000, 1500)
The SCAN fname_sca is filled with the sum of the channels between 1000 and 1500. The symbol sindex (scan index) is maintained by ONLINE. It starts at 1 and it is incremented for every call of during_fast_scan.gra. |
s1 = ifix(position![]() file_name = scan_name"_"s1 The name of the output file of the MCA data is the scan name concatenated with the current position (times 10). The function ifix() returns integer values. We use it because we don't want any additional points “.” in the file name.
|
The after-file is identical to simple fast scans.