Section 7 Sample Programs
7-46
(4) BER measurement (2) BER measurement to test the receiving level
that produces the specified error rate
<Example 3.4> BER measurement to look for test signal level of specified error
ratio
1) Project file: SMPL304.MAK
1 FORM3Ø4.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 SETRX.BAS This is the code file of the parameter set-
ting module for TX measurement in para-
graph 7.2.4 (1).
5 SGOUT.BAS This is the code file of the SG output con-
trol module in paragraph 7.2.1 (2).
6 BERØ2.BAS This is the code file of the BER measure-
ment module.
7 VBIB.BAS
8 NIGLOBAL.BAS
9 ProjWinSize=87,394,243,136
1Ø ProjWinShow=2
2) Form file: FORM304.FRM
The following procedures are added and described.
1 Sub Form3Ø4_click ()
2 Call initial_gpib' Calls GPIB initialization routine.
3 Call Set_RX_parameter'
Calls RX parameter setting routine.
4 Call BER_measure2' Calls BER measurement routine.
5 Call SG_out(Ø)' Calls test signal output routine.
6 End Sub
3) Code module file: BER02.BAS
1 '-------------------------------------
2 ' MT88Ø1C GPIB Sample Program
3 ' Bit Error Rate Measurement (2)
4 '-------------------------------------
5'
6'
7'
8 Sub BER_measure2 ()
9 Const BERLIMIT = .Ø1'
Designates specified error ratio.
1Ø Const SGLVL1! = -5Ø!'