09.12.2012 Views

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

HP 8590 E & L Series Spectrum Analyzers and HP 8591C Cable TV ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ABORT<br />

Abort<br />

Stops the execution all user-defined functions <strong>and</strong> readies the instrument for the next<br />

comm<strong>and</strong> received.<br />

Syntax<br />

ABORT<br />

Related Comm<strong>and</strong>s: ACTDEF, FUNCDEF, REPEAT/UNTIL, RETURN.<br />

Example<br />

In the example below, ABORT is in the function called D-LP.<br />

10 OUTPUT 718*"IP-"<br />

20 OUTPUT 718;"CLRDSP;"<br />

30 OUTPUT 718;"TRDSP TRA,OFF;"<br />

40 OUTPUT 718;"ANNOT 0FF;GRAT OFF;"<br />

50 OUTPUT 718;"VARDEF C-OUNT,O;"<br />

60 !<br />

70 OUTPUT 718;"FUNCDEF D-LP,Q";<br />

80 OUTPUT 718;"REPEAT;";<br />

90 OUTPUT 718;"ADD C,OUNT,C-OUNT,lOO;";<br />

100 OUTPUT 718;"PU,PA 100,lOO;PD;";<br />

110 OUTPUT 718;"DSPLY C-OUNT,4.0;";<br />

120 OUTPUT 718;"IF C_OUNT,EQ,300 THEN;ABORT;ENDIF;";<br />

130 OUTPUT 718;"UNTIL C_OUNT,EQ,400;";<br />

140 OUTPUT 718*"0*"*<br />

150 OUTPUT 718;"F;NCDEF S-HELL,@";<br />

160 OUTPUT 718;"D,LP;TEXT!INSIDE S-HELL!;@"<br />

170 !<br />

180 OUTPUT 718;"SBHELL;"<br />

190 END<br />

ABORT Abort<br />

Initializesspectrum analyzer<br />

Clears graphics from the spectrum<br />

analyzer display.<br />

Turns ofl trace A.<br />

Blanks annotation <strong>and</strong> graticule.<br />

Declares a user-&fined variable<br />

called C-OUNT<br />

Declares a user-d@inedfunction<br />

called D-LR<br />

Begins a repeat loop.<br />

Adds 100 to COUNT.<br />

Displays the valz~ of C-OlliNT.<br />

Aborts the function when<br />

COUNT is equal to 300.<br />

This is not executed because<br />

of the ABORT comm<strong>and</strong> in<br />

line 120.<br />

Ma&s end of D-LI?<br />

DQhtes second user-d@ined<br />

function called SHELL.<br />

Executes D-LP<strong>and</strong> displays<br />

message on display<br />

This calls the S-HELLjknction<br />

which in turn calls the<br />

D_LP function.<br />

Programming Comm<strong>and</strong>s 5-29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!