Programming a Maximum/Minimum Power Measurement
Last updated: October 28, 2004
This section provides an example program of how to use the maximum/minimum power measurement via GPIB.
The following program example assumes that the mobile station's antenna output is connected to the RF IN/OUT connector, and the mobile station has found service.
The basic procedure to make the maximum/minimum power measurement is as follows:
-
Make a call. For information on configuring the test set for a call, see
Step 4: Make a connection
.
-
Set up the access parameters as needed using the
CALL:APARameter
commands
-
Configure the maximum/minimum power setup parameters using the
SETup:CMMPower
subsystem.
-
Start the maximum/minimum power measurement using the
INITiate
subsystem.
-
Use the
FETCh:CMMPower
command to obtain the measurement results.
Programming Example
10 Mm_pow: !
20 PRINT "Configure maximum and minimum power measurement parameters"
30 ! Configure the parameters if neccessary !
40 ! Here give an example to follow, the value should be adjusted according the
50 ! mobile phone actual parameters. If nothing is changed, the default value will
60 ! be used. No GPIB command will be called.
70 OUTPUT Testset;"SETUP:CMMPower:PILot:LEVel:MAXimum 7 DB"
80 PRINT "Start measure the Maximum / Minmum Power measurement"
90 !***Obtain measurement results***
100 !
110 OUTPUT Testset;"INITIATE:CMMPOWER" !Initiates a channel power measurement1
120 OUTPUT Testset;"FETCh:CMMPOWER?"
130 ENTER Testset;Integrity,Max_pow,Min_pow
140 DISP "Test complete"
150 !***Display measurement results
160 Print_results("Integrity indicator = ",Integrity,"")
170 Print_results("Maximum Power dBm:",Max_pow,"dBm")
180 Print_results("Minimum Power dBm:",Min_pow,"dBm/1.23 MHz")
190 DISP "Test complete"
200 OUTPUT Testset;"CALL:END" !Ends the call
210 RETURN
220 Print_results: SUB Print_results(Meas_name$,Res1,Units$)
230 PRINT USING "5X,20A,5X,M4D.2D,1X,15A";Meas_name$;Res1;Units$
240 SUBEND
Returned Values
This query returns an integrity indicator followed by the maximum power result and the minimum power result.