A.2 Description

A.2.2 ktl link service keyword ?varname?


Link a (service,keyword) pair, associating it with a global Tcl variable. It returns the variable name as its value, which should be used in subsequent ktl monitor, read, write and ioctl operations.

The name assigned to the (service,keyword) pair is by default the keyword name. However, the name can be overridden by an optional extra argument. This is sometimes useful when the keyword name would cause a conflict with some other global variable name (e.g. the same keyword name exists in several keyword libraries).

If the service has not already been opened, an automatic ktl open is performed.

If the global variable already exists, it is not touched. Otherwise, it is created and is given an initial value of <udf> (for "undefined"). This behavior is not currently controllable.

For example:

ktk4.1% ktl link dcs2 axestat
axestat

ktk4.1% ktl link dcs2 axestat axestatVar 
axestatVar

Tcl/Tk/KTL Interface - 13 NOV 1996

Generated with Harlequin WebMaker

Back to the Keck Home Page