Language Reference

USERKEY

Example

Return or receive data that con￿gures 4USER5 keys.

Transmit the 4USER5 key menu to and from the computer.

200

OUTPUT 723;"USERKEY?;"

Return key menu to computer .

 

210

ALLOCATE

Userkeys$[350]

De￿ne string variable for storing keys.

 

 

 

Up to 350 characters can be stored.

220

ENTER 723

USING "-K";Userkeys$

Assign key names to string variable,

 

 

 

called Userkeys $.

\-K"

accepts

ASCII

 

 

 

characters which might otherwise be in-

 

 

 

terpreted as terminators .

 

230

OUTPUT 723;"KEYPST;"

Set the 4

 

5 menu to its preset

state.

USER

240

P=POS(Userkeys$,"USERKEY")

Set variable P to

the

position

of the

 

 

 

\USERKEY" in the string variable

, Userkeys $.

250

OUTPUT 723;Userkeys$[P];

Send contents of Userkeys $ to optical

 

 

 

spectrum analyzer , starting at character

 

 

 

P.

 

 

 

260 DEALLOCATE Userkeys$

7-518