Operation control file
This file is read in by PROCMAT before processing of every batch of traces is performed. It may be output by the Matlab/Octave script before it exits, or it can be created manually and present permanently.
Each line of this file should contain a (case-insensitive) command determining requested actions by PROCMAT:
STOP
N: stop invoking the Matlab/Octave script after TRACEID = N
(but continue passing the data through);
START
N: start invoking the Matlab/Octave script at or after TRACEID = N;
RESTART
N: following STOP
, restart invoking the Matlab/Octave script at or after TRACEID = N;
SKIP
N: do not invoke the Matlab/Octave script for N subsequent sets of data traces.Additional lines starting with '
Usage: | FCNTRL | TRACEID FNAME |
TRACEID |
Integer header value (usually) or constant serving as trace ID by which the commands "stop", "start", or "restart" can be keyed. |
|
FNAME |
Name of the control file. |
|
Additional control commands. These commands override the contents of control file (interpreted as appended to the end of this file). For example, by adding command START )or STOP) with parameter N, you can make PROCMAT to start from (stop after) record TRACEID=N regardless of the instructions in control file
COMMAND |
Comand: |
|
TRIDVAL |
Value of TRACEID at which the command is applied |
|
Input file for trace headers
Specifies a name of additional text file name input into Matlab/Octave (Not implemented)
Usage: | FHDRIN | FNAME |
FNAME |
File name |
|
Output file for trace headers
Specifies the name of text file expected to be output by Matlab/Octave program and loaded into output trace headers.
This file can be viewed as a log of interactive editing (for example, time picking) process. Each line in this file should contain one or several triplets of string tokens separated by spaces or tabs. Each triplet is interpreted as follows:
Examples:
1 fbreak set 111.222 static set 4.555
1 chan set 1
If only two tokens are given in a line, keyword "SET" is assumed. Additional lines starting with '
Usage: | FHDROUT | FNAME |
FNAME |
File name |
|
HEADER |
Trace header into which the value will be loaded after the processing Octave/matlab script returns. This trace header must be defined prior to entering PROCMAT. For example, you can define this header by using list SET in tool HDRMATH. |
|
INDEX |
Text string (key word) identifying the values for this header in the input file |
|
Output file for trace data
Specifies the name of text file expected to be output by Matlab/Octave program and loaded into output trace records
This file should be formatted in the following way:
NTRC and NCOMP,
where NTRC is the sequence number of the trace record to which
the following values refer (starting from 1, default value 1),
and NCOMP is the trace component number
(starting from 1, default value 1).-
- Pairs of values
Additional lines starting with '
Usage: | FTRCOUT | FNAME |
FNAME |
File name |
|
Trace header variables
This list should follow WORKIN, WORKOUT, FILIN, or FILEOUT. For the corresponding input or output workspaces, it specifies the trace header records included in them.
Usage: | HEADERS | PREFIX |
PREFIX |
Prefix of the name of the variable in Matlab/Octave program. With this prefix, the trace record will be named " |
|
HEADER |
Trace header into which the value will be loaded after return from processing shell |
|
INDEX |
Integer index associated with this attribute. Thi sindex is used for loading this field from file FILEOUT. |
|
LABEL |
Text string assigned as the value of variable " |
|
Maximum number of traces
Restricts the maximum number of traces allowed in Matlab/Octave scripts. When this number is reached or exceeded, the script is executed as in Ensemble input mode
Usage: | MAXTRC | NUM |
NUM |
Maximum number of traces allowed for passing into Matlab/Octave. |
|
Trace records
This list should follow WORKIN, WORKOUT, FILIN, or FILEOUT. For the corresponding input or output workspaces, it specifies the content of trace records in them.
Usage: | TRACES | COMP TSTART TLENGTH PREFIX LABEL |
COMP |
Trace component (counting from one) |
|
TSTART |
Time start of the record (default - trace time start) |
|
TLENGTH |
Time length of the record (values <= 0 mean the whole trace) |
|
PREFIX |
Prefix of the name of the variable in Matlab/Octave program. With this prefix, the trace record will be named " |
|
LABEL |
Text label to identify the trace record in the interactive plot |
|
Work directory
Specifies the work directory for Octave or Matlab codes. The file path to Octave/Matlab script in parameter COMMAND in the main tool call should be relative to this directory
Usage: | WORKDIR | DIR |
DIR |
Directory name |
|
Input workspace
Specifies the file name for workspace input into Matlab/Octave. The variables placed in this workspace are described by subsequent lists TRACES and VAR
Usage: | WORKIN | FNAME |
FNAME |
File name |
|
Additional Matlab/Octave code (variables, functions, etc.) added after all variables specified in the workspace
LINE |
One line of additional Matlab or Octave code |
|
Output workspace
Specifies the file name for workspace output from Matlab/Octave and loaded into traces and headers (Not implemented yet)
Usage: | WORKOUT | FNAME |
FNAME |
File name |
|
Additional Matlab/Octave code (variables, functions, etc.) added after all variables specified in the workspace
LINE |
One line of additional Matlab or Octave code |
|