PKPOS

Peak Position

Returns a value, which is the index of the maximum value in trace A, trace B, trace C, or
user-defined trace.
Syntax
PKPOS
function path only
XPKPOS
Item Description/Default Range
User-defined trace A trace deEned by the TRDEF command. Any valid trace name.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MINPOS, MXM.
Example
OUTPUT
718;"IP;"
Initializes spectrum
anulyz..ex
OUTPUT
718;"SNGLS;TS;"
Activates single-sweep mode, takes sweep.
OUTPUT
718;"PKPOS
TRA;"
Finds the position of the highest peak.
ENTER
718;Pkresult
Outputs result to the computex
DISP Pkresult
Displays the result.
Description
If a trace range is used with PKPOS, PKPOS returns a value relative to the first element of
the trace range. For example, if a trace has a range of 150 to 300 elements, and the maximum
value is element 200, PKPOS will return the value of 51.
5-430
Programming Commands