INDEX
Next Chapter of TCL Commands
MDSplus Document List
Format: @file-spec [p1 [p2 [... p7]]]
file-spec
Specifies either the command procedure to be executed or the device or file from which input for the preceding command is to be read.
If you do not specify a file type, the system uses the default file type depending on the utility you are using (I.E. in PCL the default file type is .PCL) .
No wildcard characters are allowed in the file specification.
p1 [p2 [... p7]]
Specifies from one to seven optional parameters to pass to the command procedure. The parameters assign character string values to the symbols named P1, P2, and so on in the order of entry, to a maximum of seven. The symbols are local to the specified command procedure. For example, if you wanted to pass in a shotnumber to a TCL script as the first parameter, your first line could look like
EDIT mytree/SHOT= 'P1
Separate each parameter with one or more blanks. You can specify a parameter with a character string value containing alphanumeric or special characters, with the following restrictions:
$ @TEST "Never say ""quit"""
When the procedure TEST.COM executes, the parameter P1 is equated
to the string:
Never say "quit"
$ @ANOTHER_TEST abc"def"ghi
When the procedure ANOTHER_TEST.COM executes, the parameter P1 is equated to the string:
ABC"def"GHI
$ @INFO 'NAME'
The apostrophes cause the value "JOHNSON" to be substituted for the symbol NAME. Therefore, the parameter "JOHNSON" is passed as P1 to INFO.COM.
Format:
ADD NODE
Format:
Precede node_name with a period if you want to create a son
node. If no punctuation is specified a member node will be
created. Node names must not exceed 12 characters, begin with
an alphabetic character and contain any characters from the
set A-Z,0-9, dollar and underscore.
NOTE: The tree must be open for write to use this command.
see EDIT vs SET TREE.
qualifiers
/model=device_type
Adds a device to the tree of the specified device type. This node
becomes the top node of the device.
/usage=usage_type
Specifies the usage of the node being added. This should be one of
the following:
ACTION
All son/daughter nodes will be created with usage STRUCTURE
regardless of the usage specified.
Format:
This command will associate the tag \TAG_NAME with the node
specified by the the path node_name. Tagnames must 24 characters
or less and contain characters from the set A-Z,0-9, dollar and
underscore.
NOTE: The tree must be open for write to use this command.
see EDIT vs SET TREE.
PARAMETERS
node_name - a node or path name specifying a node in the tree.
see help specify node_name for details. Must be
less than 13 characters.
tag_name - a unique string which will become an acronym for
the node specified with the node_name parameter.
Must be less than 25 characters.
EXAMPLES
TCL> ADD TAG -.SUB_PART.D1 MY_D1
Format:
Parameters
process-name
Specifies the name of the process to which the connection is to be
made. Process names can contain from 1 to 15 alphanumeric
characters. If a connection to the specified process cannot be
made, an error message is displayed. You cannot connect to the
process under the following circumstances:
Command_Qualifier
/IDENTIFICATION
/IDENTIFICATION=pid
Specifies the process identification (PID) of the process to which
terminal control will be switched. When you specify a PID, you can
omit the leading zeros.
If the process is not part of the current job or does not exist, an
error message is displayed.
When you use the /IDENTIFICATION qualifier, do not specify the
process name parameter. If you omit the /IDENTIFICATION qualifier,
you must specify a process name.
Examples
1.
The ATTACH command changes the terminal's control to the process
JONES_2.
2.
The ATTACH command changes the terminal's control from the current
process to a process having the PID 30019. Notice that since the
/IDENTIFICATION qualifier is specified, the process-name parameter
is omitted.
Format:
EXPERIMENT
Name of experiment.
/SHOT=shot_number
Specifies the shot number of the tree to open. Default = -1 which
is the model.
Format:
Format:
EXPERIMENT
Name of experiment.
/SHOT=shot_number
Specifies the shot number of the tree to open. Default = -1 which
is the model.
ABORT ABORT SERVER server-name
ADD ADD NODE [.|:]node_name
DEVICE
DISPATCH
NUMERIC
SIGNAL
TASK
TEXT
WINDOW
AXIS
STRUCTURE (Not valid for member nodes) ADD TAG node_name tag_name
TCL> ADD TAG \MAIN::TOP.TIMING TIMING
ATTACH ATTACH [process-name]
If you specify the /IDENTIFICATION qualifier, you cannot use the
process name parameter. If you omit the /IDENTIFICATION qualifier,
you must specify a process name. $ ATTACH JONES_2
$ ATTACH/IDENTIFICATION=30019
CLEAN CLEAN experiment [/SHOT=shot-number]
CLOSE CLOSE [experiment] [/SHOT=number]
COMPRESS COMPRESS experiment [/SHOT=shot-number]
control_c