Last updated: January 16, 2009
This section provides an example of how to make a spectrum emission mask measurement via GPIB. The following program example assumes that the mobile station's (UE's) antenna output is connected to the RF IN/OUT connector, and that the mobile station is transmitting an uplink signal.
The basic procedure is as follows:
10 ! Set trigger mode to single for the Spectrum Emission Mask meas. 20 OUTPUT 714;"SETup:WSEMask:CONTiuous OFF" 30 ! Set the multi-measurement count to 10 40 OUTPUT 714;"SETup:WSEMask:COUNt 10" 50 ! Set a timout value of 5 seconds and enable the timeout state 60 OUTPUT 714;"SETup:WSEMask:TIMeout 5" 70 ! Set the trigger source to automatically select the appropriate 80 ! trigger 90 OUTPUT 714;"SETup:WSEMask:TRIGger:SOURce AUTO" 100 ! Initiate the Spectrum Emission Mask measurement 110 OUTPUT 714;"INITiate:WSEMask" 120 ! Fetch the integrity indicator and the results of the measurement 130 OUTPUT 714;"FETCh:WSEMask?" 140 ENTER 714;Integrity,Wsemask,Chan_power,R1,R2,R3,R4 150 ! Check the integrity indicator to ensure the results are valid 160 IF Integrity<>0 THEN 170 PRINT "Measurement failed." 180 ELSE 190 ! Process the measurement results. 200 END IF 210 END
Integrity
stores the returned integrity indicator value (see
Integrity Indicator
); 0 means a successful measurement with no errors.
R1, R2, R3, and R4
indicate a mask pass or fail for each frequency range based on the average of the power levels associated with the largest mask error for each measurement. Mask pass or fail for each frequency range is determined from the average of the measurement results. The average of the relative power level results for the number of measurements specified is taken. This average is used to determine if that frequency range passed or failed the mask. If multi-measurements were not being used, the mask result would be based on a single measurement value for each frequency range.