
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
Section 3: LPTLib command reference
S530-900-01 Rev. E / September 2017
3-69
scp_measure_next
This command returns the frequency and amplitude of the next highest peak in the frequency spectrum.
Usage
int scp_measure_next(int
instr_id
, double
*freq_result
, double
*amp_result
)
instr_id
The instrument identification code of the scope card
freq_result
The measured frequency in Hertz (Hz)
amp_result
The measured amplitude in decibels (dB)
Details
The scope card must be initialized before using this command.
This command returns a
0
if executed without error; a negative number indicates an error.
Example
double freq;
double ampltd;
double freq_next;
double ampltd_next;
.
.
.
Status1 = scp_init(SCP1);
Status2 = scp_setup(SCP1, 20e6, 850e6, 1e6);
Status3 = scp_measure(SCP1, freq, ampltd);
Status4 = scp_measure_next(SCP1, freq_next, ampltd_next);
This example shows how to return the frequency and amplitude of the next highest peak in a frequency
spectrum.
Also see
(on page 3-67)
(on page 3-68)
(on page 3-70)