Agilent Technologies 8590 TV Converter Box User Manual


 
OUTPUT Output to Remote Port or Parallel Port
Prerequisite Commands: ACTDEF or VARDEF when using a user-defined variable.
Related Commands: ENTER, RELHPIB.
Example
This example assumes that the plotter is at address 5 and the spectrum analyzer is at address
18. (The program is only valid for HP 9000 Series 200 and 300 computers.)
The following example uses the spectrum analyzer to send the ASCII code for OP; (output
parameter) to the plotter. The ENTER command is then used to receive the coordinates from
the plotter. Program lines 110 to 140 display the coordinates on the spectrum analyzer screen.
Softkey
1 is programmed to display the plotter coordinates.
Softkey
1 can be accessed by
pressing
(j-1,
IJser
Menus
.
Note
Disconnect the computer before pressing
softkey
1 or execute ABORT 7,
LOCAL 7 from the computer. The execute the
P-OP
function, the spectrum
analyzer must be the only controller on the HP-IB.
10 OUTPUT
718;"VAFlDEF
P,ONEX,l,VARDEF
P,ONEY,l;"
Dechres
the variables used to
hold the plotter coordinates.
20 OUTPUT
718;"VARDEF
P-TWOX,l;VARDEF
P,TWOY,l;”
Declares the variables used to
hold the plotter coordinates.
30 OUTPUT
718;"FUNCDEF
P,OP,@";
&f&es
a function called
P-OF
40 OUTPUT
718;"OUTPUT
5,B,79;";
Seno!s
ASCII code for
“0”.
50 OUTPUT
718;"OUTPUT
5,B,80;";
Sends ASCII code for
“P”.
60 OUTPUT
718;"OUTPUT
5,B,59;";
Sends ASCII code for
‘;
“.
70 OUTPUT
718;"ENTER
S,K,P,ONEX;";
Gets plotter coordinates from
plotter:
80 OUTPUT
718;"ENTER
S,K,P,ONEY;";
Gets
Ycoordinutefromplotttx
90 OUTPUT
718;“ENTJZR
5,K,P,TWOX;“;
Gets
Xcoordiruztefrom
plotter:
100 OUTPUT
718;"ENTER
5,K,P_TWOY;";
Gets Y coordinatefrom plot&x
110 OUTPUT
718;"PU;PA
200,190;DSPLY
P-ONEX,l0.2;";
Displa?~s
coordinate on spec-
trum analyzer screen.
120 OUTPUT
718;"PU;PA
200,180;DSPLY
P-ONEY,l0.2;";
LKsplays
coordinate on spec-
trum
an4zly.243
screen.
130 OUTPUT
718;"PU;PA
200,170;DSPLY
P,TWOX,l0.2;";
Displays coordinate on spec-
trum
an4zl~z47r
screen.
140 OUTPUT
718;"PU;PA
200,160;DSPLY
P-TWOY
,10.2;“;
Displu$~s
coordinate on spec-
trum anul~zer screen.
150 OUTPUT
718;"RELHPIB;";
160 OUTPUT
718;"(8;"
Releases spectrum
analyzer
con-
trol of the
HP-II3
Marks the
end of the
function,
P-OI?
170 OUTPUT
718;"KEYDEF
l,P,OP,!DSP
OP;!;"
180 END
Assigns
the
P-OP
fanction
to
soj%key
1.
5.410 Programming Commands