S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual Section 3:
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)
The instrument identification code of the scope card
The measured frequency in Hertz (Hz)
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 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
scp_init (on page 3-67)
scp_measure (on page 3-68)
scp_setup (on page 3-70)