3: Software Reference S530 Parametric Test Systems Frequency Analysis Option
3-12 S530-923-01 Rev. A / January 2014
Format:
int freq_detect_peaks(double min_level, double lower_bound, double upper_bound,
double *freq_array, int nPeaks, double *amp_array, int nPeak1);
Parameters:
Minimum amplitude in dB; the peak detected must be higher than the min_level
The measured peak will be ignored if the ratio of measured freq vs. returned peaks is NOT less than the
lower_bound
The measured peak will be ignored if the ratio of measured freq vs. returned peaks is NOT greater than the
upper_bound
Number of peak frequencies to be returned; zero will be returned to fill up the output array when the
number of detected peaks is less than nPeaks
Must be the same as nPeaks
Returns:
array output of measured peak frequencies in Hz
amplitude of the measured peak frequencies in dB
Remarks: The spectrum analyzer must be initialized before using the
freq_detect_peaks command.
Example:
double freq;
double ampltd;
.
.
.
Status1 = freq_init( );
Status2 = freq_setup(20e6, 850e6, 1e6);
status3 = freq_detect_peaks(6e-4, 0.7, 1.4, &freq, 5, &ltd, 5);
freq_selftest
Purpose: Performs an internal self-test of the scope card.
Format:
int freq_selftest();
Parameters: None
Returns: This command returns a 1, if executed without error; otherwise, a negative
number is returned to indicate an error.
Remarks: The unit must be initialized before using freq_selftest command.
Example:
Status1 = freq_selftest();