783620H / 1013 10. JOB FILES
for each SET_DETECTOR command in the JOB, to a maximum of eight, and these windows function as follows:
! JOB streams use the SET_DETECTOR command to open Detector windows. If eight
Detector windows are already open and SET_DETECTOR is issued to open a ninth window, the oldest displayed Detector window will be closed without prompting.
! The same buffer window is always selected by the commands in a JOB, therefore, a JOB does not open multiple buffer windows.
! When you start a JOB, a Detector window will open for each Detector called by the
.JOB
file. The JOB filename will be echoed on the main GammaVision title bar as well as on the title bars of all open spectrum windows.
Note that the JOB processor does not support the simultaneous, multiple-detector start, stop, start/save/report, and clear functions that are available from the toolbar and menu commands.
10.1.2. JOB Command Structure
In the command descriptions in Section 10.4, a variable filename or text is enclosed in “...” and a variable number is enclosed in <...>; anything enclosed in square brackets [...] is optional.
10.2. .JOB File Variables
Variables have been added to the
.JOB
file features to allow more flexibility and control of the
JOBS. These variables are defined by the program or by user entries. They can be used anywhere in the
.JOB
file.
For example:
$(FullPath)= D:\USER\SOIL\SAM001.SPC
then:
$(FullBase) =
$(FileExt) =
$(FileDir) =
$(ShortPath)
$(ShortBase)
D:\USER\SOIL\SAM001
SPC
D:\USER\SOIL
= SAM001.SPC
= SAM001
387
GammaVision
®
v7 (A66-BW) 783620H / 1013
The following variables are expanded in
.JOB
file strings:
$(FullPath)
$(FullBase)
$(FileExt)
$(FileDir)
$(McaDir)
$(CurDir)
$(Loop)
$(Loop1)
$(Bel)
$(CR)
$(FF)
$(LF)
$(ESC)
$(AutoFile)
$(ShortPath)
$(ShortBase)
$(Password)
$(Owner)
Full pathname of the spectrum file
Full pathname of the spectrum without the “.” and extension
File extension of the spectrum file without the “.”
Directory of the spectrum file without the last backslash (\)
GammaVision directory without the last backslash
Starting (current) directory of GammaVision
Current value of the loop counter (zero based)
Loop counter plus 1
ASCII bell character
ASCII carriage return character
ASCII form feed character
ASCII line feed character
ASCII escape character
Create an automatic filename based on the Start/Save/Report settings
Relative pathname of the spectrum file
Relative pathname of the spectrum without the “.” and extension
Value entered in ASK_PASSWORD command
Value entered in ASK_PASSWORD command
The filename variables are updated each time a READ operation is performed. The READ operations are:
ANALYZE “file”
ASK_CALIBRATION
ASK_LIBRARY
ASK_OPTIONS
ASK_PBC
ASK_SPECTRUM
CALIBRATE_EFFICIENCY
CALIBRATE_ENERGY
LOAD
RECALL
RECALL_CALIBRATION
RECALL_EFFICIENCY
RECALL_ENERGY
RECALL_OPTIONS
RECALL_ROI
STRIP
The filename is not updated for WRITE commands.
The following sample
.JOB
file will produce a set of files in which the last character of the filename is a digit that increments with each loop.
388