Language Reference

OUTPUT

190

OUTPUT 723;"FUNCDEF VDM,^";

Begin de￿nition of user-de￿ned func-

 

 

tion, called VDM.

 

 

200

OUTPUT 723;"OUTPUT 25,K,$H5$;";

Send message , \H5" to multimeter .

210

OUTPUT 723;"ENTER 25,K,NN;";

Receive value in amperes from multime-

 

 

ter. Store value in NN.

 

 

220

OUTPUT 723;"CLRDSP;";

Clear graphics from memory .

 

230

OUTPUT 723;"PA 400,500;";

Set pen at (400,500).

 

 

240

OUTPUT 723;"MPY NN,NN,1000;";

Convert value to milliamperes .

 

250

OUTPUT 723;"DSPLY NN,7,4;";

Display value on analyzer screen.

 

260

OUTPUT 723;"RELHPIB;";

Release control of HP-IB .

 

 

270

OUTPUT 723;"^;"

End de￿nition of user-de￿ned function.

280

OUTPUT 723;"KEYDEF 7,VDM,$VDM$;"

Assign function to user-de￿ned key

, called

 

 

FFFFFFFFF

 

 

 

 

VDM .

 

 

290

SEND 7;UNL UNT DATA

Clear HP-IB of all talkers

and listeners .

300

LOCAL 723

Place analyzer in local

control.

Press

 

 

4

 

5 , then press the user-de￿ned key ,

 

 

USER

FVDMFFFFFFFF , to communicate with the multimeter .

Description The OUTPUT command establishes the analyzer as a controller on HP-IB. Use OUTPUT to send data or instructions to an HP-IB device.

Since HP-IB allows one controller only on HP-IB, OUTPUT must be synchronized with computer operation or else must be incorporated into user-de￿ned functions that are executed with keys when a computer is not connected to HP-IB. (Press 4LCL5 for manual operation.) If another controller is detected on HP-IB, the OUTPUT function is aborted. (See \Controlling Instruments Over HP-IB" in Chapter 6.)

7-346