A.2 Description

A.2.5 ktl write varname value ?-binary?


Set the specified keyword to the specified value, returning the value as the command's value.

ktl link must already have been used to link the service and keyword. Usually, varname is
the keyword name, but ktl link may have overridden this.

By default the value is assumed to be the ASCII (external) representation (usually this is what GUIs will want to use), but -binary will force use of the binary (internal) representation.

The write always blocks on completion (i.e. the only flag currently supported is KTL_WAIT). Time-out intervals are keyword library-specific and are not controllable at this level.

For example:

ktk4.1% ktl link dcs2 telfocus
telfocus
ktk4.1% ktl link dcs2 secmove
secmove
ktk4.1% ktl write telfocus -5
-5
ktk4.1% ktl write secmove 1
1

Tcl/Tk/KTL Interface - 13 NOV 1996

Generated with Harlequin WebMaker

Back to the Keck Home Page