Agilent Technologies 8590 TV Converter Box User Manual


 
KEYCMD Key Command
Example 1
This example defines 1.
Softkey
1 has the label “QSAD” until it is pressed. When
softkey 1 is pressed, the following changes occur: center frequency changes to 105.3 MHz,
span changes to 300 and the label for 1 changes from “QSAD” to “KSAD.” If
softkey 1 is pressed again, the center frequency changes to 100.1 MHz and the label changes
back to “QSAD.
10 OUTPUT
718;"IP;"
Initializes spectrum
analyzer:
20 !
30 OUTPUT
718;"VARDEF
CmOUNTRY,l;"
DQin..es
variable called
C-OUNTRI!
40 !
50 OUTPUT
718;"KEYCMD
1,";
Llqfims
sojtkey
1.
60 OUTPUT
718;"%";
70 OUTPUT
718;"IF
C,OUNTRY,EQ,
1;THEN;";
80
OUTPUT
718;"CF
105.3MHZ;SP
300KHZ;";
90
OUTPUT
718;"MOV
CmOUNTRY,O;";
100 OUTPUT
718;"ELSE;";
110
OUTPUT
718;"CF
lOO.lMHZ;SP
300KHZ;";
120
OUTPUT
718;"MOV
C-OUNTRY,l;";
130 OUTPUT
718;"ENDIF;";
140 OUTPUT
718;"%,";
150 OUTPUT
718;"@";
160 OUTPUT
718;"IF
C,OUNTRY,EQ,O
THEN;";
170
OUTPUT
718;"KEYLBL
l,%KSAD%;";
180 OUTPUT
718;"ELSE;";
190
OUTPUT
718;"KEYLBL
l,%QSAD%;";
200 OUTPUT
718;"ENDIF;";
210 OUTPUT
718*"@*"-
8
9,
220 END
Example 2
Softkey 2 has a
softkey
label, “COUNTRY YES NO.” If the value of the variable COUNTRY
is 1, then YES is underlined and label of
softkey
1 is “QSAD.” Pressing
softkey
2 moves
the
underline to NO and changes the label of
softkey
1 to “KSAD.
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
OUTPUT
718;"IP;"
Ul$=CHR$(lG)
Off$=CHR$(l5)
OUTPUT
718;"VARDEF
C-OUNTRY,l;"
!
OUTPUT
718;"KEYCMD
1,";
OUTPUT
718;"%";
OUTPUT
718;"IF
C,OUNTRY,EQ,Q
THEN;";
OUTPUT
718;"MOV
CF
105.3MHZ;MOV
SP,300KHZ;";
OUTPUT
718;"MOV
C,OUNTRY,O;";
OUTPUT
718*"ELSE-"*
OUTPUT
7;8;"MO;
CF
lOO.lMHA;MOV
SP,300KHZ;";
OUTPUT
718;"MOV
CmOUNTRY,l;";
OUTPUT
718;"ENDIF;";
5-248
Programming Commands