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.

RETURN<br />

Return<br />

Stops the operation of a user-defined comm<strong>and</strong> <strong>and</strong> returns program operation to the point<br />

where the user-defined function was called.<br />

Syntax<br />

RETURN<br />

Related Comm<strong>and</strong>s: ABORT. FUNCDEF. IF (IFflHEN/ELSE/ENDIF), REPEAT<br />

(REPEAT/UNTIL). ’ ’ ’<br />

Example<br />

10<br />

20<br />

30<br />

40<br />

50<br />

60<br />

70<br />

80<br />

90<br />

100<br />

110<br />

120<br />

130<br />

140<br />

150<br />

160<br />

170<br />

180<br />

190<br />

200<br />

210<br />

220<br />

230<br />

240<br />

250<br />

260<br />

Description<br />

OUTPUT 718."IP*"<br />

OUTPUT 718;"SNGLS;TS;DONE?"<br />

ENTER 718;Done<br />

!<br />

OUTPUT 718;"FUNCDEF D,LP,O"<br />

OUTPUT 718;"CF 300MZ;SP 10MZ;TS;"<br />

OUTPUT 718;"MKPK HI;"<br />

OUTPUT 718;"PU;PA 60,180;"<br />

OUTPUT 718;"IF MKA,LT,-30 THEN;"<br />

OUTPUT 718;"TEXT'NO SIGNAL FOUND';"<br />

OUTPUT 718;"HD;"<br />

OUTPUT 718;"CONTS;"<br />

OUTPUT 718;"RETURN;"<br />

OUTPUT 718;"ELSE;"<br />

OUTPUT 718;"TEXT'SIGNAL FOUND';"<br />

OUTPUT 718*"ENDIF."<br />

OUTPUT 718;"SP 5MZ;TS;MKPK;"<br />

OUTPUT 718."MKCF*"<br />

OUTPUT 718;"MKRL;TS;"<br />

OUTPUT 718;"HD;"<br />

OUTPUT 718;"CONTS;"<br />

OUTPUT 718~"Q~"<br />

# ,<br />

!<br />

OUTPUT 718;"D,LP;"<br />

!<br />

END<br />

Initializes spectrum analyzer<br />

put in single sweep mode<br />

wait until done<br />

dejines user de@ed fan&ion<br />

set CF <strong>and</strong> SPAN<br />

marker peak<br />

position pen, get ready for text<br />

marker less than -30 dBm?<br />

refresh graticule<br />

back to continuous sweep<br />

exit the function<br />

narrow span, marker peak<br />

marker to CF<br />

marker to RL<br />

refresh graticule<br />

back to continuous sweep<br />

end of user &fined function<br />

this line executes function D-LP<br />

The example shows the use of the RETURN comm<strong>and</strong> to exit from a user-defined function.<br />

When the RETURN is encountered, execution within the function halts <strong>and</strong> control returns to<br />

the calling context.<br />

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

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

Saved successfully!

Ooh no, something went wrong!