Language Reference

PLOT

120

ON INTR Hpib GOTO Done

When ￿nished, GO TO

130

ENABLE INTR Hpib;2

Interrupt when ￿nished.

140

!

Dump plot.

150

OUTPUT Dsp;"CY 1;";

 

160

!

No CR/LF.

170

SEND Hpib;UNL LISTEN Plt TALK Dsplay DATA

Get controller o￿ HP-IB .

180

!

Do not use \LOCAL 7".

190

Loop:GOTO Loop

Wait for completion.

200

!

 

210

Done: !

 

220

OFF INTR

 

230

Status_byte=SPOLL(Dsp)

Read display status .

240

IF BIT(Status_byte,4) THEN

Bit 4 is command done .

250DISP "DONE!"

260ELSE

270DISP "UNEXPECTED INTERRUPT"

280END IF

290!

300END

Description The PLOT command generates a copy of the spectrum-analyzer display on paper with a plotter or printer.

The plotter or printer must be properly con￿gured prior to issuing PLOT. P1X and P1Y , and P2X and P2Y specify the lower-left and upper-right corners of the plot, respectively. If the P1X, P1Y, P2X , and P2Y parameters are omitted, the parameters stored in the display module are used.

The instrument addressed with the PLOT command also must be assigned to the display keyboard. The PLOT command instructs the display to do a graphics plot dump. Execution of the plot command is not complete until the plotter has ￿nished plotting.

7-384