7-31
(11) Measurement of occupied frequency bandwidth
<Example 2.11> Measuring occupied frequency bandwidth
1) Project file: SMPL211.MAK
1 FORM211.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 OCCBW.BAS This is the code file of the occupied fre-
quency bandwidth measurement module.
7 VBIB.BAS
8 NIGLOBAL.BAS
9 ProjWinSize=87,394,243,136
1Ø ProjWinShow=2
2) Form file: FORM211.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 occ_bw' Calls occupied frequency bandwidth mea-
surement routine.
6 Call SG_out(Ø)' Calls test signal output routine.
7 End Sub
3) Code module file: OCCBW.BAS
1 '----------------------------
2 MT88Ø2A GPLB Sample Proguram
3 ' OCC. BW
4 '----------------------------
5'
6'
7'
8 Sub occ_bw ()
9 Dim sbuf as string * 4Ø
1Ø Dim Endsts%, I%
7.2 Sample Program (Example of Program Using Visual Basic)