Section 7 Sample Programs
7-24
(7) RF power measurement (reading of measured data string)
<Example 2.7> Measuring RF power, reading and displaying data string
1) Project file: SMPL207.MAK
1 FORM2Ø6.FRM
2 INITØØ1.BAS Uses code file of the initialization module
in paragraph 7.2.2.
3 RESPØ1.BAS Uses 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Ø3.BAS This is the code file of the RF power mea-
surement module.
7 VBIB.BAS
8 NIGLOBAL.BAS
9 ProjWinSize=87,394,243,136
1Ø ProjWinShow=2
2) Form file: FORM207.FRM
The following procedures are added and described.
1 Sub Form_click ()
2 Call initial_gpib' Calls GPIB initialization routine.
3 Call Set_TX_parameter'
Calls TX parameter setting routine.
4 Call SG_out(1)' Calls test signal output routine.
5 Call RF_power3' Calls RF power measurement routine.
6 Call SG_out(Ø)' Calls test signal output routine.
7 End Sub
3) Code module file: RFPWR03.BAS
1 '----------------------------
2 ' MT88Ø1C GPIB Sample Program
3 ' RF power measurement(3)
4 '----------------------------
5'
6'
7'
8 Sub RF_power3 ()
9 Const NUM% = 687' Specifies the number of data items to be
read.
1Ø Dim Trace%(NUM%)' Declares array for storing data.