Programming a Frequency Stability Measurement
Last updated: October 29, 2004
This section provides an example of how to make analog frequency stability measurements via GPIB.
The following program example assumes that a signal within the measurements range is connected to the RF IN/OUT connector (see
Input Signal Requirements
).
The basic procedure to test Frequency Stability is as follows:
-
Set the operating mode to CW (see
CALL:OPERating
).
-
Enter the expected power (see
RFANalyzer:CW:EXPected:POWer
).
-
Enter the expected frequency (see
RFANalyzer:MANual:MEASurement[:MFRequency]
).
-
Define the Frequency Stability Setup parameters as desired for measurement timeout and multi-measurements (see
SETup:FSTability
).
-
Use the
INITiate
command to start the measurement.
-
Use the
FETCh:FSTability
command to obtain the measurement results.
Programming Example
10 !Set the expected frequency and power.
20 OUTPUT 714;"SETup:FSTability:CONTinuous OFF" !Set the frequency stability
30 !measurement to single trigger mode.
40 OUTPUT 714;"SETup:FSTability:TIMeout 1 S" !Set a timeout value of 1 second
50 !in case the measurement cannot be made.
60 OUTPUT 714;"SETup:FSTability:COUNt 5" !Set multi-measurements to 5.
70 OUTPUT 714;"INITiate:FSTability" !Start the measurement.
80 OUTPUT 714;"FETCh:FSTability?" !Query the returned integrity indicator and the
90 !Worst Case Frequency Error and average Frequency measurements.
100 ENTER 714;Integrity,Freq_error,Frequency !Enter the returned values into variables.
110 IF Integrity=0 THEN !See if the integrity value = 0 (valid measurement).
120 ELSE
130 PRINT "Measurement problem; check for signal level over/under range condition."
140 END IF
150 END
Returned Values
The measurements returned by this program are:
-
Integrity returns the measurement integrity indicator; 0 means a successful measurement with no errors.
-
Freq_error returns the worst case frequency error in parts per million (PPM). Frequency returns the average frequency.
|