Section 7 Sample Programs
7-26
(8) RF power measurement (setting of template)
<Example 2.8> Setting the template for RF power measurement
1) Project file: SMPL208.MAK
1 FORM2Ø8.FRM
2 INITØØ1.BAS Uses the code file of the initialization mod-
ule in paragraph 7.2.2.
3 SETTX.BAS This is the code file of the parameter set-
ting module for TX measurement in para-
graph 7.2.3 (1).
4 RFTMPØ1.BAS This is the code file for the RF power tem-
plate setting module.
5 VBIB.BAS
6 NIGLOBAL.BAS
7 ProjWinSize=87,394,243,136
8 ProjWinShow=2
2) Form file: FORM208.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 Set_template' Calls RF power template setting routine.
5 End Sub
3) Code module file: RFTMP01.BAS
1 '----------------------------
2 ' MT88Ø1C GPIB Sample Program
3 ' RF power (4) Set Template
4 '----------------------------
5'
6'
7'
8 Sub Set_template ()
9 Call ibwrt(Ans%, "MEAS SETTEMP")'
Moves to template setting screen of RF power.
1Ø Call ibwrt(Ans%, "OFFLVL DBM")'
Sets the unit of standard level of Burst OFF to dBm.
11 Call ibwrt(Ans%, "TEMPLVL 1, -56")'
Sets the value of standard level 1 to -56 dBm.
12 Call ibwrt(Ans%, "TEMPLVL 2, 4")'
Sets the value of standard level 2 to +4 dB.
13 Call ibwrt(Ans%, "TEMPLVL 3, -14")'
Sets the value of standard level 3 to -14 dB.
14 End Sub
By line 9, the RF power template setting screen is set.
By lines 10 to 13, the setting of template (level setting) is made.