7 command line entries – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 74

Advertising
background image

SECTION 4. SPLIT

4-20

SAVE

SAVE asks the user for a name for the
parameter file. SPLIT gives a default extension
.PAR unless another extension name is
specified. Press return and the current
parameter filename will be used.

QUIT

QUIT terminates the SPLIT program. If it is a
new parameter file or changes have been made
to an old file, SPLIT prompts the user to save
the file before terminating.

LOAD new parameter file

A new parameter file is specified using LOAD.
If the current file has not been saved, SPLIT
prompts to save the current file. The Parameter
filename must comply with PC-DOS rules for a
filename. An extension is optional. If no
extension is specified, an extension of .PAR is
provided. If the file resides on a drive or
directory other than the default drive or
directory, the drive and directory path
specification (see PC-DOS manual) must
precede the filename.

4.7 COMMAND LINE ENTRIES

Existing parameter files can be invoked from
the command line. For instance, if a parameter
file named "LOGAN" already exists, the
command line 'SPLIT LOGAN' loads SPLIT,
finds the parameter file LOGAN, and enters
EDIT mode. To execute and run the
PARameter file, add '/R' to the Parameter
filename. SPLIT allows the user to select
different parameters by entering them on the
command line after the parameter filename.
For example:

'SPLIT LOGAN/R TEST.DAT TEST.PRN'

Replaces the INPUT and OUTPUT filenames in
LOGAN.PAR, with Test.dat and Test.prn
respectively.

A space must be used to separate parameters.
SPLIT uses as many entries as exist on the
command line, in the same sequence as the
Parameter file.

If a parameter is to be left as it is in the
parameter file, comma space comma (, ,) may
be entered in the command line. For instance,
if the parameter file LOGAN.PAR contained

TEST1.DAT as an input filename, the following
command line would leave the input file
TEST1.DAT and change the output file to
TEST.PRN.

'SPLIT LOGAN/R, , TEST.PRN'

More than one .PAR file may be called from the
DOS command line. Each .PAR file and its
associated parameters is separated from the
next .PAR file by a semicolon with one space on
either side of it ( ; ). For example:

'SPLIT LOGAN/R TEST.DAT TEST.PRN ;
SINKS/R TEST1.DAT TEST2.DAT 1[189]'

executes the LOGAN.PAR file on TEST.DAT
and OUTPUTs the results to TEST.PRN, then
executes the SINKS.PAR file on TEST1.DAT
and OUTPUTs the results to TEST2.DAT.
Execution of SINKS.PAR STARTs when the
first element in TEST1.DAT is 189.

The COMMAND line is limited to 255
characters.

Command line entries are useful for automatic
execution of SPLIT batch files. If several .PAR
files need to be executed in succession, they
are invoked from the COMMAND line, or a
batch file is set up.

Advertising