Programming an Occupied Bandwidth Measurement
Last updated: January 16, 2009
This section provides an example of how to make occupied bandwidth measurements 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 synchronized to the test set and is transmitting an uplink signal.
The basic procedure is as follows:
-
Set the occupied bandwidth setup parameters as desired using the SETup:WOBWidth commands.
-
Use the INITiate:WOBWidth command to start the measurement.
-
Use the FETCh:WOBWidth? query to obtain the measurement results.
Programming Example
10 ! Set trigger mode to single for the Occupied Bandwidth meas
20 OUTPUT 714;"SETup:WOBWidth:CONTinuous OFF"
30 ! Set a timout value of 5 seconds and enable the timeout state
40 OUTPUT 714;"SETup:WOBWidth:TIMeout 5"
50 ! Set the trigger source to automatically select the appropriate
60 ! trigger
70 OUTPUT 714;"SETup:WOBWidth:TRIGger:SOURce AUTO"
80 ! Turn on multi-measurements and set the count number
90 OUTPUT 714;"SETup:WOBWidth:COUNt 5"
100 ! Initiate the Occupied Bandwidth measurement
110 OUTPUT 714;"INITiate:WOBWidth"
120 ! Fetch the integrity indicator and the statistical results of
130 ! the measurement
140 OUTPUT 714;"FETCh:WOBWidth:INTegrity?;BANDwidth:ALL?"
150 ENTER 714;Integrity,Min,Max,Avg,Sdev
160 ! Check the integrity indicator to ensure the results are valid
170 IF Integrity<>0 THEN
180 PRINT "Measurement failed."
190 ELSE
200 ! Process the measurement results.
210 END IF
220 END
Returned Values
-
Integrity
stores the returned integrity indicator value (see
Integrity Indicator
); 0 means a successful measurement with no errors.
-
Min
returns the minimum occupied bandwidth result in MHz.
-
Max
returns the maximum occupied bandwidth result in MHz.
-
Avg
returns the average occupied bandwidth result in MHz.
-
Sdev
returns the standard deviation of the occupied bandwidth results in MHz.
|