Agilent Technologies 8590 TV Converter Box User Manual


 
RETURN
Return
Stops the operation of a user-defined command and returns program operation to the point
where the user-defined function was called.
Syntax
RETURN
Related Commands: ABORT. FUNCDEF. IF (IFflHEN/ELSE/ENDIF), REPEAT
(REPEAT/UNTIL).
Example
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
OUTPUT
718."IP*"
OUTPUT
718;"SNGLS;TS;DONE?"
ENTER
718;Done
!
OUTPUT
718;"FUNCDEF
D,LP,O"
OUTPUT
718;"CF
300MZ;SP
10MZ;TS;"
OUTPUT
718;"MKPK
HI;"
OUTPUT
718;"PU;PA
60,180;"
OUTPUT
718;"IF
MKA,LT,-30
THEN;"
OUTPUT
718;"TEXT'NO
SIGNAL FOUND';"
OUTPUT
718;"HD;"
OUTPUT
718;"CONTS;"
OUTPUT
718;"RETURN;"
OUTPUT
718;"ELSE;"
OUTPUT
718;"TEXT'SIGNAL
FOUND';"
OUTPUT
718*"ENDIF."
OUTPUT
718;"SP
5MZ;TS;MKPK;"
OUTPUT
718."MKCF*"
OUTPUT
718;"MKRL;TS;"
OUTPUT
718;"HD;"
OUTPUT
718;"CONTS;"
OUTPUT
718~"Q~"
#
,
!
OUTPUT
718;"D,LP;"
!
END
Description
Initializes spectrum analyzer
put in single sweep mode
wait until
done
dejines
user
de@ed
fan&ion
set CF and SPAN
marker peak
position pen, get ready for text
marker less than -30
dBm?
refresh graticule
back to continuous sweep
exit the function
narrow span, marker peak
marker to CF
marker to RL
refresh graticule
back to continuous sweep
end of user &fined function
this line executes function D-LP
The example shows the use of the RETURN command to exit from a user-defined function.
When the RETURN is encountered, execution within the function halts and control returns to
the calling context.
5-466 Programming Commands