Agilent Technologies 8590 TV Converter Box User Manual


 
PKRES Peak Result
PKRES
Peak Result
PKRES returns the x-axis coordinates of the peaks in the peak table.
Syntax
Item Description/Default
Range
Number
An integer number.
1 to 10.
Related Commands: DL, PKSORT, PKTBL,
TDF.
Example
DIM
Results(l0)
OUTPUT
718;"TDF
M;"
OUTPUT
718;"PKSORT
0;"
OUTPUT
718;"MOV
PKTBL,l;"
OUTPUT
718*"TS*"
FOR
I=1
TO'10
>
OUTPUT
718;"PKRESC";I;"]?"
ENTER
718;Results(I)
NEXT I
OUTPUT
718;"TDF
P;"
PRINT
"PEAK","FREQUENCY","AMPLITUDE"
FOR
I=1
TO 10
IF
Results(I)>0
THEN
OUTPUT
718;"MKP
";Results(I);";"
OUTPUT
718;"MKF?;"
ENTER
718;A
OUTPUT
718;"MKA?;"
ENTER
718;B
PRINT
I,A,B
END IF
NEXT I
Dimensions an array to hold the results.
Changes the trace data format to measure-
ment units.
Selects listing the peaks by
decreasing
amplitude.
Turns
on the peak table.
mforms
a take sweep.
Uses a FOR NEXT loop to get the data from
PKRES
Queries each PKRES element.
Enters the PKRES element into the Results
element.
Changes the trace data format to parameter
units.
Prints a heading.
Uses a FOR
NEXT
loop to print the results.
Results(I) is greater than zero if peak was
found.
Places a marker at the x- axis coordinate.
Returns the frequency of the marker
Enters the marker’s frequency into A.
Returns
the amplitude of the marker:
Enters the marker’s amplitude into
B
Prints the peak number; frequency, and amplitude
Eno!s
the IF THEN statement.
Programming Commands 5431