169
S:\Hp8960\E1962B CDMA 2000\Pi Release\Reference Guide\Chapters\cdma2000_prog_fm.fm
Programming a Frequency Modulation (FM) Measurement
Programming a Frequency Modulation (FM) Measurement
This section provides an example of how to make analog FM deviation and distortion measurements via GPIB.
The following program example assumes that the mobile’s antenna output is connected to the RF IN/OUT
connector, and the mobile is on an analog voice channel (AVC). For information on configuring the test set to
get the mobile on an active call, see “Establishing an Active Link with the Mobile Station” on page 102.
The test set uses the AVC Channel (CALL:SET:AVC) and MS TX Level (CALL:SET:MS:ANALog:TXLevel)
settings of the base station emulator for the expected frequency and power level. To manually set the expected
frequency and power, see “Receiver Control” on page 194.
The basic procedure to test Frequency Stability is as follows:
1. Enter the expected frequency and power.
2. Define the Frequency Modulation SETup parameters as desired to enable the distortion measurement and
set its fundamental frequency, and to define other settings such as measurement timeout and
multi-measurements.
3. Use the INITiate:FM command to start the measurement.
4. Use the FETCh? command to obtain the measurement results.
Programming Example
10 !Set the expected frequency and power.
20 OUTPUT 714;”SETup:FM:COUNt 5” !Set multi-measurements to 5.
30 OUTPUT 714;”SETup:FM:DISTortion:STATe ON” !Enable the distorion measurement.
40 OUTPUT 714;”SETup:FM:DISTortion:FREQuency 1004 HZ” !Set the distortion measurement
50 !Fundamental Frequency (1004 HZ).
60 OUTPUT 714;”SETup:FM:FREQ:STATe ON” !Turn on the modulation frequency measurement.
70 OUTPUT 714;”SETup:FM:FILTer CMESsage” !Select the C-Message filter.
80 OUTPUT 714;”SETup:FM:DETEctor PPEak” !Select the Peak + detector.
90 OUTPUT 714;”SETup:FM:DEMPhasis:STATe OFF” !Make sure de-emphasis is off.
100 OUTPUT 714;”SETup:FM:EXPandor:STATe OFF” !Make sure the expandor is off.
110 OUTPUT 714;”SETup:FM:CONTinuous OFF” !Set the FM measurement to single trigger mode.
120 OUTPUT 714;”SETup:FM:TIMeout 1 S” !Set a timeout value of 1 second
130 !in case the measurement cannot be made.
140 OUTPUT 714;”INITiate:FM” !Start the measurement.
150 OUTPUT 714;”FETCh:FM?” !Query the returned integrity indicator and the
160 !average FM deviation and average FM distortion results.
170 ENTER 714;Integrity,Fm_dev,Fm_dist,Fm_freq !Enter the returned values into variables.
180 IF Integrity=0 THEN !See if the integrity value = 0 (valid measurement).
190 ELSE
200 PRINT “Measurement problem; check for signal level over/under range condition.”
210 END IF
220 END
Returned Values
The measurements returned by this program are: