Agilent Technologies 8566B Operating And Programming Manual page 245

Spectrum analyzer 100 hz - 2.5 ghz/2 - 22 ghz
Table of Contents

Advertisement

KEYDEF
Key Define
KEYDEF
Item
KEY NUMBER
FUNCTION LABEL
The KEYDEF command associates a numbered key with a programming routine, which can be executed remotely
or from the front panel.
The program below stores a routine in key 999. The program, contained in lines 20 through 70, increases the
reference level until the signal peak is below the reference level. The routine is assigned a name with the FUNC-
DEF command, and then assigned to key 999. Note that the program is delimited with single' quotation marks.
1 0
OTJTPTJT 718;"52; T&El;"
20
30
OUTPUT 718;"IF MA&IT&L THEN"
OUTPUT 718;"REPEAT RL UP;TS;El;"
40
50
OUTPUT 718;"UNTIL MA,LE,RL"
60
OUTPUT 718;"ENDIF Sl;" " "
OUTPUT 718;"KEYDEF 999,ROUTINE;"
70
80
END
Line 10:
Lines 20 through 70:
Line 70:
To execute key 999 remotely, use the KEYEXC command:
1 3 6 P r o g r a m m i n g
Description/Default
Integer
Alpha character. User-defined label declared in
FUNCDEF statement.
Assign ROUTINE as the name of the routine in lines 20 - 70.
Execute a peak search. If the marker amplitude is greater than the reference level,
increase the reference level until it is greater than the marker amplitude.
Store the routine in the analyzer, and assign it to key 999.
f u n c t i o n l a b e l
Range Restriction
I

Advertisement

Table of Contents
loading

Table of Contents