![Agilent Technologies 8960 Series 10 Reference Manual Download Page 200](http://html1.mh-extra.com/html/agilent-technologies/8960-series-10/8960-series-10_reference-manual_2868627200.webp)
200
S:\Hp8960\E1960A GSM Mobile Test Application\A.04 Release\Reference_Manual\Chapters\prog_prog_guide_comprehensive_prog_example.fm
Comprehensive Program Example
Comprehensive Program Example
This section presents two example programs for making measurements using the test set. The first program
follows the task flow presented at the beginning of the programming note (see
“Figure 1. Typical Flow of Tasks
Performed by Control Program” on page 155
) and which is discussed throughout the programming guide. The
second program,
“Example Program Without Comments” on page 206
, is basically the same as the first but
comments have been removed and the coding reflects the use of compound commands and complex commands
to achieve coding efficiency.
Example Program With Comments
10 ! Prog Name: com_man_ex.txt Rev: A.0.2 Date Code: 12/18/98
20 !
30 ! Configure the BASIC environment, dimension and initialize variables.
40 ! These actions are unrelated to programming the Agilent 8960.
50 !
60 OPTION BASE 1
70 COM /Address/ Test_set
80 ! Allocate arrays to hold ORFS switching & modulation frequency offsets.
90 DIM Swit_offs$[255],Mod_offs$[255]
100 ! Allocate arrays to hold measurement results.
110 REAL Txpower(4)
120 Test_set=714 ! Test set’s GPIB address.
130 PRINTER IS CRT
140 CLEAR SCREEN
150 !
160 ! Reset test set to start from a known state. Not always necessary to do full
170 ! preset in a manufacturing environment but desireable in programming example.
180 !
190 OUTPUT Test_set;”*RST”
200 !
210 ! Turn on the GPIB debugger. This is optional but very helpful for debugging
220 ! GPIB commands when developing new code.
230 !
240 OUTPUT Test_set;”SYST:COMM:GPIB:DEB:STAT ON”
250 !
260 ! Check error message queue and STOP if any errors present. This ensures that
270 ! the example program starts with no error conditions present in the test set.
280 !
290 CALL Chk_err_msg_que
300 !
310 !*****************************************************************************
320 ! Step 1: Set Test Set’s Operating Mode to Active Cell
330 !*****************************************************************************
340 !
350 OUTPUT Test_set;”CALL:OPER:MODE CELL”
360 !
370 !*****************************************************************************
380 ! Step 2: Configure the Base Station Emulator (BSE)
390 !*****************************************************************************
Summary of Contents for 8960 Series 10
Page 26: ...26 Contents ...