Comprehensive Program Example; Example Program With Comments - Agilent Technologies 8960 10 Series Reference Manual

Wireless communications test set, gsm mobile test application
Hide thumbs Also See for 8960 10 Series:
Table of Contents

Advertisement

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
Performed by Control Program" on page
second program,
"Example Program Without Comments" on page
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
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
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.
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
!*****************************************************************************
200
S:\Hp8960\E1960A GSM Mobile Test Application\A.04 Release\Reference_Manual\Chapters\prog_prog_guide_comprehensive_prog_example.fm
155) and which is discussed throughout the programming guide. The
Rev: A.0.2
! Test set's GPIB address.
This is optional but very helpful for debugging
"Figure 1. Typical Flow of Tasks
206, is basically the same as the first but
Date Code: 12/18/98

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E5515aE5515bE1960a

Table of Contents