3: LPTLib command reference S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-68 S530-900-01 Rev. E / September 2017
scp_measure
This command measures the frequency and amplitude of the strongest signal.
Usage
int scp_measure(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;
.
.
.
Status1 = scp_init(SCP1);
Status2 = scp_setup(SCP1, 20e6, 850e6, 1e6);
Status3 = scp_measure(SCP1, freq, ampltd);
This example shows how to measure the amplitude of the strongest signal.
Also see
scp_init (on page 3-67)
scp_setup (on page 3-70)