7-21
12 Call ibwrt(Ans%, "WINDOW SLOT")'
Sets waveform display to Slot.
13 Call ibwrt(Ans%, "UNIT DBM")'
Sets measurement unit to dBm.
14 Call ibwrt(Ans%, "ADJRNG")'
Optimizes power measurement range.
15 '
16 Call ibwrt(Ans%, "STORAGE NRM")'
Sets the mode to normal mode.
17 Call ibwrt(Ans%, "SWP")'
Starts measurement.
18 '
19 Call ibwrt(Ans%, "TXPWR?")'
Inquires the RF power measurement value.
2Ø sbuf = ReceiveResp()
21 Form2Ø5.Print "TX RF Power = "; Val(sbuf); "dBm"
22 End Sub
Set the RF power measurement mode in line 11.
Line 12 sets the MT8801C screen to slot display.
Set the measurement unit to dBm in line 13.
Line 14 optimizes the range to improve the precision of the RF power measurement.
The ADJRNG command stops accepting the next command until range optimization
terminates.
Start the measurement in line 17. The SWP command stops accepting the next com-
mand until the measurement terminates.
Read the measurement results in lines 19 and 20.
(6) RF power measurement (power measurement at marker point)
<Example 2.6> Measuring RF power and reading power at specified marker
point.
1) Project file: SMPL206.MAK
1 FORM2Ø6.FRM
2 INITØØ1.BAS Uses the code file of the initialization mod-
ule in paragraph 7.2.2.
3 RESPØ1.BAS Uses the code file of the response read
module in paragraph 7.2.1 (2).
4 SETTX.BAS This is the code file of the parameter set-
ting module for TX measurement in para-
graph 7.2.3 (1).
5 SGOUT.BAS This is the code file of the SG output con-
trol module in paragraph 7.2.1 (2).
6 RFPWRØ2.BAS This is the code file of the RF power mea-
surement module.
7.2 Sample Program (Example of Program Using Visual Basic)