HP 8921A Programmer's Manual

HP 8921A Programmer's Manual

Cell site test set
Hide thumbs Also See for 8921A:
Table of Contents

Advertisement

HP 8921A Cell Site Test Set
HP-IB Programmer's Guide
Firmware Versions: HP 8921A: A.15.00 and above
RF IN/OUT
DUPLEX OUT
ANT IN
POWE
OF
O
MAX POWER
!
!
MAX POWER 200
HP Part No. 08921-90031
Printed in U. S. A.
December 1998
SCREEN CONTROL
INSTRUMENT STATE
MSSG
HELP
CONFI
HOLD
PRINT
ADRS
SAVE
RX
TX
DUPLE
PREV
TESTS
LOCAL
RECAL
USER
DATA FUNCTIONS
DATA
k1'
REF
METER
AVG
INCR
INCR
INCR
7
8
k1
k2'
LO
HI
k2
4
5
k3'
CURSOR CON-
k3
1
2
ASSIG
k4
RELEA
0
PUSH TO
k5
YES
NO
ppm
ON/OFF
SHIFT
CANCE
MIC/
VOL-
SQUELC
AUDIO
MAX
!
Rev. A
MEAS
PRESE
9
ENTER
dB
GHz
6
%
3
MHz
s
+ _
kHz
ms
%
Hz
MEMO
AUDIO IN
HI
LO
MAX
!
1

Advertisement

Table of Contents
loading

Summary of Contents for HP 8921A

  • Page 1 HP 8921A Cell Site Test Set HP-IB Programmer’s Guide Firmware Versions: HP 8921A: A.15.00 and above SCREEN CONTROL INSTRUMENT STATE MSSG HELP CONFI HOLD PRINT ADRS SAVE MEAS DUPLE PREV TESTS LOCAL RECAL PRESE USER DATA FUNCTIONS DATA k1’ METER...
  • Page 2 Copyright © Hewlett-Packard Company 1997 Notice Information contained in this document is subject to change without notice. All Rights Reserved. Reproduction, adaptation, or translation without prior written permission is prohibited, except as allowed under the copyright laws. This material may be reproduced by or for the U.S. Government pursuant to the Copyright License under the clause at DFARS 52.227-7013 (APR 1988).
  • Page 3 Manufacture’s This statement is provided to comply with the requirements of Declaration the German Sound Emission Directive, from 18 January 1991. This product has a sound pressure emission (at the operator position) < 70 dB(A). Sound Pressure Lp < 70 dB(A). •...
  • Page 4 Safety Considerations GENERAL This product and related documentation must be reviewed for familiarization with safety markings and instructions before operation. This product is a Safety Class I instrument (provided with a protective earth terminal). SAFETY EARTH GROUND A uninterruptible safety earth ground must be provided from the main power source to the product input wiring terminals, power cord, or supplied power cord set.
  • Page 5 Safety Considerations for this Instrument WARNING: This product is a Safety Class 1 instrument (provided with a protective earthing ground incorporated in the power cord) The mains plug shall only be inserted in a socket outlet provided with a protective earth contact. Any interruption of the protective conductor inside or outside of the product is likely to make the product dangerous.
  • Page 6 WARNING: Always use the three-prong ac power cord supplied with this product. Failure to ensure adequate earth grounding by not using this cord may cause product damage. This product is designed for use in Installation Category II and Pollution Degree 2 per IEC 1010 and IEC 664 respectively. For indoor use only. This product has autoranging line voltage input, be sure the supply voltage is within the specified range.
  • Page 7 HP will replace software media which does not execute its pro- gramming instructions due to such defects. 3. HP does not warrant that the operation of HP products will be uninterrupted or error free. If HP is unable, within a reasonable time, to repair or replace any product to a condition as warranted, customer will be entitled to a refund of the purchase price upon prompt return of the product.
  • Page 8 TIONS OR MERCHANTABILITY, SATISFACTORY QUALITY, AND FIT- NESS FOR A PARTICULAR PURPOSE. 8 HP will be liable for damage to tangible property per incident up to the greater of $300,000 or the actual amount paid for the product that is the subject of the claim,...
  • Page 9 24001 E. Mission Avenue Liberty Lake, Washington 99019-9599 declares that the product RF Communications Test Set / Cell Site Test Set Product Name: HP 8920A, HP 8920B, and HP 8921A Model Number: Product Options: This declaration covers all options of the above product.
  • Page 10 Table 1 Regional Sales and Service Offices Eastern USA Eastern USA Midwestern USA Sales Office Service Center Sales and Service Hewlett-Packard Company Hewlett-Packard Company Hewlett-Packard Company 2101 Gather Rd. 150 Green Pond Road 5201 Tollview Drive Rockville, MD 20850 Rockaway, NJ 07866 Rolling Meadows, IL 60008 Tel: (301) 258-2000 Tel: (201) 586-5400...
  • Page 11 Table 1 Regional Sales and Service Offices Asia Japan International Sales Branch Headquarters Sales and Service Sales and Service Sales and Service Hewlett-Packard Asia Ltd. Hewlett-Packard Japan, Ltd. Hewlett-Packard S.A. 22-30/F Peregrine Tower 3-29-21, Takaido-Higashi 39 Rue Veyrot Lippo Center Suginami-Ku, Tokyo 168 P.O.
  • Page 12 Manual with the IBM personal computer (PC) running the MS-DOS operating system. The term "workstation" is used to represent HP 9000 Series 200/300 System Controllers. The acronym IBASIC is used throughout this manual to refer to Instrument BASIC, a subset of the Hewlett-Packard Rocky Mountain BASIC programming language.
  • Page 13 In this Book Chapter 1, Using HP-IB, describes the general guidelines for using HP-IB and how to prepare the Test Set for HP-IB usage. This chapter includes example programs for controlling the basic functions of the Test Set. Chapter 2, Methods For Reading Measurement Results, contains guidelines for programming the test set for returning measurement results.
  • Page 15 Contents 1 Using HP-IB Overview of the Test Set 28 Getting Started 36 Remote Operation 49 Addressing 51 IEEE 488.1 Remote Interface Message Capabilities 52 Remote/Local Modes 55...
  • Page 16 Contents 2 Methods For Reading Measurement Results Background 60 HP BASIC ‘ON TIMEOUT’ Example Program 62 HP BASIC ‘MAV’ Example Program 66...
  • Page 17 Contents 3 HP-IB Command Guidelines Sequential and Overlapped Commands 72 Guidelines for Operation 73...
  • Page 18: Table Of Contents

    Contents 4 HP-IB Commands HP-IB Syntax Diagrams 96 Adjacent Channel Power (ACP) 99 AF Analyzer 101 AF Generator 1 104 AF Generator 2 Pre-Modulation Filters 105 AF Generator 2/Encoder 106 Configure, I/O Configure 121 Call Processing 126 Decoder 145 Display 149...
  • Page 19 Contents Status 172 System 173 Tests 174 Trigger 177 Integer Number Setting Syntax 178 Real Number Setting Syntax 179 Multiple Real Number Setting Syntax 180 Number Measurement Syntax 181 Multiple Number Measurement Syntax 183 Equivalent Front-Panel Key Commands 184 IEEE 488.2 Common Commands 212 Common Command Descriptions 213 Triggering Measurements 228...
  • Page 20 Contents 5 Advanced Operations Increasing Measurement Throughput 238 Status Reporting 244 HP-IB Service Requests 295 Instrument Initialization 305 Passing Control 318...
  • Page 21 Contents 6 Memory Cards/Mass Storage Default File System 330 Mass Storage Device Overview 331 Default Mass Storage Locations 338 Mass Storage Access 340 DOS and LIF File System Considerations 341 Using the ROM Disk 348 Using Memory Cards 349 Backing Up Procedure and Library Files 354 Copying Files Using IBASIC Commands 355 Using RAM Disk 357 Using External Disk Drives 359...
  • Page 22 Contents 7 IBASIC Controller Introduction 362 The IBASIC Controller Screen 363 Important Notes for Program Development 365 Program Development 366 Interfacing to the IBASIC Controller using Serial Ports 368 Choosing Your Development Method 382 Method #1. Program Development on an External BASIC Language Computer 384 Method #2.
  • Page 23 Contents 8 Programming The Call Processing Subsystem Description of the Call Processing Subsystem’s Remote User Interface 444 Using the Call Processing Subsystem’s Remote User Interface 448 Programming The CALL CONTROL Screen 458 Programming The CALL DATA Screen 486 CALL DATA Screen Message Field Descriptions 490 Programming The CALL BIT Screen 501 CALL BIT Screen Message Field Descriptions 512 Programming The ANALOG MEAS Screen 532...
  • Page 24 Contents 9 Error Messages...
  • Page 25 Contents Index 593...
  • Page 26 Contents...
  • Page 27 Using HP-IB...
  • Page 28 Internal and External. In Internal Automatic Control mode the Test Set’s operation is controlled by an application program running on the built-in IBASIC Controller. In External Automatic Control mode the Test Set’s operation is controlled by an external controller connected to the Test Set through the HP-IB interface.
  • Page 29 An HP-IB/RS-232/Parallel Printer interface capability is available in the Test Set. In Manual Control mode this provides the capability of connecting an external HP-IB, serial, or parallel printer to the Test Set so that display screens can be printed.
  • Page 30 Controller when an IBASIC program is running. These include the serial interface at select code 9, the HP-IB interface at select code 7, the parallel printer interface at select code 15, and the CRT. In Manual Control mode, front panel information (instrument settings, measurement results, data input from the DUT) is routed to the CRT through the To Screen control hardware.
  • Page 31 IBASIC programs to run on the internal IBASIC Controller are discussed in this manual. Secondly, the IBASIC Controller has a dedicated HP-IB interface, select code 8 in , for communicating with the internal instruments of the Test Set. This figure 2 HP-IB interface is only available to the IBASIC Controller.
  • Page 32 External Automatic Control Mode In External Automatic Control mode the Test Set’s operation is controlled by an external controller connected to the Test Set through the HP-IB interface. When in External Automatic Control mode the Test Set’s internal configuration is the same as in Manual Control Mode with two exceptions: 1.
  • Page 33 Chapter 1, Using HP-IB Overview of the Test Set Writing programs for the Test Set One of the design goals for automatic control of the Test Set was that it operate the same way programmatically as it does manually. This is a key point to remember when developing programs for the Test Set.
  • Page 34 Chapter 1, Using HP-IB Overview of the Test Set Figure 1 Manual Control Mode...
  • Page 35 Chapter 1, Using HP-IB Overview of the Test Set Figure 2 Internal Automatic Control Mode...
  • Page 36 HP-IB. • An external controller, connected to the external HP-IB, can remotely control the Test Set. • An HP-IB printer, connected to the external HP-IB, can be used to print test results and full screen images.
  • Page 37 Refer to the Tutorial Description of the Hewlett-Packard Interface Bus (HP P/N 5952-0156) for detailed information on HP-IB theory and operation. For the HP 8921A refer to the HP Instrument BASIC Users Handbook (HP P/N E2083-90601) for more information on the IBASIC Version 1.0 language.
  • Page 38 2 on page NOTE: When the TX TEST screen or the RX TEST screen is displayed, any HP-IB commands sent to the Test Set to change the value of a hidden priority field are ignored. Hidden priority fields on the TX TEST or RX TEST screens are not settable manually or programmatically.
  • Page 39 Chapter 1, Using HP-IB Getting Started 2. When entering the TX TEST screen, a. The AF Anl In field, the De-Emphasis field, the Detector field and the AF Analyzer Measurement field (measurement displayed in upper, right portion of CRT display) are, •...
  • Page 40 However, if a previous program has set the state to OFF, the measurement will not be available. Attempting to read from a measurement field that is not in the ON state will cause HP-IB Error:-420 Query UNTERMINATED. 6. If the trigger mode has been changed, trigger a reading.
  • Page 41 Chapter 1, Using HP-IB Getting Started 7. Send the MEASure query command to initiate a reading. This will place the measured value into the Test Set’s Output Queue. NOTE: When making AF Analyzer SINAD, Distortion, Signal to Noise Ratio, AF Frequency, DC Level, or Current measurements, the measurement type must first be selected using the SELect command.
  • Page 42 Chapter 1, Using HP-IB Getting Started • Guideline #3. Avoid program hangs. If the program stops or “hangs up” when trying to ENTER a measured value, it is most likely that the desired measurement field is not available. There are several reasons that can happen: 1.
  • Page 43 Chapter 1, Using HP-IB Getting Started • Guideline #4. Use single quotes and spaces properly. The syntax diagrams in chapter 4, "HP-IB Commands," show where single quotes are needed and where spaces are needed. Example OUTPUT 714;"DISP<space>AFAN" OUTPUT 714;"AFAN:DEMP<space>’Off’" Improper use of single quotes and spaces will cause, HP-IB Error:-103 Invalid Separator •...
  • Page 44 For example, if the Test Set’s front panel is displaying TX Frequency as 835.02 MHz, and the field is queried through HP-IB, the value returned will be 835020000 since the HP-IB Units for frequency are Hz. Note that changing Display Units will not change HP-IB Units or Attribute Units.
  • Page 45 Getting Started Preparing the Test Set For HP-IB Use 1. If other HP-IB devices are in the system, attach an HP-IB cable from the Test Set’s rear- panel HP-IB connector to any one of the other devices in the test system.
  • Page 46 The Test Set has two HP-IB interfaces, an internal-only HP-IB at select code 8 and an external HP-IB at select code 7. The HP-IB at select code 8 is only available to the built-in IBASIC Controller and is used exclusively for communication between the IBASIC Controller and the Test Set.
  • Page 47 Chapter 4, "HP-IB Commands" The bus address 714 used in the following BASIC language examples assumes an HP-IB interface at select code 7, and a Test Set HP-IB address of 14. All examples assume an external controller is being used.
  • Page 48 ENTER 714;Freq !Enter the returned value into a numeric variable NOTE: When querying measurements or settings through HP-IB, the Test Set always returns numeric values in HP-IB Units or Attribute Units, regardless of the current Display Units setting. Refer to "HP-IB Units (UNITs)" on page 80 "Attribute Units...
  • Page 49 Remote Operation The Test Set can be operated remotely through the Hewlett-Packard Interface Bus (HP-IB). Except as otherwise noted, the Test Set complies with the IEEE 488.1-1987 and IEEE 488.2-1987 Standards. Bus compatibility, programming and data formats are described in the following sections.
  • Page 50 Chapter 1, Using HP-IB Remote Operation Remote Capabilities Conformance to the IEEE 488.1-1987 Standard For all IEEE 488.1 functions implemented, the Test Set adheres to the rules and procedures as outlined in that Standard. Conformance to the IEEE 488.2-1987 Standard For all IEEE 488.2 functions implemented, the Test Set adheres to the rules and...
  • Page 51 Chapter 1, Using HP-IB Addressing Addressing Factory Set Address The Test Set’s HP-IB address is set to decimal 14 at the factory. The address can be changed by following the instructions in "Setting the Test Set’s Bus Address" on page Extended Addressing Extended addressing (secondary command) capability is not implemented in the Test Set.
  • Page 52 Chapter 1, Using HP-IB IEEE 488.1 Remote Interface Message Capabilities IEEE 488.1 Remote Interface Message Capabilities The remote interface message capabilities of the Test Set and the associated IEEE 488.1 messages and control lines are listed in table 5 Table 5 Test Set IEEE 488.1 Interface Message Capability...
  • Page 53 Chapter 1, Using HP-IB IEEE 488.1 Remote Interface Message Capabilities Table 5 Test Set IEEE 488.1 Interface Message Capability (Continued) IEEE Message Type Implemented Response 488.1 Message Clear Lockout/ The Test Set returns to local mode (front-panel control) Set Local and local lockout is cleared when the REN bus control line goes false.
  • Page 54 Chapter 1, Using HP-IB IEEE 488.1 Remote Interface Message Capabilities Table 5 Test Set IEEE 488.1 Interface Message Capability (Continued) IEEE Message Type Implemented Response 488.1 Message Trigger If in remote programming mode and addressed to listen, the Test Set makes a triggered measurement following the trigger conditions currently in effect in the instrument.
  • Page 55 Chapter 1, Using HP-IB Remote/Local Modes Remote/Local Modes Remote Mode In Remote mode all front-panel keys are disabled (except for the LOCAL key, POWER switch, Volume control and Squelch control). The LOCAL key is only disabled by the Local Lockout bus command. When in Remote mode and addressed to Listen the Test Set responds to the Data, Remote, Local, Clear (SDC), and Trigger messages.
  • Page 56 :RETR REP then a new measurement cycle is started and measurement results will be available for all active measurements when valid results have been obtained. If the HP-IB trigger mode is :RETR SING then a measurement cycle must be started by issuing a trigger event. Refer to "Triggering Measurements"...
  • Page 57 Chapter 1, Using HP-IB Remote/Local Modes Local Lockout The Local Lockout mode disables the front-panel LOCAL key and allows return to Local mode only by commands from the System Controller (Clear Lockout/Set Local message). When a data transmission to the Test Set is interrupted, which can happen if the LOCAL key is pressed, the data being transmitted may be lost.
  • Page 58 Chapter 1, Using HP-IB Remote/Local Modes...
  • Page 59 Methods For Reading Measurement Results...
  • Page 60 Chapter 2, Methods For Reading Measurement Results Background Background One of the most common remote user interface operations performed on an Test Set is to query and read a measurement result. Generally, this operation is accomplished by sending the query command to the Test Set, followed immediately by a request to read the requested measurement result.
  • Page 61 Chapter 2, Methods For Reading Measurement Results Background This situation can be avoided entirely by: 1. sending a Selected Device Clear (SDC) interface message to put the Test Set’s HP-IB subsystem into a known state. 2. sending a command to terminate the requested measurement cycle.
  • Page 62 32.767 seconds or less is adequate. In the HP RMB language, the timeout parameter for the ON TIMEOUT command has a maximum value of 32.767 seconds. If a timeout value of greater than 32.767 seconds is required refer to the HP BASIC...
  • Page 63 Chapter 2, Methods For Reading Measurement Results HP BASIC ‘ON TIMEOUT’ Example Program COM /Io_names/ INTEGER Inst_addr,Bus_addr CLEAR SCREEN Inst_addr=714 Bus_addr=7 CLEAR Inst_addr OUTPUT Inst_addr;"TRIG:ABORT" OUTPUT Inst_addr;"*RST" OUTPUT Inst_addr;"DISP RFAN" 100 ! Execute a call to the Measure function with a request to measure RF 110 ! power.
  • Page 64 TIMEOUT) to ensure that the Measure function will not be exited until it is finished. Set up a timeout for any I/O activity on the HP-IB. This will allow the function to recover if the bus hangs for any reason.
  • Page 65 The following lines of code handle the case where the request for a measurement result has timed out. Set up a timeout for any I/O activity on the HP-IB while the control program is trying to regain control of the Test Set. This will allow the function to gracefully stop program execution if the control program cannot regain control of the Test Set.
  • Page 66 Status Byte to determine when there is data in the Output Queue. A polling loop is used to query the Status byte. The timeout duration for returning the measurement result is handled by the polling loop. An HP-IB interface activity timeout is also set up to handle time-outs resulting from problems with the HP-IB interface.
  • Page 67 Chapter 2, Methods For Reading Measurement Results HP BASIC ‘MAV’ Example Program COM /Io_names/ INTEGER Inst_addr,Bus_addr CLEAR SCREEN Inst_addr=714 Bus_addr=7 CLEAR Inst_addr OUTPUT Inst_addr;"TRIG:ABORT" OUTPUT Inst_addr;"*RST" OUTPUT Inst_addr;"DISP RFAN" 100 ! Execute a call to the Measure function with a request to measure RF 110 ! power.
  • Page 68 TIMEOUT) to ensure that the Measure function will not be exited until it is finished. Set up a 5 second timeout for any I/O activity on the HP-IB. This will allow the function to recover if the bus hangs for any reason. The length of the timeout will be implementation dependent.
  • Page 69 Set up a timeout for any I/O activity on the HP-IB while the control program is trying to regain control of the Test Set. This will allow the function to gracefully stop program execution if the control program cannot regain control of the Test Set.
  • Page 70 Chapter 2, Methods For Reading Measurement Results HP BASIC ‘MAV’ Example Program Table 7 Comments for Measure Function from MAV Example Program (Continued) Program Line Comments Number Exit the Measure function and return a result value of 9.E+99. The following lines of code handle the case where the control program cannot regain control of the Test Set.
  • Page 71 HP-IB Command Guidelines...
  • Page 72 The process of executing a command can be divided into three steps: 1. Command is accepted from HP-IB and checked for proper structure and parameters. 2. Commands is sent to instrument hardware. 3. Instrument hardware fully responds after some time, ∆t.
  • Page 73 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Guidelines for Operation The following topics discuss rules and guidelines for controlling the Test Set through HP-IB. Command Names All command names of more than four characters have an alternate abbreviated form using only upper case letters and, in some cases, a single numeral. The commands are not case sensitive.
  • Page 74 Quotes are used with all Underlined (toggling) and One-of-many (menu choice) fields. (See “Changing A Field’s Setting” in chapter 1 of the HP 8921A User’s Guide for field type descriptions.) For example, to set the RF Generator’s...
  • Page 75 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Using Colons to Separate Commands The HP-IB command syntax is structured using a control hierarchy that is analogous to manual operation. The control hierarchy for making a manual instrument setting using the front- panel controls is as follows: first the screen is accessed, then the desired field is selected, then the appropriate setting is made.
  • Page 76 Guidelines for Operation Using the Semicolon and Colon to Output Multiple Commands A semicolon followed by a colon (;:) tells the HP-IB command parser that the next command is at the top level of the command hierarchy. This allows commands from different instruments to be output on one command line.
  • Page 77 NOTE: When querying measurements or settings through HP-IB, the Test Set always returns numeric values in HP-IB Units or Attribute Units, regardless of the current Display Units setting. Refer "HP-IB Units (UNITs)" on page 80 "Attribute Units (AUNits)" on page 83 further information.
  • Page 78 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Use the DUNits command to change the units-of- Changing Display Units. measure used by the Test Set to display any field setting or measurement result. For example, to change the Display Units setting for the...
  • Page 79 For example, if dBuV is displayed, DBUV is returned. Guidelines for Display Units • When querying a field’s setting or measurement result through HP-IB, the Test Set always returns numeric values in HP-IB Units or Attribute Units, regardless of the field’s current Display Units setting. •...
  • Page 80 Chapter 3, HP-IB Command Guidelines Guidelines for Operation HP-IB Units (UNITs) HP-IB Units are the units-of-measure used by the Test Set when sending numeric data (field settings and measurement results) through HP-IB, and the default units-of-measure for receiving numeric data (field settings and measurement results) through HP-IB.
  • Page 81 Guidelines for Operation Use the UNITs command to change the HP-IB Units Changing HP-IB Units. setting for selected measurement or instrument setup fields. Only the HP-IB units for power, relative level, and frequency error can be changed. lists the Table 9 measurement and instrument setup fields which have changeable HP-IB Units.
  • Page 82 For example, if the command RFG:FREQ 900 is sent through HP-IB, the Test Set will interpret the data as 900 Hz, since HZ is the HP-IB Unit for frequency. This would result in an Input value out of range error. Sending the command RFG:FREQ 900 MHZ would set the value to 900 MHz.
  • Page 83 Data Function keys: REF SET, METER, HI LIMIT and LO LIMIT respectively. Attribute Units use the same set of units-of-measure as the HP-IB Units (except Frequency Error), but are only used with the MEASure commands: REFerence, METer (HEND, LEND, INT), HLIMit and LLIMit.
  • Page 84 The Meter interval is: 10 The Data Functions are set to their default values whenever • the power is cycled on the Test Set • the front-panel PRESET key is selected • the *RST Common Command is received through HP-IB...
  • Page 85 Chapter 3, HP-IB Command Guidelines Guidelines for Operation The AUNits command can be used to change the Changing Attribute Units. Attribute Units setting for selected measurements. Only the Attribute Units for power and relative level measurements can be changed. lists the Table 11 measurements which have changeable Attribute Units.
  • Page 86 Attribute Units are not changed and the following error is generated: HP-IB This error Error: HP-IB Units cause invalid conversion of attr. is most often encountered when one of the Data Function values listed above is set to zero. If this error is encountered, the programmer must change the Data Function settings to values that can be converted to the new units-of-measure before sending the :AUNits command to the Test Set.
  • Page 87 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Display Units and HP-IB Units are not affected when changing Attribute Units. !Reset the Test Set OUTPUT 714;"*RST" !Set HIgh LIMIT value to 15 OUTPUT 714;"MEAS:AFR:DIST:HLIM:VAL 15" !Set LOw LIMIT value to 1 OUTPUT 714;"MEAS:AFR:DIST:LLIM:VAL 1"...
  • Page 88 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Reading-back Attribute Units. Use the AUNits? command to read back the Attribute Units setting for the selected measurement. For example, the following BASIC language program statements show how the AUNits? command can be used to read-back a...
  • Page 89 When querying measurement functions REFerence, METer, HLIMit and LLIMit through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation. For example, if the REF SET measurement function is displayed as 25% on the Test Set, the value returned through HP-IB is +2.50000000E+001 (2.5×10...
  • Page 90 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Using the STATe Command The STATe command corresponds to the front-panel ON/OFF key and is used to programmatically turn measurements, instrument functions, and data functions ON or OFF. Turning measurements, instrument functions and data functions ON/OFF Use 1 or ON to turn measurements, instrument functions, or data functions ON.
  • Page 91 Chapter 3, HP-IB Command Guidelines Guidelines for Operation Reading back the measurement, instrument function, or data function state Use the query form of the command, STATe?, to determine the current state of a measurement, instrument function or data function. If a measurement, instrument function, or data function is queried, the returned value will be either a “1”...
  • Page 92 1. Use exclamation marks (!) to comment-out lines 440, 450, and 460 (these commands not supported in IBASIC). 2. Change line 70 to Bus = 8 (internal HP-IB select code = 8). 10 ! This program generates an FM carrier, measures and displays the 20 !deviation, and draws the modulation waveform from the 30 !oscilloscope to the CRT display.
  • Page 93 Chapter 3, HP-IB Command Guidelines Guidelines for Operation 380 ! Read the oscilloscope trace into array Trace(*) 390 ! CRT is (X,Y)=(0,0) in lower left corner 400 !to (399,179) upper right. 410 ! (Each pixel is about 0.02 mm wide by 0.03 mm tall, not square.) 420 ! Scale vertically for 0 kHz dev center-screen and +4 kHz dev top 430 ! of screen.
  • Page 94 Chapter 3, HP-IB Command Guidelines Guidelines for Operation...
  • Page 95: Hp-Ib Commands

    HP-IB Commands...
  • Page 96: Hp-Ib Syntax Diagrams

    Chapter 4, HP-IB Commands HP-IB Syntax Diagrams HP-IB Syntax Diagrams HP-IB Command Syntax Diagram Listing Instrument Command Syntax Diagrams AF Analyzer (AFAN), page 101. AF Generator 1 (AFG1), page 104. AF Generator 2 (AFG2) - Pre-Modulation Filters, page 105. AF Generator 2 and Encoder (AFG2, ENC), page 106.
  • Page 97 Configure and I/O Configure (CONF), page 121. Display (DISP), page 149. Program (PROG), page 163. Save/Recall Registers (REG), page 164. Status (STAT), page 172. System (SYS), page 173. Tests (TEST), page 174. HP-IB Only Command Syntax Diagram Special (SPEC), page 171.
  • Page 98 Chapter 4, HP-IB Commands HP-IB Syntax Diagrams Diagram Conventions Use the following diagram to see the conventions used in the syntax diagrams. Statement elements are connected by lines. Each line can be followed in only one direction, as indicated by the arrow at the end of the line. Any combination of statement elements that can be generated by starting at the root element and following the line the proper direction is syntactically correct.
  • Page 99: Adjacent Channel Power (Acp)

    Adjacent Channel Power (ACP) Adjacent Channel Power (ACP) :ACPower :CBAN See Real Number Setting Syntax* *Does not include the :STATe command (Channel BW) See Real Number Setting Syntax* :COFFset *Does not include the :STATe command (Ch Offset) :MEASurement Ratio space ’...
  • Page 100 Adjacent Channel Power (ACP)
  • Page 101: Af Analyzer

    AF Analyzer AF Analyzer :AFANalyzer :AIN space ’ ’ Float (Audio In Lo) 600 To Hi Returns quoted string :CURRent :ZERO 750 uS :DEMPhasis space ’ ’ Returns quoted string 0 dB :GAIN space ’ ’ 10 dB (De-Emp Gain) 20 dB 30 dB Returns quoted string...
  • Page 102 AF Analyzer :AFANalyzer See Real Number Setting Syntax* :ELResistor *Does not include the :STATe command <20Hz HPF :FILTer1 space ’ ’ 50Hz HPF 300Hz HPF Optional Filters Returns quoted string 300Hz LPF :FILTer2 space ’ ’ 3kHz LPF 15kHz LPF >99kHz LP Optional Filters Returns quoted string...
  • Page 103 AF Analyzer :AFANalyzer :NOTCh :FREQuency See Real Number Setting Syntax* *Does not include the :STATe command 0 dB :GAIN space ’ ’ 10 dB 20 dB 30 dB 40 dB Returns quoted string :RANGing Auto space ’ ’ Hold Returns quoted string De-Emp :SMPoint space...
  • Page 104: :Afgenerator1

    AF Generator 1 AF Generator 1 :AFGenerator1 :AFG1 :DESTination space ’ ’ (AFGen1 To) Audio Out Returns quoted string See Real Number Setting Syntax See Real Number Setting Syntax :OUTPut See Real Number Setting Syntax See Real Number Setting Syntax* :FREQuency *Does not include the :STATe command In setting AFGenerator 1, you must first select a destination (DESTination), then...
  • Page 105: Af Generator 2 Pre-Modulation Filters

    To improve performance, one of four pre-modulation filters is automatically selected for each Encoder Mode. The automatically selected filter can only be changed using HP-IB commands; however, we recommend you do not change this setting. In order to change the automatically selected filter, the Filter Mode must be set to ON.
  • Page 106: Af Generator 2/Encoder

    AF Generator 2/Encoder AF Generator 2/Encoder :AFGenerator2 :AFG2 See Real Number Setting Syntax :ENCoder See IntegerNumber Setting Syntax* :BURSt *:INCRement command only :DESTination space ’ ’ (AFGen2 To) Audio Out Returns quoted string See Real Number Setting Syntax :FREQuency See Real Number Setting Syntax* *Does not include the :STATe command :MODE Func Gen...
  • Page 107 AF Generator 2/Encoder :AMPS or :TACS :AFGenerator2 :ENCoder :AMPS :TACS :BUSY Ilde space ’ ’ Busy (Busy/Idle) WS Delay 1stBitDly Returns quoted string :DELay See IntegerNumber Setting Syntax* (B/I Delay) *:INCRement command only :CHANnel Cntl space ’ ’ Voice Returns quoted string :DATA See Real Number Setting Syntax See Real Number Setting Syntax...
  • Page 108 AF Generator 2/Encoder :AFGenerator2 :ENCoder :AMPS :TACS string :FVCMessage space ’ ’ Returns quoted string :MESSage :DATA 1 :DATA 2 string space ’ ’ Returns quoted string :SAT See Real Number Setting Syntax See Real Number Setting Syntax See Real Number Setting Syntax :LEVel See Real Number Setting Syntax* :FREQuency...
  • Page 109 AF Generator 2/Encoder :NAMPs or :NTACs :AFGenerator2 :ENCoder :NAMPs :NTACs :BUSY space Ilde ’ ’ Busy WS Delay 1stBitDly Returns quoted string See IntegerNumber Setting Syntax* :DELay *:INCRement command only Cntl :CHANnel space ’ ’ Voice Returns quoted string :FOCC See Real Number Setting Syntax See Real Number Setting Syntax :LEVel...
  • Page 110 AF Generator 2/Encoder :AFGenerator2 :ENCoder :NAMPs :NTACs :DSAT :SEND :STOP string :MESSage space ’ ’ Returns quoted string :FVC See Real Number Setting Syntax See Real Number Setting Syntax :LEVel See Real Number Setting Syntax See Real Number Setting Syntax* :RATE *Does not include the :STATe command string...
  • Page 111 AF Generator 2/Encoder :CDCSs and :DTMF :AFGenerator2 :ENCoder :CDCSs string space :CODE ’ ’ Returns quoted string See Real Number Setting Syntax* :RATE *Does not include the :STATe command :STANdard CDCSS space ’ ’ Returns quoted string :TOCTime See Real Number Setting Syntax* *Does not include the :STATe command :DTMF :FREQuency...
  • Page 112 AF Generator 2/Encoder :DPAGing :AFGenerator2 :ENCoder :DPAGing string :CODE space ’ ’ (Pager Code) Returns quoted string See Integer Number Setting Syntax :EBIT (Error Bit) :GSC See Integer Number Setting Syntax :FUNCtion :MESSage (Pager Alpha-Numeric Message) :NMESsage (Pager Numeric Message) string space ’...
  • Page 113 AF Generator 2/Encoder :AFGenerator2 :ENCoder :DPAGing :POC :FUNCtion space ’ ’ (POCSAG) Returns quoted string :MESSage (Pager Alpha-Numeric Message) :NMESsage (Pager Numeric Message) string space ’ ’ Returns quoted string :TYPE Tone-Only space ’ ’ ToneVoice (Pager Type) Numeric Apha-Num Returns quoted string :RATE See Real Number Setting Syntax*...
  • Page 114 AF Generator 2/Encoder :FGENerator and :TSEQuential :AFGenerator2 :ENCoder :FGENerator (Func Gen) :WAVeform space Sine ’ ’ Square Triangle Ramp(+) Ramp(-) DC(+) DC(-) Uni Noise Gau Noise Returns quoted string :SUNits space ’ ’ Peak (Sine Units) Returns quoted string :TSEQuential :AMPLitude See Multiple Real Number Setting Syntax (Tone Seq)
  • Page 115 AF Generator 2/Encoder :NMT :AFGenerator2 :ENCoder :NMT :AINformation (Add Info) :BSIDentity :MSNumber :MAINtenance (Mgmt/Maint) :PASSword :SISChallenge :SISResponse space string ’ ’ Returns quoted string :ALEVel (Alarm Level) :LOW :HIGH :ANUMber (Area #) See Integer Number Setting Syntax :BSAVe (Batt Save) :MCHannel (Meas Ch#) :MFSTrength...
  • Page 116 AF Generator 2/Encoder :AFGenerator2 :ENCoder :NMT :DUTest space ’ ’ Returns quoted string :RATE See Real Number Setting Syntax* *Does not include the :STATe command :STANdard space STD450 ’ ’ STD900 BENELUX FRANCE AUSTRIA SPAIN TURKEY THAILAND MALAYSIA SAUDI1 SAUDI2 CRO-SLOV HUNGARY BULGARIA...
  • Page 117 AF Generator 2/Encoder :LTR :AFGenerator2 :ENCoder :LTR :AREA1 :AREA2 :FREE1 :FREE2 :GOTO1 :GOTO2 :HOME1 :HOME2 :ID1 :ID2 See Integer Number Setting Syntax :RATE See Real Number Setting Syntax* *Does not include the :STATe command (Data Rate) :MESSage Message1 space ’ ’...
  • Page 118 AF Generator 2/Encoder :EDACs :AFGenerator2 :ENCoder :EDACs (The :STANdard slection automatically changes the Polarity setting.) :STANdard 9600 space ’ ’ 4800 Returns quoted string :RATE space See Real Number Setting Syntax* *Does not include the :STATe command (Data Rate) Valid range = 4,000 to 10,000 See Integer Number Setting Syntax :CNCH space...
  • Page 119 AF Generator 2/Encoder :MPT1327 :AFGenerator2 :ENCoder :MPT1327 :SIDentity See Integer Number Setting Syntax (System Identity) :PREFix (Prefix) :IDENtity :RUUT See Integer Number Setting Syntax :SCU See Integer Number Setting Syntax :CHANnel :CONTrol :TRAFfic :NUMber See Integer Number Setting Syntax :ALOHa See Integer Number Setting Syntax (Aloha Number) :QUALifier...
  • Page 120 AF Generator 2/Encoder :AFGenerator2 :ENCoder :MPT1327 :STANdard MPT1327 space ’ ’ Returns quoted string :TMODe space ’ ’ Control (Test Mode) Traffic 1200Hz 1800Hz Dotting Returns quoted string :FILLer :RESet :UPDATe integer :CLEAR space Valid range = 1 to 32 :DATA integer string...
  • Page 121: Configure, I/O Configure

    Configure, I/O Configure Configure, I/O Configure The CONFIGURE screen RF Display, RF Chan Std, User Def Base Freq, Chan Space, and (Gen)-(Anl) fields are not accessible through HP-IB. :CONFigure :ARTSwitching Auto space ’ ’ Manual (RX/TX Cntl) Returns quoted string...
  • Page 122 Configure, I/O Configure :CONFigure 1 min :PDOWn space ’ ’ 2 min (Low Battery) 5 min 10 min Disable Returns quoted string :KNOB space ’ ’ Returns quoted string :PRINt (Print :ADDRess See Integer Number Setting Syntax Configure Screen) :DESTination Serial space ’...
  • Page 123 Configure, I/O Configure :CONFigure :RFIMpedance 50 ohm space ’ ’ (RFGen Volts) Returns quoted string :RTSWitching Carrier space ’ ’ (RX/TX Cntl) Returns quoted string :OFLevel (RF Level :MODE space ’ ’ Offset) Returns quoted string :RFINout See Real Number Setting Syntax* *Does not include the :STATe commands RF In/Out See Real Number Setting Syntax*...
  • Page 124 Configure, I/O Configure :CONFigure :SPA (Port A) :SPB (Port B) :BAUD space ’ ’ (Serial Baud) 1200 2400 4800 9600 19200 Returns quoted string :PARity None space ’ ’ Even Always 1 Always 0 Returns quoted string 7 Bits :DATA space ’...
  • Page 125 Configure, I/O Configure :CONFigure :SPORt (Port A) :BAUD space ’ ’ (Serial Baud) 1200 2400 4800 9600 19200 Returns quoted string None :PARity space ’ ’ Even Always 1 Always 0 Returns quoted string :DATA 7 Bits space ’ ’ 8 Bits (Data Length) Returns quoted string...
  • Page 126: Call Processing

    Call Processing Call Processing :CALLP MEAS :MODE space ’ ’ :CPRocess DATA (Display) Returns quoted string :ACTive :REGister :PAGE :HANDoff :RELease :DSPecifer space ’ ’ BITS (Data Spec) Returns quoted string :CCHannel See IntegerNumber Setting Syntax* *Range= 1 to 1023 (Cntrl Chan) AMPS :CSYStem...
  • Page 127 Call Processing :CALLP :PNUMber 10 characters max space ’ ’ :CPRocess (Phone Num) Returns quoted string :MINumber 9 characters max space ’ ’ (Min) Returns quoted string :CMAXimum See IntegerNumber Setting Syntax* *Range= 1 to 4049 (CMAX) :SATone 5970Hz space ’...
  • Page 128 Call Processing :CALLP :CPRocess :ORDer Chng PL 0 space ’ ’ Chng PL 1 (Order) Chng PL 2 Chng PL 3 Chng PL 4 Chng PL 5 Chng PL 6 Chng PL 7 Mainten Alert Returns quoted string SPC WORD1 :MESSage space ’...
  • Page 129 Call Processing :CALLP Returns quoted string :RCDD1 :CPRocess :RCDDATA1 :RCDD2 Returns quoted string :RCDDATA2 Returns quoted string :RCDD3 :RCDDATA3 Returns quoted string :RCDD4 :RCDDATA4 :RCDD5 Returns quoted string :RCDDATA5 Returns quoted string :RCDD6 :RCDDATA6 :AVCNumber Returns quoted string (Chan:) Returns quoted string :AVCPower (Pwr Lvl:) Returns quoted string...
  • Page 130 Call Processing :CALLP :RECB :CPRocess Returns quoted string (Word B) :FWORD Returns quoted string :NAWComing (NAWC) Returns quoted string :LOCal (Local) Returns quoted string :ORDQualifier (ORDQ) Returns quoted string :ORDer (Order) Returns quoted string (LT) :LTRY Returns quoted string :MINumber (MIN1) Returns quoted string :RSVD...
  • Page 131 Call Processing :CALLP :RECD :CPRocess Returns quoted string (Word D) :FWORD Returns quoted string :NAWComing (NAWC) Returns quoted string :DIG1 (Dig 1) :DIGIT1 Returns quoted string :DIG2 (Dig 2) :DIGIT2 :DIG3 Returns quoted string (Dig 3) :DIGIT3 :DIG4 Returns quoted string (Dig 4) :DIGIT4 Returns quoted string...
  • Page 132 Call Processing :CALLP :RECE :CPRocess Returns quoted string (Word E) :FWORD Returns quoted string :NAWComing (NAWC) Returns quoted string :DIG9 (Dig 9) :DIGIT9 Returns quoted string :DIG10 (Dig 10) :DIGIT10 :DIG11 Returns quoted string (Dig 11) :DIGIT11 :DIG12 Returns quoted string (Dig 12) :DIGIT12 Returns quoted string...
  • Page 133 Call Processing :CALLP :RCOConfirm :CPRocess Returns quoted string (Order Confirmation :FWORD Message) Returns quoted string :NAWComing (NAWC) Returns quoted string :TFIeld Returns quoted string :LOCal (Local) :ORDQualifier Returns quoted string (ORDQ) Returns quoted string :ORDer (Order) :RSVD Returns quoted string (RSVD) :REServed Returns quoted string...
  • Page 134 Call Processing :CALLP :SPOM1 :CPRocess 2 chars required :SPOMESSAGE1 :TYPE space ’ ’ (T1T2) (SPC Word 1) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 14 chars required :SIDentify space ’ ’ (SID1) Returns quoted string 3 chars required :RSVD...
  • Page 135 Call Processing :CALLP :SPOM2 :CPRocess 2 chars required :SPOMESSAGE2 :TYPE space ’ ’ (T1T2) (SPC Word 2) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 1 char required :SERial space ’ ’ Returns quoted string :EXTended 1 char required space...
  • Page 136 Call Processing :CALLP :ACCess :CPRocess (ACCESS) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 4 chars required :ACTion space ’ ’ (ACT) Returns quoted string :BIS 1 char required space...
  • Page 137 Call Processing :CALLP :RINCrement :CPRocess (REG INC) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 4 chars required :ACTion space ’ ’ (ACT) Returns quoted string :RINCrement 12 chars required space...
  • Page 138 Call Processing :CALLP :RIDentify :CPRocess (REG ID) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 20 chars required :IDENtify space ’ ’ (REGID) :REGID Returns quoted string :END 1 char required space...
  • Page 139 Call Processing :CALLP :CFMessage :CPRocess (C-FILMESS) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 6 chars required :FIELD1 space ’ ’ (F1) Returns quoted string 3 chars required :CMACode space...
  • Page 140 Call Processing :CALLP :MSWord :CPRocess (MS WORD 1) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :DCCode space ’ ’ (DCC) Returns quoted string 24 chars required :MINumber space ’ ’ (MIN1) Returns quoted string :PARity Returns quoted string (Parity)
  • Page 141 Call Processing :CALLP :MSORder :CPRocess (MSMessOrd) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :SCCode space ’ ’ (SCC) Returns quoted string 10 chars required :MINumber space ’ ’ (MIN2) Returns quoted string 1 char required :RSVD space...
  • Page 142 Call Processing :CALLP :MSVoice :CPRocess (MS IntVCh) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :SCCode space ’ ’ (SCC) Returns quoted string 10 chars required :MINumber space ’ ’ (MIN2) Returns quoted string 3 chars required :VMACode space...
  • Page 143 Call Processing :CALLP :FVORder :CPRocess (FVC O Mes) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :SCCode space ’ ’ (SCC) Returns quoted string 2 chars required :PSCCode space ’ ’ (PSCC) Returns quoted string 9 char required :RSVD space...
  • Page 144 Call Processing :CALLP :FVVoice :CPRocess (FVC VMes) 2 chars required :TYPE space ’ ’ (T1T2) :T1T2 Returns quoted string 2 chars required :SCCode space ’ ’ (SCC) Returns quoted string 2 chars required :PSCCode space ’ ’ (PSCC) Returns quoted string 8 char required :RSVD space...
  • Page 145: Decoder

    Decoder Decoder For Decoder measurements see the MEASure command diagram. For selecting Decoder Input, see AF Anaylzer command diagram. :DECoder :ARM :MODE space Single ’ ’ Cont Returns quoted string :LEVel See Real Number Setting Syntax* *Does not include the :STATe command See Real Number Setting Syntax* *Does not include the :STATe command :VOLTs...
  • Page 146 Decoder :NAMPs or :NTACs and :EDACs :DECoder :NAMPs :GATE See Real Number Setting Syntax* :NTACs *Does not include the :STATe command (Gate Time) Cntl :CHANnel space ’ ’ Voice Returns quoted string :DTMF See Real Number Setting Syntax* :GATE *Does not include the :STATe command :RVC DSAT space...
  • Page 147 Decoder :AMPs or :TACs and :CDCSs, :DTMF, :FGEN, and :DPAG :DECoder :AMPS :GATE See Real Number Setting Syntax* :TACS *Does not include the :STATe command :STANdard AMPS space ’ ’ TACS (Measure) JTACS Returns quoted string :MESSage FOCC A & B space ’...
  • Page 148 Decoder :TSEQuential, :MPT1327, and :LTR :DECoder :TSEQuential :GATE See Real Number Setting Syntax* *Does not include the :STATe command :STANdard CCIR1 space ’ ’ CCIR2 CCITT Euro NATEL ZVEI1 ZVEI2 Returns quoted string :MPT1327 :TIME SLOT :MODE space ’ ’ RESPONSE Returns quoted string :LTR...
  • Page 149: Display

    Display Display :DISPlay space ACNTrol ACPower AFANalyzer CANanlyzer CBIT CCNFigure CDANalyzer ACPower CDATa CDMAtest CGENerator CMEasure CONFigure DECoder DUPLex ENCoder HELP IOConfigure MESSage OSCilloscope PCONfigure PDCtest RFANalyzer RFGen RINTerface SANalyzer SERVice TCONfigure Returns current screen :DISP continued...
  • Page 150 Display :DISPlay TDMA test space TESTs TFReq THLP TIBasic TMAKe TPARm TPRint TSEQn TSPec Returns current screen...
  • Page 151: Measure

    Measure Measure :MEASure :RESet :ACPower :LRATio :URATio :LLEVel :ULEVel Returns real value See Number Measurement Syntax :AFRequency :ACLevel :CURRent :DCAM :DCFM :DCVolts :DISTN :DISTortion :FREQuency :SINAD :SNR Returns real value See Number Measurement Syntax :SELect SINAD space ’ ’ Distn AF Freq DC Level Current...
  • Page 152 Measure :MEASure :OSCilloscope :MARKer :LEVel :VOLTs :TIME Returns real value See Number Measurement Syntax* *Does not include the :METer command :TRACe Returns 417 real value :RFRequency :FREQuency :ABSolute :ERRor :POWer Returns real value See Number Measurement Syntax :SANalyzer :MARKer :FREQuency :LEVel Returns real value See Number Measurement Syntax*...
  • Page 153 Measure :MEASure :DECoder :AMPS :TACS :NBITs Returns integer value :CDATA :CDATa :DATA Returns quoted string :CDCSs :BITS :CODes Returns quoted string :RATE Returns real value See Number Measurement Syntax* *Does not include the :METer command :DPAGing :DATA Returns quoted string :RATE Returns real value See Number Measurement Syntax*...
  • Page 154 Measure :MEASure :DECoder :DTMF :LOW :HIGH :FREQuency :ABSolute :ERRor Returns up to 19 real values See Multiple Number Measurement Syntax Freq :DISPlay space ’ ’ Frq Err :TIME Returns quoted string :OFF Returns up to 19 real values See Multiple Number Measurement Syntax :SYMBol Returns quoted string...
  • Page 155 Measure :MEASure :DECoder :NAMPs :NTACs :NBITs Returns integer value :RECC :RVC :DSAT :DATA Returns quoted string :DTMF :LOW :HIGH :FREQuency :ABSolute :ERRor Returns up to 17 real values See Multiple Number Measurement Syntax Freq :DISPlay space ’ ’ :TIME Frq Err Returns quoted string :OFF Returns up to 17 real values...
  • Page 156 Measure :MEASure :DECoder :MPT1327 :BUFFer Returns quoted string :NSLots Returns integer value :TIMe Returns integer value :RATE Returns real value See Number Measurement Syntax* *Does not include the :METer command :DATA Returns quoted string :FGENerator Returns real value :FREQuency See Number Measurement Syntax :NMT :NFRames Returns integer value...
  • Page 157 Measure :MEASure :DECoder :LTR Returns real value :RATE See Number Measurement Syntax* *Does not include the :METer command :DATA Returns quoted string :EDACs Returns quoted string of 74 characters :DATA...
  • Page 158: Oscilloscope

    Oscilloscope Oscilloscope For Oscilloscope measurements see the MEASure command diagram. :OSCilloscope :CONTrol space Main ’ ’ Trigger Marker Returns quoted string :MARKer :NPEak (Peak -) :PPEak (Peak +) :POSition See Real Number Setting Syntax* *Does not include the :STATe command :OSC continued...
  • Page 159 Oscilloscope :OSCilloscope :SCALe :TIME 200 ms space ’ ’ 100 ms 50 ms 20 ms 10 ms 5 ms 2 ms 1 ms 500 uS 200 uS 100 uS 50 uS 20 uS 10 uS 5 uS 2 uS 1 uS Returns quoted string :OSC:SCAL Continued On Next Page :OSC continued...
  • Page 160 Oscilloscope :OSCilloscope :SCALe :VERTical 50 % space ’ ’ 20 % (AF Anl In: AM Demod) 10 % 0.5 % 0.2% 0.1% 0.05 % Returns quoted string 50 kHz space ’ ’ 20 kHz (AF Anl In: FM Demod) 10 kHz 5 kHz 2 kHz 1kHz...
  • Page 161 Oscilloscope :OSCilloscope :SCALe :VERTical 20 V :VOLTs space ’ ’ 10 V (AF Anl In: Audio In) 500 mV 200 mV 100 mV 50 mV 20 mV 10 mV 5 mV 2 mV 1 mV 500 uV 200 uV 100 uV 50 uV 20 uV Returns quoted string...
  • Page 162 Oscilloscope :OSCilloscope :TRIGger :LEVel :PRETrigger :DELay See Real Number Setting Syntax* *Does not include the :DUNits, :UNITs, :STATe, or :MODe commands Cont :MODE space ’ ’ Single Returns quoted string :RESet :SENSe space ’ ’ Returns quoted string :SOURce Internal space ’...
  • Page 163: Program

    Program Program :PROGram :SELected :DEFine program space Returns <length info><program> string :EXECute :STATe space CONTinue PAUSe STOP Returns current program state variable name number value :NUMBer space variable name space Returns quoted string variable name number value :STRing space variable name space Returns quoted string :WAIT...
  • Page 164: Save/Recall Registers

    Save/Recall Registers Save/Recall Registers :REGister integer value or string :CLEar space ’ ’ :ALL integer value or string :RECall space ’ ’ integer value or string :SAVE space ’ ’ NOTE: The Test Set does not check for a duplicate file name when the SAVE command is issued;...
  • Page 165: Rf Analyzer

    RF Analyzer RF Analyzer For RF Analyzer measurements see the MEASure command diagram. :RFANalyzer :ATTenuator space 40 dB ’ ’ 20 dB 0 dB Returns quoted string :MODE space Auto ’ ’ Hold Returns quoted string See Real Number Setting Syntax* :FREQuency *Does not include the :STATe command (Tune Freq)
  • Page 166 RF Analyzer :RFANalyzer Normal :SENSitivity space ’ ’ High Returns quoted string :SQUelch space ’ ’ Open Fixed Returns quoted string :TKEY space ’ ’ (Ext TX Key) Returns quoted string Auto :TMODe space ’ ’ Manual (Tune Mode) Returns quoted string...
  • Page 167: Rf Generator

    RF Generator RF Generator For RF Generator measurements see the MEASure command diagram. :RFGenerator :ATTenuator space ’ ’ (Atten Hold) Returns quoted string See Real Number Setting Syntax :AMPLitude See Real Number Setting Syntax* :FREQuency *Does not include the :STATe command :DCZero (FM Coupling) :COUPling...
  • Page 168: Radio Interface

    Radio Interface Radio Interface :RINTerface :INTerrupt1 :INTerrupt2 space ’ ’ Disable Returns quoted string :STATus Returns ’’Armed’’ or ’’Disabled’’ :PARallel :CONFigure See Integer Number Setting Syntax :INPut :DATA Returns integer value :READ :OUTPut :DATA See Integer Number Setting Syntax :SEND High :STRobe space...
  • Page 169: Spectrum Analyzer

    Spectrum Analyzer Spectrum Analyzer For Spectrum Analyzer measurements see the MEASure command diagram. :SANalyzer :ATTenuator space 40 dB ’ ’ 20 dB (Input Atten) 0 dB Returns quoted string :MODE space Auto ’ ’ Hold Returns quoted string See Real Number Setting Syntax* :CFRequency *Does not include the :STATe command :DISPlay...
  • Page 170 Spectrum Analyzer :SANalyzer Track :RFGenerator space ’ ’ Fixed Returns quoted string See Real Number Setting Syntax :RLEVel See Real Number Setting Syntax :SPAN :TGENerator :AMPLitude See Real Number Setting Syntax :OFRequency See Real Number Setting Syntax* (Offset Freq) *Does not include the :STATe command :DESTination space RF Out...
  • Page 171: Hp-Ib Only Commands

    HP-IB Only Commands HP-IB Only Commands :SPECial :TOTALUSERRAM Returns integer string Returns integer string :RAMFORIBASIC :RAMDISKALLOC Returns integer string :SAVEREGALLOC Returns integer string :RELAYCOUNT Returns an array of 7 numbers seperated by commas...
  • Page 172: Status

    Status Status :STATus :PRESet :CALibration :HARDware1 :HARDware2 :OPERation :QUEStionable :COMMunicate :CALLProc :EVENt :CONDition Returns integer value :ENABle :NTRansition :PTRansition integer value space Returns integer value...
  • Page 173: System

    System System :SYSTem Returns integer value, quoted string :ERRor...
  • Page 174: Tests

    Tests Tests :TESTs :COMMent1 (Comment for new procedure) :COMMent2 (Comment for space ’ ’ new procedure) Returns quoted string :CONFigure integer value string string space ’ ’ ’ ’ (External Devices) integer value string ’ ’ integer value space Returns unquoted string, 5 elements seperated by commas :EXECution (Port B) :DESTination...
  • Page 175 Tests :TESTs :FREQuency integer value real number string space ’ ’ real number string ’ ’ string string ’ ’ ’ ’ integer value Returns unquoted string, 7 elements seperated by commas space :PARAmeter :NUMBer integer value real number :PARameter space Returns unquoted string, 2 elements integer value...
  • Page 176 Tests :TESTs space integer value string :SEQNumber ’ ’ :NUMBer Returns unquoted string, 3 elements integer value space seperated by commas integer value real value :SPEC space :NUMBer real value Upper ’ ’ Lower Both None Returns unquoted string, 4 elements integer value space seperated by commas...
  • Page 177: Trigger

    Trigger Trigger :TRIGger :IMMediate :ABORt :MODE :RETRigger REPetitive space ’ ’ SINGle Returns REP or SING FAST :SETTling space ’ ’ FULL Returns FAST or FULL...
  • Page 178: Integer Number Setting Syntax

    Integer Number Setting Syntax Integer Number Setting Syntax Previous Syntax space integer value Binary integer value Octal integer value Hexidecimal integer value Returns integer value :INCRement space DOWN Returns real value...
  • Page 179: Real Number Setting Syntax

    Returns units :INCRement value space units DOWN Returns real value :DUNits units space Returns units :MODE space LINear LOGarithm Returns LIN or LOG :DIVide :MULTiply :UNITs space HP-IB units Returns HP-IB units :STATe space Returns 1 or 0...
  • Page 180: Multiple Real Number Setting Syntax

    Returns units :MODE space integer value LINear LOGarithm Returns LIN or LOG space integer value :DIVide space integer value :MULTiply space integer value :UNITs space integer value HP-IB units space integer value Returns HP-IB units...
  • Page 181: Number Measurement Syntax

    Number Measurement Syntax Number Measurement Syntax Previous Syntax :AUNits space HP-IB units Returns HP-IB units :AVERag real value space :VALue Returns real value :RESet :STATe space Returns 1 or 0 :DUNits space units Returns units :HILIMit real value space units...
  • Page 182 :INTerval space integer value Returns integer value :REFerence space real value units :VALue Returns real value :DUNits units space Returns units :STATe space Returns 1 or 0 :STATe space Returns 1 or 0 :UNITs space HP-IB units Returns HP-IB units...
  • Page 183: Multiple Number Measurement Syntax

    Multiple Number Measurement Syntax Multiple Number Measurement Syntax Previous Syntax :DUNits space units Returns units :UNITs space HP-IB units Returns HP-IB units :STATe space Returns 1 or 0...
  • Page 184: Equivalent Front-Panel Key Commands

    User’s Guide. All command examples are in BASIC. SHIFT key, CANCEL key, CURSOR CONTROL knob These functions are not required for HP-IB use, and have no equivalent HP-IB commands. DATA Keys In addition to the numeric keys, the DATA keys contain the units-of-measure keys, and the ON/OFF, YES, NO, and ENTER keys.
  • Page 185 Guidelines for Using Measurement Data Functions • Data Functions are turned ON and OFF for individual measurements. The HP-IB Data Function commands must immediately follow the HP-IB command for the individual measurement. For example, to turn the AVG Data Function ON for the Audio...
  • Page 186 RC low-pass filter. If the AVG data function is enabled programmatically and the number of averages is set to ten (N=10) the first value returned through HP-IB is the average of 1 measurement, the second value returned through HP-IB is the average of two measurements, the third value returned through HP-IB is the average of three measurements…the tenth value returned through HP-IB is the...
  • Page 187 Equivalent Front-Panel Key Commands Use the :AVERage:STATe To Turn Measurement Averaging ON and OFF. commands to turn the averaging data function ON and OFF. Syntax :AVER age:STATe ON :AVERage:STATe OFF Example OUTPUT 714;"MEAS:AFR:DISTN:AVER:STAT ON" This turns the AVG Data Function ON for the Audio Frequency Analyzer Distortion measurement.
  • Page 188 Equivalent Front-Panel Key Commands Use the :AVERage:RESet commands to restart the To Reset Averaging. averaging algorithm used to calculate an averaged measurement. Syntax :AVERage:RESet Example OUTPUT 714;"MEAS:AFR:DISTN:AVER:RES" This resets the AVG Data Function for the Audio Frequency Analyzer Distortion measurement. Use the :AVERage:VALue commands to set the To Set the Number of Averages.
  • Page 189 The HI LIMIT and LO LIMIT Data Functions are used to define a measurement “window” which can be used to detect measured values which are outside the defined limits. The HP-IB commands :HLIMit (high limit) and :LLIMit (low limit) are used to set these data functions programmatically.
  • Page 190 Equivalent Front-Panel Key Commands Use the To Query the State of High and Low Measurement Limit Checking. :HLIMit:STATe? and :LLIMit:STATe? commands to query the current state of the high and low measurement limit checking. The returned value is either: 0 (OFF) or 1 (ON).
  • Page 191 Audio Frequency Analyzer FM Deviation measurement. NOTE: When querying measurement limits through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation. Refer "Attribute Units (AUNits)"...
  • Page 192 Frequency Analyzer FM Deviation measurement. NOTE: When querying measurement limits through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation. Refer "Attribute Units (AUNits)"...
  • Page 193 Frequency Analyzer FM Deviation measurement. INCR SET The Increment Set Data Function sets the increment value for real-number numeric entry fields. The HP-IB command :INCRement is used to select this data function programmatically. Use the :INCRement command to set the increment To Set the Increment Value.
  • Page 194 RF Gen Freq NOTE: When querying a field setting or measurement result through HP-IB, the Test Set always returns numeric values in HP-IB Units or Attribute Units, regardless of the field’s current Display Units setting. Refer to "Attribute Units (AUNits)" on page 83 "HP-IB Units (UNITs)"...
  • Page 195 Generator’s frequency. NOTE: When querying a field setting through HP-IB, the Test Set always returns numeric values in HP-IB Units or Attribute Units, regardless of the field’s current Display Units setting. Numeric values are expressed in scientific notation. Refer to "Attribute Units (AUNits)"...
  • Page 196 Equivalent Front-Panel Key Commands Syntax :INCRement:MULTiply Example OUTPUT 714;"RFG:FREQ:INCR:MULT" If the RF Generator’s frequency increment is 1 MHz, this command increases increment value from 1 MHz to 10 MHz. INCR÷10 ÷ The INCR 10 Data Function reduces the increment setting by a factor of 10 (new ÷...
  • Page 197 Equivalent Front-Panel Key Commands METER The METER Data Function enables/disables the analog bar-graph meter for certain measurements. The HP-IB command :METer is used to select this data function programmatically. Use the :METer:STATe commands to turn the To Turn the Meter ON and OFF.
  • Page 198 Equivalent Front-Panel Key Commands Use the :METer:INTerval To Set the Number of Intervals on the Meter. commands to set the number of intervals displayed on the analog bar-graph meter. Syntax :METer:INTerval <integer valve> Example OUTPUT 714;"MEAS:RFR:POW:MET:INT 5" This sets the number of intervals displayed on the analog bar-graph meter for the TX Power measurement.
  • Page 199 TX Power measurement. NOTE: When querying the value of the METER Data Function through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation.
  • Page 200 TX Power measurement to DBM. NOTE: When querying the METER Data Function through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation.
  • Page 201 Equivalent Front-Panel Key Commands REF SET The REF SET Data Function establishes a measurement reference point. The HP-IB command :REFerence is used to select this data function programmatically. Use the To Turn Measurement Reference Points ON and OFF. :REFerence:STATe <boolean> commands to turn measurement reference points ON and OFF.
  • Page 202 When querying a measurement reference point through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation. Refer to "Attribute Units (AUNits)" on page...
  • Page 203 When querying a measurement reference point through HP-IB, the Test Set always returns numeric values in Attribute Units, regardless of the current Display Units or HP-IB Units settings. Numeric values are expressed in scientific notation. Use the To Query Measurement Reference Point Display Units.
  • Page 204 ADRS The ADRS key displays the Test Set’s HP-IB address in the upper left-hand corner of the CRT. There is no equivalent HP-IB command for the ADRS key. The current address can also be viewed by looking at the field on HP-IB Adrs the I/O CONFIGURE screen.
  • Page 205 Measurement limit checking (HI LIMIT and LO LIMIT keys), Peak Hold (AF Analyzer peak hold detectors, Spectrum Analyzer trace peak hold), autotuning and autoranging, and re-starts all active measurements. The HP-IB commands :MEASure:RESet are used to select this function programmatically.
  • Page 206 "*RCL (Recall Instrument State)" on page 227 SAVE The SAVE key is used to save an instrument state. The HP-IB commands :REGister:SAVE are used to select this function programmatically. The SAVE/RECALL mass storage device is selected using the SAVE/RECALL field on the I/O CONFIGURE screen.
  • Page 207 The save/recall mass storage device is selected using the field on the I/ SAVE/RECALL O CONFIGURE screen. The HP-IB commands :REGister:CLEar are used to perform this function programmatically. Syntax :REGister:CLEar ’<file name>’...
  • Page 208 Test Set To Screen screens on the CRT. The HP-IB command :DISPlay is used to perform this function programmatically. See for the screen mnemonics for table 12 on page 210 the DISPlay command.
  • Page 209 The PRINT key is used to print a “pixel dump” of the currently displayed screen to an external printer. There is no equivalent HP-IB command to the PRINT key. To print measurement results through HP-IB, the program must query the...
  • Page 210 Programming language ON KEY command could be used to force execution of a user written IBASIC routine which emulates the user key to Test Set field assignment (while an IBASIC program is running). Refer to the HP Instrument BASIC Users Handbook for further information on the ON KEY command.
  • Page 211 Equivalent Front-Panel Key Commands Table 12 Screen Mnemonics for the DISPlay Command Mnemonic Screen Mnemonic Screen DECoder SIGNALING DECODER TMAKe TESTS (Save/Delete Procedure) DUPLex DUPLEX TEST TPARm TESTS (Tests Parameters) ENCoder SIGNALING ENCODER TPRint TESTS (Printer Setup) HELP HELP TSEQn TESTS (Order of Tests) IOConfigure I/O CONFIGURE...
  • Page 212: Ieee 488.2 Common Commands

    IEEE 488.2 Common Commands The IEEE 488.2 Standard defines a set of common commands which provide for uniform communication between devices on the HP-IB. These commands are common to all instruments which comply with the IEEE 488.2 Standard. These commands control some of the basic instrument functions, such as instrument identification, instrument reset, and instrument status reporting.
  • Page 213: Common Command Descriptions

    Device Identification Typical Response Field Contents Comments from Test Set Manufacturer Hewlett-Packard Model HP 8921A Depends upon Model of Test Set Serial Number US12345678 ASCII character “0”, decimal value 48, if not available Firmware B.01.08 ASCII character “0”, decimal Revision...
  • Page 214 Common Command Descriptions Example BASIC program 10 DIM A$[10]20 OUTPUT 714;"*IDN?" 30 ENTER 714;A$ 40 PRINT A$ 50 END Example response Hewlett-Packard,8921A,2423A00189,A.12.04...
  • Page 215 Example response from HP 8921A with Opt. 042 and HP 83201A Cellular Adapter 0,ERICSSON BS REF,IQ MODEM,0,0,0,0,0,0,0 Example response from standard HP 8921A with HP 83203B Cellular Adapter 0,0,0,0,0,0,0,0,0,HP83203B Example response from HP 8921A with Opt. 042 and HP 83205A Opt. 003 CDMA & CDPD Cellular Adapter 0,ERICSSON BS REF,0,0,0,0,0,0,0,0,CDMA.001,CDPD.001,0 Table 15...
  • Page 216 HP 83201A Dual Mode Cellular Adapter IQ MODEM HP 83201B Opt. 003 TDMA Cellular Adapter HP 83204A Opt. 001 TDMA Cellular Adapter HP 83204A Opt. 003 TDMA & CDPD Cellular Adapter 011 CCITT Weighting Filter (replaces standard C-Message TACS filter for TACS base station test)
  • Page 217 • Calibration data is not affected. • The HP-IB interface is not reset (any pending Service Request is not cleared). • All Enable registers are unaffected: Service Request, Standard Event, Communicate, Hardware #1, Hardware #2, Operation, Calibration, and Questionable Data/Signal.
  • Page 218 Common Command Descriptions *TST? (Self-Test Query) The *TST? self-test query causes the Test Set to execute a series of internal self- tests and place a numeric response into the Output Queue indicating whether or not the Test Set completed the self-test without any detected errors. The response data is obtained by reading the Output Queue into a numeric variable, real or integer.
  • Page 219 Common Command Descriptions *OPC (Operation Complete) The *OPC command allows for synchronization between the Test Set and an external controller. The *OPC command causes the Test Set to set bit 0, Operation Complete, in the Standard Event Status Register to the TRUE, logic 1, state when the Test Set completes all pending operations.
  • Page 220 120 SUB Srvice_interupt 130 PRINT "All operations complete." 140 ! Note: 150 ! This interrupt service routine is not complete. "HP-IB Service Requests" in chapter 5 160 ! Refer to the 170 ! complete information. 180 SUBEND The program enables bit 0 in the Standard Event Status Enable Register and also bit 5 in the Service Request Enable Register so that the Test Set will request service whenever the OPC event bit becomes true.
  • Page 221 Common Command Descriptions *OPC? (Operation Complete Query) The *OPC? query allows for synchronization between the Test Set and an external controller by reading the Output Queue or by polling the Message Available (MAV) bit in the Status Byte Register. The *OPC? query causes the Test Set to place an ASCII character, 1, into its Output Queue when the Test Set completes all pending operations.
  • Page 222 *OPC? query into the Output Queue until the commands have all finished. Reading the response to the *OPC? query has the penalty that both the HP-IB bus and the Active Controller handshake are in temporary holdoff state while the Active Controller waits to read the *OPC? query response from the Test Set.
  • Page 223 110 ENTER 714;Output_que_val!Read the 1 returned by the *OPC? 120 ! query command 130 PRINT "All operations complete." 140 ! Note: 150 ! This interrupt service routine is not complete. "HP-IB Service Requests" in chapter 5 160 ! Refer to the 170 ! complete information. 180 SUBEND...
  • Page 224 Using the *WAI command with a Call Processing Subsystem state command results in a deadlock condition. The Test Set will not process any further HP-IB commands unitl the Call Processing Subsystem command preceeding the *WAI command completes but the command never ‘completes’.
  • Page 225 Common Command Descriptions *CLS (Clear Status) The *CLS command clears the contents (sets all bits to zero) of all Event Registers summarized in the Status Byte. The *CLS command also empties all queues (removes all current messages) which are summarized in the Status Byte, except the Output Queue.
  • Page 226 Common Command Descriptions *SRE (Service Request Enable) The Test Set responds to the *SRE command. "HP-IB Service Requests" on page for a detailed explanation of the *SRE command. *SRE? (Service Request Enable Query) The Test Set responds to the *SRE? command.
  • Page 227 Common Command Descriptions *RCL (Recall Instrument State) The *RCL command restores the state of the Test Set from a file previously stored in battery-backed internal memory, on a memory card, on a RAM disk, or on an external disk. The *RCL command is followed by a decimal number in the range of 0 to 99 which indicates which Test Set SAVE/RECALL file to recall.
  • Page 228: Triggering Measurements

    Trigger Event is analogous to telling the Test Set to “start the measurement now.” There are three commands that can be used to issue a Trigger Event to the Test Set through HP-IB: • A Group Execute Trigger Command (GET) as defined by IEEE 488.1-1987 •...
  • Page 229 Triggering Measurements Trigger Modes The Trigger Mode is defined by two parameters: retriggering and settling. Retriggering Retriggering refers to what a measurement does once it has completed a measurement cycle. There are two options: 1. Single retriggering causes the measurement cycle to stop once a valid measurement result has been obtained.
  • Page 230 This is true for both retriggering modes. This has the consequence that both the HP-IB bus and the Active Controller handshake are in a temporary holdoff state while the Active Controller waits to read the measurement result from the Test Set.
  • Page 231 :RETR REP then a new measurement cycle is started and measurement results will be available for all active measurements when valid results have been obtained. If the HP-IB trigger mode is :RETR SING then a measurement cycle must be started by issuing a trigger event. Refer to "Triggering Measurements"...
  • Page 232 :ABORt The :ABORt command tells the Test Set to stop a currently executing measurement cycle and get ready for a new HP-IB command. If for any reason a valid measurement cannot be made, this command allows the control program to terminate the requested measurement and regain control of the Test Set.
  • Page 233 Triggering Measurements :MODE The :MODE command is used to set the Trigger Mode for all active measurements. The trigger mode is defined by two parameters: retriggering and settling. Retriggering Syntax :TRIGger:MODE:RETRigger REPetitive :TRIGger:MODE:RETRigger SINGle Retriggering Examples OUTPUT 714;"TRIG:MODE:RETR REP" OUTPUT 714;"TRIG:MODE:RETR SING" Settling Syntax :TRIGger:MODE:SETTling FAST :TRIGger:MODE:SETTling FULL...
  • Page 234 Triggering Measurements Trigger Mode and Measurement Speed There are two generalized scenarios which can be described for HP-IB triggering control. The first is to have the Test Set return measurement results as fast as possible and assume that the control program will handle all transient settling and value tolerance activities.
  • Page 235 (an external trigger is detected) or until the measurement trigger is aborted. This is true for both retriggering modes. This has the consequence that both the HP-IB bus and the Active Controller handshake are in a temporary holdoff state while the Active Controller waits to read the measurement result from the Test Set.
  • Page 236 Triggering Measurements...
  • Page 237: Advanced Operations

    Advanced Operations...
  • Page 238: Increasing Measurement Throughput

    Chapter 5, Advanced Operations Increasing Measurement Throughput Increasing Measurement Throughput Measurement throughput is defined as the number of measurements made per unit of time. When operating the Test Set in the Internal or External Automatic Control Mode, measurement throughput is influenced by measurement speed, measurement setup time, and execution speed of the control program.
  • Page 239 Chapter 5, Advanced Operations Increasing Measurement Throughput Time-to-first-reading after making new settings is usually much slower than the repetitive reading rate once the first reading has been returned. The main contributor to first-reading measurement time is hardware autoranging. Hardware autoranging time can be eliminated by first establishing the expected AF and RF signal levels into the Test Set.
  • Page 240 Chapter 5, Advanced Operations Increasing Measurement Throughput 3. Frequency Counter Gate Time The frequency counter’s gate time specifies how long the RF or AF frequency counter samples the signal before displaying the measured result. Short gate times measure instantaneous frequency and long gate times measure average frequency. The longer the gate time, the longer the measurement cycle.
  • Page 241 2. Define a base instrument state and then modify it as needed for each measurement (always returning to the base state after finishing the measurement). Defining a base instrument state requires fewer HP-IB transactions to set up an instrument (in the majority of cases) which in turn reduces measurement setup...
  • Page 242 Execution speed of the control program is defined as the time required to execute a given number of program lines. . Each time the HP-IB is accessed, a given amount of time is required to configure the devices on the bus for data transfer. Every time a BASIC or IBASIC OUTPUT or ENTER statement is executed this bus configuration time is incurred.
  • Page 243 The ;: (semicolon-colon) separator tells the The ;: (semicolon-colon) Separator. Test Set’s HP-IB command parser that the next command is at the top level of the command hierarchy. This allows commands from different instruments to be output on one command line. The following example illustrates proper use of the...
  • Page 244: Status Reporting

    Register. When an enabled condition exists, the Test Set sends the Service Request message (SRQ) on the HP-IB bus and reports that it has requested service by setting the Request Service (RQS) bit in the Status Byte Register to the TRUE, logic 1, state.
  • Page 245 Status Register Group Summary Message Bits Status Byte Register 1 Service Request Enable Register Enabled Summary Message Service Request Generation Function Request Service Message Service Request Interface Message ch4drw01.ds4 HP 8920 Status Reporting Structure Figure 3 Status Reporting Structure Overview...
  • Page 246 Operation Status Register Group Request Service Message Standard Event Status Register Output Queue Questionable Data/Signal Register Group Unused in HP 8920 Hardware Status Register #2 Group Hardware Status Register #1 Group Read by Serial Poll ESB MAV Status Byte Register...
  • Page 247 Chapter 5, Advanced Operations Status Reporting details the Status Byte Register bit assignments and their associated Table 17 meaning. Table 17 Status Byte Register Bit Assignments Binary Condition Comment Number Weighting Operation Status Register 1= one or more of the enabled events have Group Summary Message occurred since the last reading or clearing of the Event Register...
  • Page 248 Chapter 5, Advanced Operations Status Reporting Reading with a Serial Poll The contents of the Status Byte Register can be read by a serial poll from the Active Controller in response to some device on the bus sending the Service Request (SRQ) message.
  • Page 249 Chapter 5, Advanced Operations Status Reporting Example BASIC program to read Status Byte with *STB command 10 INTEGER Stat_byte_reg,Stat_byte,Mstr_sum_msg 20 OUTPUT 714;"*STB?" 30 ENTER 714;Stat_byte_reg 40 Stat_byte=BINAND(Stat_byte_reg,191) !mask out the MSS bit 50 PRINT Stat_byte 60 Mstr_sum_msg=BINAND(Stat_byte_reg,64) !mask out the Stat Byte 70 PRINT Mstr_sum_msg 80 END...
  • Page 250 Chapter 5, Advanced Operations Status Reporting Status Register Structure Overview The structure of the register groups used in the Test Set is based upon the status data structures outlined in the IEEE 488 and SCPI 1994.0 Standards. There are two types of status data structures used in the Test Set: status registers and status queues.
  • Page 251 A condition is a Test Set state that is either TRUE or FALSE Condition Register. (an HP-IB command error has occurred or an HP-IB command error has not occurred). Each bit in a Condition Register is assigned to a particular Test Set state.
  • Page 252 Chapter 5, Advanced Operations Status Reporting Transition Filters are read-write. Transition Filters are unaffected by a *CLS (clear status) command or queries. The Transitions Filters are set to pass positive transitions (PTR) at power on and after receiving the *RST (reset) command (all 16 bits of the PTR register set to 1 and all 16 bits of the NTR register set to 0).
  • Page 253 Chapter 5, Advanced Operations Status Reporting Status Reporting Structure Operation. In general the status reporting structure described on the previous pages is used as follows: • Determine which conditions, as defined by their bit positions in the Condition Register, should cause the Summary Message to be set TRUE if they occur. For example, Condition Register Bit 3 = Overpower Protection Tripped •...
  • Page 254 Chapter 5, Advanced Operations Status Reporting Status Queue Model This section explains how status queues are structured in the Test Set. The generalized status queue model shown in is the basis upon which all the figure 6 status queues in the Test Set are built. A queue is a data structure containing a sequential list of information.
  • Page 255 Chapter 5, Advanced Operations Status Reporting Status Register Group Contents shows the Status Register Groups in the Test Set. The contents of each Figure 7 Status Register Group is explained in the following sections. Communicate Status Register Group Hardware Status Register #1 Group Hardware Status Register #2 Group Calibration Status Register Group Questionable Data/Signal Register Group...
  • Page 256 Chapter 5, Advanced Operations Status Reporting Operation Status Register Group The Operation Status Register Group contains information about the state of the measurement systems in the Test Set. This status group is accessed using the STATus commands. The Operation Status Register Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 257 Chapter 5, Advanced Operations Status Reporting Table 18 shows the Operation Status Register Group Condition Register bit assignments. Table 18 Operation Status Register Group Condition Register Bit Assignments Binary Bit Number Condition Comment Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 IBASIC Program Running 1 = an IBASIC program is running on...
  • Page 258 Accessing the Operation Status Register Group’s Registers The following sections show the syntax and give programming examples, using the HP BASIC programming language, for the STATus commands used to access the Operation Status Register Group’s registers. Reading the Condition Register...
  • Page 259 Chapter 5, Advanced Operations Status Reporting Reading the Event Register Syntax STATus:OPERation:EVENt? Example OUTPUT 714;"STAT:OPER:EVEN?" ENTER 714;Register_value Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:OPERation:ENABle?
  • Page 260 Chapter 5, Advanced Operations Status Reporting Standard Event Status Register Group The Standard Event Status Register Group is a specific implementation of the status register model described in the Status Register Structure Overview section. The conditions monitored by the Standard Event Status Register Group are defined by the IEEE 488.2-1987 Standard.
  • Page 261 Chapter 5, Advanced Operations Status Reporting Accessing the Standard Event Status Register Group’s Registers Table 19 Standard Event Status Register Bit Assignments Binary Condition Comment Number Weighting 32879 Always 0 Reserved by IEEE 488.2 16384 Always 0 Reserved by IEEE 488.2 8192 Always 0 Reserved by IEEE 488.2...
  • Page 262 *OPC IEEE 488.2 Common Command. The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the Common Commands used to access the Standard Event Status Register Group’s registers. Reading the Event Register...
  • Page 263 Chapter 5, Advanced Operations Status Reporting Example OUTPUT 714;"*ESR?" ENTER 714;Register_value The *ESR? query allows the programmer to determine the current contents (bit pattern) of the Standard Event Status Register. The Test Set responds to the *ESR? query by placing the binary-weighted decimal value of the Standard Event Status Register bit pattern into the Output Queue.
  • Page 264 Chapter 5, Advanced Operations Status Reporting Reading the Enable Register Syntax *ESE? Example OUTPUT 714;"*ESE?" ENTER 714;Register_value The *ESE? query allows the programmer to determine the current contents (bit pattern) of the Standard Event Status Enable Register. The Test Set responds to the *ESE? query by placing the binary-weighted decimal value of the Standard Event Status Enable Register bit pattern into the Output Queue.
  • Page 265 The decimal value of the bit pattern must be a positive integer in the range of 0 to 255. Sending a negative number or a number greater than 255 causes an HP-IB Error: -222 Data out of range Clearing the Enable Register...
  • Page 266 Chapter 5, Advanced Operations Status Reporting Output Queue Group The Output Queue Group is a specific implementation of the status queue model described in . The Output Queue queue type is "Status Queue Model" on page 254 defined by the IEEE 488.2-1987 Standard to be a first in, first out (FIFO) queue. The Output Queue Group includes a FIFO queue and a Message Available (MAV) Summary Message.
  • Page 267 (as is the case with some Signaling Decoder measurements). Care should be exercised when reading the Output Queue since the HP-IB bus will, by design, wait until the data is available before processing further bus messages.
  • Page 268 Chapter 5, Advanced Operations Status Reporting Error Message Queue Group The Error Message Queue Group is an implementation of the status queue model described in . The Error Message Queue queue "Status Queue Model" on page 254 type is a first-in, first-out (FIFO) queue that holds up to 20 messages. The Error Message Queue Group includes a FIFO queue but no Message Available (MAV) Summary Message.
  • Page 269 Chapter 5, Advanced Operations Status Reporting Accessing the Error Message Queue A message appears in the Error Message Queue any time bit 2, 3, 4, or 5 of the Standard Event Status register is asserted. Each message consists of a signed error number, followed by a comma separator, followed by an error description string in double quotes.
  • Page 270 Chapter 5, Advanced Operations Status Reporting Questionable Data/Signal Register Group The Questionable Data/Signal Register Group contains information about the quality of the Test Set’s output and measurement data. This status group is accessed using the STATus commands. The Questionable Data/Signal Register Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 271 Chapter 5, Advanced Operations Status Reporting Table 20 shows the Questionable Data/Signal Register Group’s Condition Register bit assignments. Table 20 Questionable Data/Signal Register Group, Condition Register Bit Assignments Binary Condition Comment Number Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 Unused in Test Set 8192...
  • Page 272 Accessing the Questionable Data/Signal Register Group’s Registers The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the STATus commands used to access the Questionable Data/Signal Register Group’s registers. Reading the Condition Register...
  • Page 273 Chapter 5, Advanced Operations Status Reporting Reading the Event Register Syntax STATus:QUEStionable:EVENt? Example OUTPUT 714;"STAT:QUES:EVEN?" ENTER 714;Register_value Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:QUEStionable:ENABle?
  • Page 274 Chapter 5, Advanced Operations Status Reporting Call Processing Status Register Group The Call Processing Status Register Group contains information about the Test Set’s Call Processing Subsystem. This status group is accessed using the STATus commands. The Call Processing Status Register Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 275 Chapter 5, Advanced Operations Status Reporting details the Call Processing Status Register Group’s Condition Register Table 21 bit assignments. Table 21 Call Processing Status Register Group, Condition Register Bit Assignments Binary Condition Comment Number Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 Unused in Test Set...
  • Page 276 Accessing the Call Processing Status Register Group’s Registers The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the STATus commands used to access the Call Processing Status Register Group’s registers. Reading the Condition Register...
  • Page 277 Chapter 5, Advanced Operations Status Reporting Reading the Event Register Syntax STATus:CALLProc:EVENt? Example OUTPUT 714;"STAT:CALLP:EVEN?" ENTER 714;Register_value Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:CALLProc:ENABle?
  • Page 278 Chapter 5, Advanced Operations Status Reporting Calibration Status Register Group The Calibration Status Register Group contains information about the Test Set’s hardware. This status group is accessed using the STATus commands. The Calibration Status Register Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 279 Chapter 5, Advanced Operations Status Reporting Table 22 details the Calibration Status Register Group’s Condition Register bit assignments. Table 22 Calibration Status Register Group, Condition Register Bit Assignments Binary Condition Comment Number Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 Unused in Test Set 8192...
  • Page 280 Accessing the Calibration Status Register Group’s Registers The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the STATus commands used to access the Calibration Status Register Group’s registers. Reading the Condition Register...
  • Page 281 Chapter 5, Advanced Operations Status Reporting Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:CALibration:ENABle? Example OUTPUT 714;"STAT:CAL:ENAB?" ENTER 714;Register_value Writing the Enable Register Syntax...
  • Page 282 Chapter 5, Advanced Operations Status Reporting Hardware Status Register #2 Group The Hardware Status Register #2 Group contains information about the Test Set’s hardware. This status group is accessed using the STATus commands. The Hardware Status Register #2 Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 283 Chapter 5, Advanced Operations Status Reporting shows the Hardware Status Register Group #2’s Condition Register bit Table 23 assignments. Table 23 Hardware Status Register Group #2, Condition Register Bit Assignments Binary Condition Comment Number Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 Unused in Test Set...
  • Page 284 Accessing the Hardware Status Register #2 Group’s Registers The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the STATus commands used to access the Hardware Status Register #2 Group’s registers. Reading the Condition Register...
  • Page 285 Chapter 5, Advanced Operations Status Reporting Reading the Event Register Syntax STATus:HARDware2:EVENt? Example OUTPUT 714;"STAT:HARD2:EVEN?" ENTER 714;Register_value Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:HARDware2:ENABle?
  • Page 286 Chapter 5, Advanced Operations Status Reporting Hardware Status Register #1 Group The Hardware Status Register #1 Group contains information about the Test Set’s hardware. This status group is accessed using the STATus commands. The Hardware Status Register #1 Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 287 Chapter 5, Advanced Operations Status Reporting shows the Hardware Status Register Group #1’s Condition Register bit Table 24 assignments. Table 24 Hardware Status Register Group #1, Condition Register Bit Assignments Binary Condition Comment Number Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 Radio Interface Card Interrupt...
  • Page 288 Accessing the Hardware Status Register #1 Group’s Registers The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the STATus commands used to access the Hardware Status Register #1 Group’s registers. Reading the Condition Register...
  • Page 289 Chapter 5, Advanced Operations Status Reporting Reading the Transition Filters Syntax STATus:HARDware1:PTRansition? STATus:HARDware1:NTRansition? Example OUTPUT 714;"STAT:HARD1:PTR?" ENTER 714;Register_value Writing the Transition Filters Syntax STATus:HARDware1:PTRansition <integer> STATus:HARDware1:NTRansition <integer> Example OUTPUT 714;"STAT:HARD1:PTR 256" Reading the Event Register Syntax STATus:HARDware1:EVENt? Example OUTPUT 714;"STAT:HARD1:EVEN?" ENTER 714;Register_value...
  • Page 290 Chapter 5, Advanced Operations Status Reporting Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:HARDware1:ENABle? Example OUTPUT 714;"STAT:HARD1:ENAB?" ENTER 714;Register_value Writing the Enable Register Syntax...
  • Page 291 Chapter 5, Advanced Operations Status Reporting Communicate Status Register Group The Communicate Status Register Group contains information about the Test Set’s hardware. This status group is accessed using the STATus commands. The Communicate Status Register Group uses 16-bit registers and includes a Condition Register, Transition Filters, an Event Register, an Enable Register, and a Summary Message.
  • Page 292 Chapter 5, Advanced Operations Status Reporting shows the Communicate Status Register Group’s Condition Register bit Table 25 assignments. Table 25 Communicate Status Register Group, Condition Register Bit Assignments Binary Bit Number Condition Comment Weighting 32768 Not Used (Always 0) Defined by SCPI Version 1994.0 16384 Unused in Test Set 8192...
  • Page 293 Accessing the Communicate Status Register Group’s Registers The following sections show the syntax and give programming examples (using the HP BASIC programming language) for the STATus commands used to access the Communicate Status Register Group’s registers. Reading the Condition Register...
  • Page 294 Chapter 5, Advanced Operations Status Reporting Reading the Event Register Syntax STATus:COMMunicate:EVENt? Example OUTPUT 714;"STAT:COMM:EVEN?" ENTER 714;Register_value Clearing the Event Register The EVENT register is cleared whenever it is queried or whenever the Common Command *CLS is sent to the Test Set. Reading the Enable Register Syntax STATus:COMMunicate:ENABle?
  • Page 295: Hp-Ib Service Requests

    Chapter 5, Advanced Operations HP-IB Service Requests HP-IB Service Requests The Test Set is capable of generating a “service request” when it requires the Active Controller to take action. Service requests are generally made after the Test Set has completed a task (such as making a measurement) or when an error condition exists (such as an internal self-calibration has failed).
  • Page 296 When an enabled service request condition exists, the Test Set sends the Service Request message (SRQ) on the HP-IB bus and reports that it has requested service by setting the Request Service (RQS) bit in the Status Byte register to the TRUE, logic 1, state.
  • Page 297 Chapter 5, Advanced Operations HP-IB Service Requests Service Request Enable Register Service request enabling allows the application programmer to select which Summary Messages in the Status Byte Register may cause a service request. The Service Request Enable Register, illustrated in...
  • Page 298 0-5 and 7 of the Status Byte Register, will generate a Service Request on the HP-IB bus. The Test Set always ignores bit 6 (binary weight 64) of the bit pattern set by the *SRE command.
  • Page 299 The decimal value of the bit pattern must be a positive integer in the range of 0 to 255. Sending a negative number or a number greater than 255 causes an HP-IB Error: -222 Data out of range. Clearing the Service Request Enable Register The Service Request Enable Register is cleared by sending the *SRE Common Command with a decimal value of zero.
  • Page 300 Chapter 5, Advanced Operations HP-IB Service Requests Procedure for Generating a Service Request The following steps outline a generalized procedure for properly setting up the Test Set to generate a Service Request (SRQ) message to the Active Controller. This procedure does not include instructions for setting up the Active Controller to respond to the Service Request message generated by the Test Set.
  • Page 301 HP-IB Service Requests Example BASIC Program to Set Up and Service an SRQ Interrupt The following HP BASIC program was written for an HP 9000 Series 300 Controller and a Test Set. The program assumes that the Test Set is the only instrument on the bus.
  • Page 302 1050 ! 6) Enable interrupts on select code 7: 1060 ! The interface mask is set to a value of 2 which enables interrupts on 1070 ! the HP-IB bus when the SRQ line is asserted. 1080 ! 1090 ENABLE INTR 7;2...
  • Page 303 Chapter 5, Advanced Operations HP-IB Service Requests 1100 ! 1110 ! Start of the dummy loop: 1120 ! 1130 LOOP 1140 DISP "I am sitting in a dummy loop." 1150 END LOOP 1160 1170 END 1180 ! 1190 Srvice_interupt:SUB Srvice_interupt...
  • Page 304 Chapter 5, Advanced Operations HP-IB Service Requests 1700 ! appropriate action. 1710 ! NOTE: Read the Event Register to clear it. If the Event Register is 1720 ! not cleared it will NOT latch another event from the Condition 1730 ! Register, thereby preventing the Test Set from generating another SRQ.
  • Page 305: Instrument Initialization

    Test Set to a known state. With over 22 instruments utilizing greater than 25 screens containing hundreds of fields which can be programmed through the HP-IB bus, a hard copy list of the default condition for every field in every instrument screen would be cumbersome.
  • Page 306 Front panel PRESET key *RST IEEE 488.2 Common Command Device Clear (DCL) HP-IB Bus Command Selected Device Clear (SDC) HP-IB Bus Command Interface Clear (IFC) HP-IB Bus Command When the Test Set is initialized some fields are “restored” (put back to their default state), some fields are “maintained”...
  • Page 307 Chapter 5, Advanced Operations Instrument Initialization Table 28 Screen Fields Restored/Initialized During Power-On Reset PRINT TESTS TESTS CONFIGURE CONFIGURE (Execution Conditions) (Printer Setup) Screen Fields CONFIGURE Screen Fields Screen Fields Screen Fields RX/TX Cntl Print Title field Test output location: Test output location: Save/Recall is cleared.
  • Page 308 Any previously received Operation Complete query command (*OPC?) is cleared. • Calibration data is not affected. • The HP-IB interface is reset (any pending Service Request is cleared.) • The contents of the RAM memory are unaffected. • The Test Set’s display screen is in the UNLOCKED state.
  • Page 309 Chapter 5, Advanced Operations Instrument Initialization Front-panel PRESET Key The Front-panel Reset is accomplished by pressing the PRESET key on the front panel of the Test Set. For the CONFIGURE, PRINT CONFIGURE, TESTS (Execution Conditions), TESTS (Printer Setup) and I/O CONFIGURE screens, lists the fields table 29 which are restored/initialized when the front-panel PRESET key is pressed.
  • Page 310 Chapter 5, Advanced Operations Instrument Initialization Table 29 Screen Fields Restored/Initialized During Front Panel Reset PRINT TESTS TESTS CONFIGURE CONFIGURE (Execution Conditions) (Printer Setup) CONFIGUR Screen Fields Screen Fields Screen Fields Screen Fields RX/TX Cntl Print Title field Test output location: Test output location: Save/Recall is cleared.
  • Page 311 The Test Set’s display screen is in the UNLOCKED state. • The Power-up self-test diagnostics are not performed. • The HP-IB interface is not reset (any pending Service Request is not cleared.) • The Contents of the SAVE/RECALL registers are not affected. •...
  • Page 312 Instrument Initialization *RST IEEE 488.2 Common Command The *RST Reset is accomplished by sending the *RST Common Command to the Test Set through the HP-IB bus. For the CONFIGURE, PRINT CONFIGURE, TESTS (Execution Conditions), TESTS (Printer Setup) and I/O CONFIGURE screens,...
  • Page 313 Chapter 5, Advanced Operations Instrument Initialization Table 30 Screen Fields Restored/Initialized During *RST Reset PRINT TESTS TESTS CONFIGURE CONFIGURE (Execution Conditions) (Printer Setup) Screen Fields CONFIGURE Screen Fields Screen Fields Screen Fields RX/TX Cntl Print Title field Test output location: Test output location: Save/Recall is cleared...
  • Page 314 • Calibration data is not affected. • The HP-IB interface is not reset (any pending Service Request is not cleared). • All Enable registers are unaffected: Service Request, Standard Event, Communicate, Hardware #1, Hardware #2, Operation, Calibration,Call Processing and Questionable Data/Signal.
  • Page 315 Other operational characteristics are also affected by the DCL bus command as follows: • The Power-up self-test diagnostics are not performed. • The HP-IB interface is not reset (any pending Service Request is not cleared) • Measurement triggering is not affected. • Calibration data is not affected.
  • Page 316 Selected Device Clear (SDC) HP-IB Bus Command The Selected Device Clear (SDC) Reset is accomplished by sending the SDC message to the Test Set through HP-IB. The Test Set responds to the Selected Device Clear (SDC) and the Device Clear (DCL) bus commands equally. Refer to for a description of "Device Clear (DCL) HP-IB Bus Command"...
  • Page 317 Interface Clear (IFC) HP-IB Bus Command The Interface Clear (IFC) Reset is accomplished by having the Active Controller send the ABORT message to the HP-IB bus (ABORT message = IFC bus control line TRUE for 100 ms). The IFC bus command unconditionally terminates all HP-IB bus activity and the Test Set is unaddressed.
  • Page 318: Passing Control

    The device on the bus responsible for designating talkers and listeners is the Controller. The structure of the HP-IB bus allows for more than one Controller to be connected to the bus at the same time. As a means of ensuring that orderly...
  • Page 319 The Test Set must be the Active Controller on the bus under the following conditions: 1. whenever the Test Set needs to control any device connected to the HP-IB bus, such as an external disk drive, an external printer, or an external instrument 2.
  • Page 320 Chapter 5, Advanced Operations Passing Control Passing Control to the Test Set Control is passed to the Test Set when it is addressed to TALK and then receives the Take Control Talker (TCT) command. The programming or controller command which implements the pass control protocol as outlined in the IEEE 488.1 and 488.2 Standards is language/controller specific.
  • Page 321 • Control will be passed back within 10 seconds of receiving bus control if no controller commands are executed (such as printing a screen image to an HP-IB printer or saving/ recalling an instrument configuration from an HP-IB disk drive).
  • Page 322 Test Set is considered just another device on the HP-IB bus and its Controller capabilities are not used. However, it may be desirable, under certain conditions, to print a Test Set screen to the HP-IB printer for documentation or program debugging purposes.
  • Page 323 1. If a program is running on the HP 9000 Workstation, PAUSE the program. 2. Put the Test Set in local mode (press the LOCAL key on the front panel). 3. Configure the Test Set to print to the HP-IB printer using the PRINT CONFIGURE screen.
  • Page 324 Test Set through the HP-IB bus. Further, it is based on the assumption that the HP-IB interface in the HP 9000 Controller is set to the default select code of 7 and address of 21. In this example, the Test Set is NOT configured as the System Controller.
  • Page 325 Chapter 5, Advanced Operations Passing Control The following program would run in the External Controller: COM /Hpib_names/ INTEGER Internal_hpib,Inst_address,Cntrl_state COM /Cntrl_names/ Ext_cntrl_addrs,Int_cntrl_addrs COM /Io_names/ INTEGER Printer_addrs,Pwr_suply_addrs COM /Io_values/ REAL Meas_power,Prog_state$[80],Prog_name$[50] COM /Reg_vals/ INTEGER Status_byte,Stdevnt_reg_val Internal_hpib=7 Ext_cntrl_addrs=14 Int_cntrl_addrs=21 Printer_addrs=1 Pwr_suply_addrs=26 Inst_address=(Internal_hpib*100)+Ext_cntrl_addrs Prog_name$="PASCTLEX:INTERNAL,4"...
  • Page 326 Chapter 5, Advanced Operations Passing Control STATUS Internal_hpib,3;Cntrl_state DISP "WAITING FOR CONTROL BACK FROM THE Test Set" UNTIL BIT(Cntrl_state,6) ! Data is ready in the Test Set OUTPUT Inst_address;"PROG:NUMB? Meas_power" ENTER Inst_address;Meas_power PRINT "Measured power = ";Meas_power DISP "Program finished." SUB Pass_control COM /Hpib_names/ INTEGER Internal_hpib,Inst_address,Cntrl_state COM /Cntrl_names/ Ext_cntrl_addrs,Int_cntrl_addrs...
  • Page 327 Chapter 5, Advanced Operations Passing Control The following IBASIC program would be loaded off the Memory Card and run in the Test Set: COM /Hpib_names/ INTEGER Internal_hpib,External_hpib COM /Cntrl_names/ Ext_cntrl_addrs,Int_cntrl_addrs COM /Io_names/ INTEGER Printer_addrs,Pwr_suply_addrs COM /Io_values/ REAL Meas_power Internal_hpib=800 External_hpib=700 Ext_cntrl_addrs=21 Int_cntrl_addrs=14 Printer_addrs=1...
  • Page 328 Chapter 5, Advanced Operations Passing Control OUTPUT Internal_hpib;"AFG1:FREQ 3 KHZ;DEST ’FM’;FM 3 KHZ" OUTPUT Internal_hpib;"DISP TX;MEAS:RFR:POW?" ENTER Internal_hpib;Meas_power OUTPUT External_hpib+Printer_addrs;"Measured power = ";Meas_power OUTPUT External_hpib+Pwr_suply_addrs;"VSET 0" SUBEND...
  • Page 329: Memory Cards/Mass Storage

    Test Set’s mass storage devices. They are not intended to be a comprehensive description of the IBASIC mass storage commands and procedures. For detailed information on IBASIC commands, refer to the HP Instrument BASIC User’s Handbook.
  • Page 330: Default File System

    Default File System The Test Set’s default file system is the Logical Interchange Format (LIF) System. The LIF file system is used by Hewlett-Packard BASIC on the HP 9000 Series 200/300 Workstations. See "LIF File Naming Conventions" on page 342 further information on the LIF file system.
  • Page 331: Mass Storage Device Overview

    On-board read-only memory disk (ROM disk) located on the Test Set’s internal memory board • External disk drives connected to the Test Set’s external HP-IB • Internal static random access memory (SRAM) cards which are inserted into the Test Set’s front-panel Memory Card slot •...
  • Page 332 HP - IB I/O :, 7XX, n XX = 0 to 30 n=0,1 Front Panel Memory Card Slot HP - IB Rear Panel HP - IB LIF CS80 3 1/2" Drive :INTERNAL, 4 9122, 9133/4 ROM or SRAM card 9153, 9154 ch5drw1.drw...
  • Page 333 Chapter 6, Memory Cards/Mass Storage Mass Storage Device Overview Programs and data can be retrieved from any of these mass storage devices. Programs and data can only be stored to RAM disk, external disk, or SRAM card mass storage devices. The IBASIC file system supports both the LIF (Hewlett-Packard’s Logical Interchange Format) file system and the MS-DOS (Microsoft Disk Operating System) file system.
  • Page 334 Chapter 6, Memory Cards/Mass Storage Mass Storage Device Overview Typical Uses Table 33 ROM Disk Mass Storage Overview Mass Mass Storage Physical Mass Storage Media Supported File Storage Type Location Volume Specifier Type System(s) Name ROM Disk Read-only Test Set ":MEMORY,0,4"...
  • Page 335 Mass Storage Volume Storage Storage Media Type File Location Specifier Name Type System(s) External HP-IB Hard Connected to ":,7xx,n" Hard disk = NA LIF, DOS Disk disk drive Test Set’s xx = device address (0-30) Floppy disk HP-IB external HP-IB n = unit number (range 3.5-in DS Disk...
  • Page 336 Chapter 6, Memory Cards/Mass Storage Mass Storage Device Overview Table 35 SRAM Card Mass Storage Overview Mass Mass Storage Supported Physical Storage Mass Storage Type Volume Media Type File Location Name Specifier System(s) SRAM Static Random-Access Plugs into ":INTERNAL,4" EPSON SRAM LIF, DOS Memory Memory Card...
  • Page 337 Chapter 6, Memory Cards/Mass Storage Mass Storage Device Overview Comments • Non-erasable • Not available for user program or data storage • Not available for Save/Recall register storage...
  • Page 338: Default Mass Storage Locations

    RAM with the SERVICE screen’s RAM Initialize function The mass storage location for the built-in IBASIC Controller can be changed using the MASS STORAGE IS command. Refer to the HP Instrument BASIC Users Handbook for further information on the MASS STORAGE IS command.
  • Page 339 The IBASIC mass storage location is selected using the IBASIC Mass Storage Is command. The mass storage volume specifier for the desired mass storage location is appended to the Mass Storage Is command. Refer to the HP Instrument BASIC User’s Handbook for further information regarding the Mass Storage Is command.
  • Page 340: Mass Storage Access

    The TESTS (Main Menu) screen using the Select Procedure Location: and Select Procedure Filename: fields. Only procedure files shipped with HP 11807 software or procedure files created using the TESTS (Save/Delete Procedure) screen of the TESTS Subsystem can be accessed using these fields.
  • Page 341: Dos And Lif File System Considerations

    Chapter 6, Memory Cards/Mass Storage DOS and LIF File System Considerations DOS and LIF File System Considerations Program and data files can be stored and retrieved from IBASIC using either the DOS or LIF file system. The media format (DOS or LIF) is determined automatically by the IBASIC file system when the mass storage device is first accessed, and the appropriate format is used from then on.
  • Page 342 10 characters is considered an error. NOTE: The Test Set’s file system does not support the HFS (hierarchical file system) used with HP BASIC. Therefore, no directory path information can be used during mass storage operations with LIF files.
  • Page 343 Chapter 6, Memory Cards/Mass Storage DOS and LIF File System Considerations Test Set File Naming Conventions The Test Set’s TESTS Subsystem uses the following file naming conventions: • The c prefix is used to indicate a code file and is automatically prefixed onto the file name when the program code file is stored for use by the TESTS susbsystem.
  • Page 344 Chapter 6, Memory Cards/Mass Storage DOS and LIF File System Considerations Potential File Name Conflicts Unexpected file operation can occur if proper consideration is not given to the different file system naming conventions and the Test Set file entry field width. •...
  • Page 345 Chapter 6, Memory Cards/Mass Storage DOS and LIF File System Considerations • When copying LIF named files to a DOS formatted media, the file name is silently truncated to 8 characters since DOS only allows 8-character file names. This could result in ERROR 54 Duplicate File Name.
  • Page 346 • DOS - • HP-UX - STOREd code file Storing Code Files Two IBASIC commands are available for storing program code to a mass storage location: SAVE and STORE. The type of file created by the Test Set’s file system when the program code is stored, is dependent upon the format of the media being used.
  • Page 347 Chapter 6, Memory Cards/Mass Storage DOS and LIF File System Considerations Files that have been stored using the STORE command must be retrieved using the LOAD command: STORE "FM_TEST:,704,1" LOAD "FM_TESTS:,704,1" TESTS Subsystem DOS File Restrictions The Test Set uses IBASIC revision 1.0. The IBASIC 1.0 file system cannot distinguish between DOS files that have been “SAVEd”...
  • Page 348: Using The Rom Disk

    Chapter 6, Memory Cards/Mass Storage Using the ROM Disk Using the ROM Disk The Test Set comes with several Test Procedures stored on the internal ROM disk. These Test procedures provide instrument diagnostic utilities, periodic calibration utilities, memory management utilities, a variety of general purpose utilities, and several IBASIC demonstration programs.
  • Page 349: Using Memory Cards

    SRAM memory cards require a battery to maintain stored information. Table 38 Memory Card Part Numbers Memory Type Part Number 32 kilobytes SRAM HP 85700A 128 kilobytes HP 85701A 128 kilobytes SRAM HP 85702A 256 kilobytes HP 85703A 256 kilobytes...
  • Page 350 Chapter 6, Memory Cards/Mass Storage Using Memory Cards Figure 20 Inserting a Memory Card...
  • Page 351 Chapter 6, Memory Cards/Mass Storage Using Memory Cards Setting the Write-Protect Switch The SRAM memory card’s write-protect switch lets the user secure its contents from being overwritten or erased. The switch has two positions (see figure 21 • Read-write – The memory-card contents can be changed or erased, and new files may written on the card.
  • Page 352 1 year at 25 C. To retain data, the battery should be replaced annually. SRAM Card Battery Part Numbers - CR2016 or HP 1420-0383 Replacing the Battery 1. Turn the Test Set on and insert the memory card. An inserted memory card takes power from the Test Set, preventing the card’s contents from being lost.
  • Page 353 Chapter 6, Memory Cards/Mass Storage Using Memory Cards Memory Card Mass Storage Volume Specifier The front-panel memory card slot’s mass storage volume specifier is ":INTERNAL,4" and is the default mass storage device for the Test Set. For example, to catalogue the contents of a memory card from the TESTS (IBASIC Controller) screen, execute the following IBASIC command: C376AT ":INTERNAL,4"...
  • Page 354: Backing Up Procedure And Library Files

    TESTS Subsystem’s code files, or copy any type of file to OTP memory cards. The COPY_PL procedure is designed for use with HP 11807 software to make backup copies of Hewlett-Packard supplied TESTS Subsystem’s Procedure and Library files or user-generated TESTS Subsystem’s Procedure and Library files.
  • Page 355: Copying Files Using Ibasic Commands

    Chapter 6, Memory Cards/Mass Storage Copying Files Using IBASIC Commands Copying Files Using IBASIC Commands Files can be copied from one mass storage device to another using the IBASIC COPY command. For example, to copy a file from a memory card to the left drive of an external dual-disk drive with a mass storage volume specifier of ":,702,0", execute the following IBASIC command from the TESTS (IBASIC Controller) command line:...
  • Page 356 For example, using the volume copy form to copy the contents of a 64 Kbyte SRAM card to an external HP-IB 630-KByte floppy disk will result in the external floppy disk having a capacity of only 64 Kbyte when the volume copy is finished. Furthermore all files on the floppy disk before the volume copy was executed will be lost and are not recoverable.
  • Page 357: Using Ram Disk

    Chapter 6, Memory Cards/Mass Storage Using RAM Disk Using RAM Disk RAM Disk is a section of the Test Set’s internal RAM memory that has been set aside for use as a mass storage device. RAM Disk acts much the same as an external disk drive;...
  • Page 358 Chapter 6, Memory Cards/Mass Storage Using RAM Disk Initializing RAM Disks Each RAM Disk unit must be initialized before it can be used. Unit 0 can be initialized using the RAM_MNG procedure stored on internal ROM Disk. Volumes 1, 2, and 3 must be initialized from the TESTS (IBASIC Controller) screen.
  • Page 359: Using External Disk Drives

    Chapter 6, Memory Cards/Mass Storage Using External Disk Drives Using External Disk Drives The Test Set supports only HP-IB external disk drives. Certain configuration information is required by the Test Set to access external disk drives. The I/O CONFIGURE screen’s HP-IB...
  • Page 360 Chapter 6, Memory Cards/Mass Storage Using External Disk Drives...
  • Page 361: Ibasic Controller

    IBASIC Controller...
  • Page 362: Introduction

    This chapter is designed to provide the programmer with the information needed to develop IBASIC programs for use on the built-in IBASIC controller. Refer to the individual HP 11807 software manuals for information on using the IBASIC controller with Hewlett-Packard supplied software.
  • Page 363: The Ibasic Controller Screen

    Chapter 7, IBASIC Controller The IBASIC Controller Screen The IBASIC Controller Screen The Test Set has a dedicated screen for interfacing with the built-in IBASIC controller. This is the TESTS (IBASIC Controller) screen as shown in figure 23 This screen is accessed as follows: •...
  • Page 364 Chapter 7, IBASIC Controller The IBASIC Controller Screen The TESTS (IBASIC Controller) screen can be accessed programmatically by sending the following command: OUTPUT 714;"DISP TIBasic" The TESTS (IBASIC Controller) screen is divided into several areas which are used by the IBASIC controller for different purposes. The small horizontal rectangle at the top left is the IBASIC command line.
  • Page 365: Important Notes For Program Development

    Subsystem. Programs written for the TESTS Subsystem require the creation of supporting Library, Procedure, and Code files, and must be written using a specific program structure. The HP 11807A Radio Test Software packages are examples of this type of program. Refer to the "Writing Programs For the TESTS Subsystem"...
  • Page 366: Program Development

    Chapter 7, IBASIC Controller Program Development Program Development There are three recommended approaches for developing IBASIC programs. They are outlined in and discussed in more detail later in this chapter. Since figure 24 the Test Set only has the rotary knob and numeric keypad for data/character entry, developing programs on the Test Set alone is not recommended.
  • Page 367 Develop on Test Set Language Computer using screen Develop in Word external to Test Set "EDIT" mode Processor on PC Connect HP-IB cable to Run program in Download into Test Set and run IBASIC Test Set over program from environment...
  • Page 368: Interfacing To The Ibasic Controller Using Serial Ports

    Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Interfacing to the IBASIC Controller using Serial Ports This section describes how to interconnect the Test Set to an external PC or terminal using the Test Set’s serial I/O ports. Program development methods #2 and #3 use PC’s or terminals connected to the Test Set through the Test Set’s serial I/O ports.
  • Page 369 RJ-11 cables and adapters can be wired several ways. If you buy a cable or adapter other than the HP parts listed in table 39, verify the connections for the pins indicated, before connecting the cables to the Test Set.
  • Page 370 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Table 39 Available HP RS232 Serial Cables and Adapters Device HP Part (for RS232 Serial Typical Uses Description Number connections) Cable with Connectors Test Set to printer 6-pin RJ-11 (male) to 25-pin DB-25...
  • Page 371 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports ch6drw4.drw Figure 26 Connecting the Test Set Serial Port to a PC or Terminal Table 40 Port 9 or Port 10 serial cable connections RJ-11 pins Signal DB-9 pins Transmit/Address 10 Transmit/Address 9 Ground...
  • Page 372 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Serial Port 9 Configuration and the following paragraphs describe how to configure Table 41 on page 373 Serial Port 9 for communications with an external PC or terminal. Implications of the various choices are discussed.
  • Page 373 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Receive and Transmit Pacing When receiving characters into the field, the Test Set’s IBASIC Command Line microprocessor responds to each entry and no buffering is required. Therefore, when using your PC or terminal to send characters to the IBASIC Command field, it is permissible to set Line...
  • Page 374 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports PC Configuration To prepare for IBASIC program development, the external PC or terminal must be configured to operate with the Test Set. This configuration includes • Hardware • Terminal Emulator Software PC Serial Port Configuration Refer to...
  • Page 375 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Setting Up Microsoft Windows Terminal on your PC (Windows Version 3.1) 1. Start the Terminal program in Windows. 2. From the Terminal Menu select Settings then Emulation. 3. Select DEC VT-100 (ANSI) 4.
  • Page 376 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Example Terminal Communications Settings • Baud Rate: 9600 • Data Bits: 8 • Stop Bits: 1 • Parity: None • Flow Control: Xon/Xoff • Connector: Com1 (be sure to match your current setup) •...
  • Page 377 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports Setting Up ProComm Revision 2.4.3 on your PC ProComm is a general purpose telecommunications software package for PC’s with MS-DOS. One of its functions is to provide an RS-232 terminal function on a typical PC.
  • Page 378 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports 11. Terminal emulation: VT-100 Duplex: FULL Flow Control: XON/XOFF CR translation (in): CR CR translation (out): CR BS translation: NON-DEST BS key definition: BS Line wrap: ON Scroll: ON Break length (ms): 350 Enquiry (CNTL-E): OFF 12.
  • Page 379 Interfacing to the IBASIC Controller using Serial Ports Setting Up HP AdvanceLink (HP 68333F Version B.02.00) on your PC HP AdvanceLink is a software program which allows PCs to be used as an alphanumeric or graphics terminal. It can also automate terminal and file-transfer functions.
  • Page 380 Chapter 7, IBASIC Controller Interfacing to the IBASIC Controller using Serial Ports 6. Press DONE to return to the Config screen. 7. Press TERMINAL CONFIG. Terminal Id: 2392A LocalEcho: OFF CapsLock: OFF Start Col: 01 Bell: ON XmitFnctn(A): NO SPOW(B): NO InhEolWrp(C): NO Line/Page(D): LINE InhHndShk(G): NO...
  • Page 381 Set the terminal for DEC VT-100 ANSI emulation. Many ASCII terminals will also function properly. To set up the terminal, use the field settings found in the HP AdvanceLink terminal emulator section found earlier in this chapter. As a minimum, make sure the terminal’s basic setup information matches the fields on the Test Set’s I/O...
  • Page 382: Choosing Your Development Method

    Develop on Test Set Language Computer using screen Develop in Word external to Test Set "EDIT" mode Processor on PC Connect HP-IB cable to Run program in Download into Test Set and run IBASIC Test Set over program from environment...
  • Page 383 Choosing Your Development Method Method 1 Using a BASIC language computer (either an HP technical computer or a PC running BASIC with HP-IB) is the best method for developing any size program. This is because the program can be debugged directly on the external computer before downloading the program into the Test Set.
  • Page 384: Method #1. Program Development On An External Basic Language Computer

    Chapter 7, IBASIC Controller Method #1. Program Development on an External BASIC Language Computer Method #1. Program Development on an External BASIC Language Computer HP-IB HP 200/300 Series Controller Connect to HP-IB connector on rear panel Test Set HP-IB Personal Computer,...
  • Page 385 Interface Status Error or “lock up” of the HP-IB. Refer to "Passing Control" on page 318. 3. Set the HP-IB Adrs field to the desired address for the Test Set. The default value is Compatible BASIC Language Computers As shown in...
  • Page 386 HP 82341B/C interface card (the HP 82335 card does not support Windows NT) • a licensed version with security key of HP BASIC for Windows. You can get the latest files from ftp://hpislsup.lvld.hp.com/pub/pc/index.html. Select the HP BASIC for windows archives and follow the instructions for download.
  • Page 387 Test Set’s RF Generator is to be configured is sent to the Test Set through its external HP-IB bus. After the program is fully developed, making it run on the Test Set is simply a matter of changing the address of all the HP-IB commands to 8XX (Test Set internal HP-IB bus) and downloading the program into the Test Set’s IBASIC controller and executing it.
  • Page 388 10 ASSIGN @Device TO 800. NOTE: The dedicated HP-IB interface at select code 8 conforms to the IEEE 488.2 Standard in all respects but one. The difference being that each instrument on the bus does not have a unique address. The Instrument Control Hardware determines which instrument is being addressed with the command syntax.
  • Page 389 2. OUTPUT 714;"PROG:DEF #0" Defines the address in Test Set RAM where the downloaded program will be stored. 3. LIST #714 Causes all program lines to transfer over HP-IB to the Test Set which is at address 714. 4. OUTPUT 714;" "END Defines end of download process by generating an EOI command.
  • Page 390 HP-IB To upload a program from the Test Set to an external BASIC language controller through HP-IB the following program, which uses a command from the PROGram subsystem to initiate the upload, must be running on the external BASIC language controller. The uploaded program is stored to a file specified by the user.
  • Page 391 Chapter 7, IBASIC Controller Method #1. Program Development on an External BASIC Language Computer ! PROGRAM TO UPLOAD IBASIC CODE FROM TEST SET TO BASIC CONTROLLER THROUGH HP-IB. !###################################################################### ! The file for uploaded code will be "C:\htb386\code". ! If you want to use a different file or directory, modify the two lines ! with the labels "File_name_1"...
  • Page 392: Method #2. Developing Programs On The Test Set Using The Ibasic Edit Mode

    Chapter 7, IBASIC Controller Method #2. Developing Programs on the Test Set Using the IBASIC EDIT Mode Method #2. Developing Programs on the Test Set Using the IBASIC EDIT Mode If a BASIC language computer is not available, program development can be done directly on the Test Set using the IBASIC EDIT mode.
  • Page 393 Chapter 7, IBASIC Controller Method #2. Developing Programs on the Test Set Using the IBASIC EDIT Mode Selecting the Field IBASIC Command Line To use the IBASIC EDIT Mode for program development, the IBASIC Command field must be displayed on the Test Set and Serial Port 9 must be connected Line to the field.
  • Page 394 Chapter 7, IBASIC Controller Method #2. Developing Programs on the Test Set Using the IBASIC EDIT Mode Entering and Exiting the IBASIC EDIT Mode To enter the IBASIC EDIT Mode first position the cursor on the IBASIC field, type the word EDIT on the terminal or PC connected to the Command Line Test Set and then press the ENTER key on the terminal or PC.
  • Page 395 Windows Terminal seems to work best when a mouse is used to access the function keys, not the keyboard. Also, scrolling a program works best when the Terminal window display is maximized). Setting Up Function Keys in HP AdvanceLink • From the Main (highest level) screen, set up the 8 softkeys as follows: 1.
  • Page 396 Alt+M. There is no method of displaying key labels so they will have to be recorded elsewhere. See the ProComm manual for further information. Table 42 Edit Mode Escape Code Commands Windows Terminal HP AdvanceLink Function Key Names Escape Codes Escape Codes INSERT LINE ^[[L...
  • Page 397: Method #3. Developing Programs Using Word Processor On A Pc (Least Preferred)

    Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) The third method of IBASIC program development is to write the program using a word processor on a PC, save it as an ASCII file, and then download it into the Test Set through the serial port.
  • Page 398 Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) Writing Lines of IBASIC Code on a Word Processor When writing IBASIC programs, follow these steps to ensure that the Test Set will accept the code when it is downloaded. 1.
  • Page 399 Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) Transferring Programs from the Word Processor to the Test Set For short (less than 100 lines) programs, use an ASCII file transfer utility on the PC to send the program, one line at a time, down to the Test Set over RS-232 directly into the IBASIC Command Line field.
  • Page 400 Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) As the transfer starts the field will intensify and IBASIC Command Line characters will scroll in left to right. As each line is finished the “*” annunciator will be displayed, for about 0.5 seconds, in the upper, right corner of the Test Set indicating that the IBASIC controller is running as the line is parsed.
  • Page 401 Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) ! ASCII_DN ! Program to download ASCII program file from PC to the Test Set through RS-232 ! ###################################################################### ! This program must be loaded into the Test Set and run on the Test Set. ! It directs ASCII characters that come in the Serial Port 9 to a file ! named "TEMP_CODE"...
  • Page 402 Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) Sending ASCII Text Files Over RS-232 With Windows Terminal Set up the Windows Terminal emulator software on the PC as covered in "Setting Up Microsoft Windows Terminal on your PC (Windows Version 3.1)" on page 375 Load and run the ASCII_DN download program in the Test Set’s IBASIC controller.
  • Page 403 Chapter 7, IBASIC Controller Method #3. Developing Programs Using Word Processor on a PC (Least Preferred) Sending ASCII Text Files over RS-232 with ProComm Communications Software Set up the ProComm terminal emulator software on the PC as covered in "Setting .
  • Page 404: Uploading Programs From The Test Set To A Pc

    2. The PC must receive the data through its serial port and direct the data to a file on disk. This can be done by a terminal emulator program such as Windows Terminal, ProComm, or HP AdvanceLink. This requires having the serial port connection established as outlined in "Interfacing to the IBASIC Controller using Serial Ports"...
  • Page 405: Serial I/O From Ibasic Programs

    IBASIC commands, while the Serial Port 10 settings are adjustable only with IBASIC commands. There is no screen for Serial Port 10 settings. For more information, see which gives the command syntax Chapter 4, "HP-IB Commands" for Serial Port 9 and 10.
  • Page 406 Chapter 7, IBASIC Controller Serial I/O from IBASIC Programs Example IBASIC Program Using Serial Port 10 The following program illustrates I/O to both serial ports. The program sends a prompt message to a terminal connected to Serial Port 9 and waits for a response from the user at the terminal.
  • Page 407 Chapter 7, IBASIC Controller Serial I/O from IBASIC Programs Serial Port 10 Information Serial Port 10 is sometimes called Serial Port B in Test Set documentation and programs. The default Serial Port 10 settings are the same as Serial Port 9. They are 1.
  • Page 408: Program Subsystem

    Chapter 7, IBASIC Controller PROGram Subsystem PROGram Subsystem Introduction The PROGram Subsystem provides a set of commands which allow an external controller to generate and control an IBASIC program within the Test Set. The PROGram Subsystem in the Test Set is a limited implementation of the PROGram Subsystem defined in the Standard Commands for Programmable Instruments (SCPI) Standard.
  • Page 409 Chapter 7, IBASIC Controller PROGram Subsystem SCPI PROGram Subsystem The SCPI PROGram Subsystem was designed to support instruments which can store multiple programs in RAM memory at the same time. The SCPI PROGram Subsystem provides commands which allow multiple programs to be named, defined and resident in the instrument at the same time.
  • Page 410 Chapter 7, IBASIC Controller PROGram Subsystem Unsupported SCPI Commands The Test Set does not support the following SCPI commands. • :CATalog? • :SELected:DELete:SELected • :SELected:MALLocate • :SELected:MALLocate? • :SELected:NAME • :SELected:NAME? • :EXPLicit:DEFine • :EXPLicit:DEFine? • :EXPLicit:DELete • :EXPLicit:EXECute • :EXPLicit:MALLocate •...
  • Page 411 Command Descriptions NOTE: When a PROGram Subsystem command is sent to the Test Set through HP-IB from an external controller the Test Set is put into REMOTE mode. The Test Set must be put in LOCAL mode to use the front-panel keys or to use the serial ports to input data into the...
  • Page 412 Chapter 7, IBASIC Controller PROGram Subsystem All the commands under this keyword access the IBASIC program [:SELected] currently resident in the Test Set. Note that this keyword is optional in the command syntax. Syntax PROGram[:SELected] The DEFine command is used to create and download an :DEFine <program>...
  • Page 413 Chapter 7, IBASIC Controller PROGram Subsystem Syntax (length of program not known) PROGram[:SELected]:DEFine <#0><program><NL><END> The following notation is used in the command description: <#0> = IEEE 488.2 Arbitrary Block Program Data header. <program> = the IBASIC program sent as 8 bit data bytes. <NL>...
  • Page 414 Chapter 7, IBASIC Controller PROGram Subsystem Syntax (length of program known) PROGram[:SELected]:DEFine <#><of digits in count field> <count field: of data bytes in program><program data bytes> The following notation is used in the command description: The data starts with a header which begins with a “#”, followed by a single non-zero digit in the range 1-9 which specifies the number of digits in the following count field, followed by a series of digits in the range of 0-9 which gives the number of data bytes being sent, followed by the number of data bytes specified by the count field.
  • Page 415 Chapter 7, IBASIC Controller PROGram Subsystem The IBASIC program uploaded to the external controller is transferred as IEEE 488.2 Definite Length Arbitrary Block Response Data. The following information describes some of the characteristics of the IEEE 488.2 Definite Length Arbitrary Block Response Data type.
  • Page 416 Chapter 7, IBASIC Controller PROGram Subsystem Example BASIC program to upload an IBASIC program from Test Set DIM Prog_line$[200]!Holds longest program line in Test Set DIM File_name$[10]!Holds the name of file to store IBASIC pro- gram LINPUT "Enter name file store IBASIC program...
  • Page 417 Chapter 7, IBASIC Controller PROGram Subsystem The :EXECute command is used to execute, from an :EXECute <program_command> external controller, an IBASIC program command in the Test Set’s built-in IBASIC Controller. <program_command> is string data representing any legal IBASIC command. If the string data does not represent a legal IBASIC command, an IBASIC Error: -285 is generated.
  • Page 418 Attempting to send a <var_name> longer than 12 characters as character data (<var_name> not enclosed in quotes) will generate the following error: HP-IB Error: -112 Program mnemonic too long. If an attempt is made to set the value of a numeric variable or array and no...
  • Page 419 (<var_name> enclosed in quotes). For example, OUTPUT 714;"PROG:NUMB ’Var_name’". HP-IB Error: -112 Program mnemonic too long. For simple variables the value is returned as a series of ASCII characters representing a numeric value in scientific notation (+3.00000000000E+000). For arrays the values are returned as a comma separated list of ASCII characters representing a numeric value in scientific notation.
  • Page 420 The examples which follow represent the capabilities of HP Rocky Mountain BASIC programming language running on an HP 9000/300 Series Controller.
  • Page 421 Chapter 7, IBASIC Controller PROGram Subsystem Example querying the value of a one dimensional array whose name is known but whose current size is unknown 10 DIM Temp$[5000] !This will hold 250 numbers @ 20 characters each 20 DIM Result_array(500) !This array will hold up to 501 values 30 OUTPUT 714;"PROG:NUMB? Array"...
  • Page 422 Effect of STATe Commands Desired State of Current State of IBASIC Program IBASIC Program (STATe command RUNNING PAUSED STOPPED sent to Test Set) HP-IB Error: -221 RUNNING RUNNING Settings conflict CONT HP-IB Error: -221 RUNNING HP-IB Error: -221 Settings conflict...
  • Page 423 Chapter 7, IBASIC Controller PROGram Subsystem The STATe? query command is used to query, from an external :STATe? controller, the current execution state of the IBASIC program in the Test Set. The return data (RUN, STOP, or PAUS) is sent as a series of ASCII characters. The program execution states are defined as follows: •...
  • Page 424 Attempting to send a <var_name> longer than 12 characters as character data (<var_name> not enclosed in quotes) will generate the following error: HP-IB Error: -112 Program mnemonic too long. NOTE: If the programmer wishes to append the IBASIC “$” string identifier onto the string variable name, the string variable name must be sent as string data, that is enclosed in quotes.
  • Page 425 Attempting to send a <var_name> longer than 12 characters as character data (<var_name> not enclosed in quotes) will generate the following error: HP-IB Error: -112 Program mnemonic too long NOTE: If the programmer wishes to append the IBASIC ‘$’ string identifier onto the string variable name, the string variable name must be sent as string data, that is enclosed in quotes.
  • Page 426 The program commands and syntax used to enter string data from the Test Set into the external controller will depend upon the programming language used in the external controller. The examples which follow represent the capabilities of HP Rocky Mountain BASIC programming language running on an HP 9000/300 Series Controller.
  • Page 427 Array must be less than or equal to 200 characters. The :WAIT command stops the Test Set from executing any commands :WAIT or queries received through HP-IB until after the IBASIC program exits the RUN state; that is, the program is either PAUSED or STOPPED.
  • Page 428 HP-IB input buffer before the IBASIC program is PAUSED or STOPPED, the HP-IB bus will appear to be locked up. This is due to the fact that the HP-IB bus and the external controller will be in a temporary holdoff state while waiting for the HP-IB input buffer to empty.
  • Page 429 IBASIC program is either STOPPED or PAUSED. This is due to the fact that the HP-IB bus and the external controller will be in a temporary holdoff state while waiting for the Test Set to put a 1 into the Output queue to satisfy the :WAIT? query command.
  • Page 430 Chapter 7, IBASIC Controller PROGram Subsystem Example BASIC program without using the :WAIT? query command 10 OUTPUT 714;"PROG:STAT RUN" 20 LOOP 30 OUTPUT 714;"PROG:STAT?" 40 ENTER 714;State$ 50 EXIT IF State$="STOP" OR State$="PAUS" 60 END LOOP 70 DISP "IBASIC program not running." 80 END Example BASIC program using the :WAIT? query command 10 OUTPUT 714;"PROG:STAT RUN"...
  • Page 431 HP Rocky Mountain BASIC programming language running on an HP 9000/300 Series Controller. When a PROGram Subsystem command is sent to the Test Set through HP-IB from an external controller the Test Set is put into REMOTE mode. The Test Set must be put in LOCAL mode to use the front panel keys or to use the serial ports to input data into the IBASIC Command line.
  • Page 432 Chapter 7, IBASIC Controller PROGram Subsystem Editing an existing IBASIC program line Existing IBASIC program lines which are resident in the Test Set’s RAM memory can be edited, one line at a time, from an external controller using the PROGram:EXECute command as follows: PROG:EXEC ’<existing program line number/modified program line>’...
  • Page 433 IBASIC program, which is resident in the memory of the external controller, from the external controller to the Test Set. This procedure assumes the Test Set’s HP-IB address is set to 14. The example also assumes the external controller is an HP 9000 Series 300 Controller.
  • Page 434 20 DIM Prog_line$[200] !Holds longest program line in Test Set 30 DIM File_name$[10] !Holds the name of file to store IBASIC program 40 Addr=714 !Test Set HP-IB address 50 LINPUT "Enter name of file to store IBASIC program in:",File_name$ 60 OUTPUT Addr;"PROG:DEF?"...
  • Page 435 Chapter 7, IBASIC Controller PROGram Subsystem Saving an IBASIC Program To A Memory Card The following procedure can be used to save an IBASIC program from the IBASIC Controller’s RAM memory to a memory card inserted into the front panel of the Test Set.
  • Page 436: The Tests Subsystem

    The Test Set’s automated user-interface was designed using this approach. Hewlett-Packard has developed software specifically designed to run on the Test Set. The HP 11807 Radio Test Software provides the user with a library of industry standard tests. All radio specific information has been removed from the software.
  • Page 437 HP-IB port of the Test Set, or in an internal RAM disk. The name of this file is preceded by a lower case c in the HP 8921A. This tells the TESTS Subsystem that this particular file contains program code.
  • Page 438 Chapter 7, IBASIC Controller The TESTS Subsystem Procedure Files A Procedure allows the user to define which of the test subroutines, parameters, and specifications defined in the Library will be used to test a specific Radio. There may be many Procedures defined that use the same IBASIC Code and Library, each using a different subset of the choices available in the Library.
  • Page 439 Chapter 7, IBASIC Controller The TESTS Subsystem TESTS Subsystem Screens The TESTS Subsystem uses several screens to create, select, and copy files, and to run tests. The Main TESTS Subsystem Screen Refer to figure 30 The TESTS (Main Menu) screen is accessed by pressing the front panel TESTS key.
  • Page 440 Chapter 7, IBASIC Controller The TESTS Subsystem ch6drw7.drw Figure 30 The TESTS (Main Menu) Subsystem Screen TESTS Subsystem User-Interface Screens The TESTS Subsystem allows the user to easily modify the test subroutines, parameters, specifications and configuration to correspond to the requirements of a specific radio.
  • Page 441 (audio load impedance, audio power, power supply voltage). • The External Devices screen identifies all connected HP-IB equipped instruments and their HP-IB addresses. • The Save/Delete Procedure screen is used to save or delete Procedures.
  • Page 442 Chapter 7, IBASIC Controller The TESTS Subsystem...
  • Page 443: Programming The Call Processing Subsystem

    Programming The Call Processing Subsystem This chapter presents information on how to control the Test Set’s Call Processing Subsystem using the Call Processing Subsystem’s remote user interface. For information on how to control the Call Processing Subsystem manually, refer to Chapter 6, Call Processing Subsystem, in the Test Set’s User’s Guide.
  • Page 444: Description Of The Call Processing Subsystem's Remote User Interface

    Call Processing Subsystem annunciator state indicators • a set of error messages, available through HP-IB, which provide information about error conditions encountered while in the Call Processing Subsystem The programming commands provide the capability to generate control programs which can establish a cellular link between the Test Set and a cellular phone (mobile station).
  • Page 445 Chapter 8, Programming The Call Processing Subsystem Description of the Call Processing Subsystem’s Remote User Interface In addition to the mobile station’s call processing functions, the control program can utilize the RF and audio instruments in the Test Set to characterize the overall performance of the mobile station while on an active voice channel by making such measurements as;...
  • Page 446 Chapter 8, Programming The Call Processing Subsystem Description of the Call Processing Subsystem’s Remote User Interface Operational Overview The Test Set simulates a cellular base station by using its hardware and firmware resources to initiate and maintain a link with a mobile station. Unlike a real base station, the Test Set has only one transceiver (its signal generator and RF/AF analyzer) and can support only one mobile station at a time.
  • Page 447 Chapter 8, Programming The Call Processing Subsystem Description of the Call Processing Subsystem’s Remote User Interface State: Idle State: Register Annunciator: None Annunciator: Register Meas: None Meas:RECCW A RECCW B RECCW C Phone Number ESN (hexadecimal) Active Register State: Active Annunciator: Active Meas: None...
  • Page 448: Using The Call Processing Subsystem's Remote User Interface

    Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface Using the Call Processing Subsystem’s Remote User Interface In order to use the Call Processing Subsystem’s Remote User Interface, a mobile station must be powered on, and connected to the Test Set. Connecting a Mobile Station shows a Figure 32, "Connecting a Mobile Station to the Test Set,"...
  • Page 449 Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface AUDIO OUT AUDIO IN RF IN/OUT ANT IN Speaker Out Microphone In Mobile Station Manufacturer’s Antenna Special Fixture Figure 32 Connecting a Mobile Station to the Test Set NOTE: Do not connect the antenna of the mobile station to the ANT IN port on the front panel of the Test Set as this will cause the overpower protection circuitry to trip when the mobile station...
  • Page 450 Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface Accessing the Call Processing Subsystem Screens The Call Processing Subsystem screens are accessed by selecting the CALL , or screens CONTROL CALL DATA CALL BIT CALL CONFIGURE ANALOG MEAS using the :DISPlay command.
  • Page 451 Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface Command Syntax The Call Processing Subsystem programming commands and command syntax are detailed in . Refer to the “Programming the "Call Processing" on page 126 (screen name) Screen”...
  • Page 452 Commands: OUTPUT 714;"DISP CONF;:CONF:NOTC ’AFGEN1’" Call Processing Subsystem HP-IB Error Messages "Error − The Call Processing Subsystem HP-IB error messages are detailed in "Error −1317" on page 591 through 1300" on page 588...
  • Page 453 Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface Reading A Call Processing Subsystem HP-IB Error Messages If an error occurs while in the Call Processing Subsystem, an appropriate error message will be placed in the Error Message Queue. The control program can read the Error Message Queue to retrieve the error message.
  • Page 454 The control program can access this information in one of two ways; by polling the status registers or by using the service request feature of the HP-IB. If properly implemented, either method can be used to obtain the information.
  • Page 455 Advantages/Disadvantages of Using Service Request The service request feature of the HP-IB has the advantage that it allows the Call Processing Subsystem to execute at its maximum speed since processes within the subsystem are not being constantly interrupted by the need to service the HP-IB.
  • Page 456 Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface When To Query Data Messages Received From The Mobile Station The Call Processing Subsystem makes available to the control program many data messages received from the mobile station. For example, if the Test Set sends a registration message to the mobile station, the registration information (MIN, ESN, SCM) received from the mobile station can be read by the control program.
  • Page 457 Chapter 8, Programming The Call Processing Subsystem Using the Call Processing Subsystem’s Remote User Interface Table 45 Call Processing Subsystem State Transitions Starting State Command State Transitions Final State Idle Active Idle - Active Active Active Register Active - Register - Active Active Active Page...
  • Page 458: Programming The Call Control Screen

    Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Programming The CALL CONTROL Screen Figure 34 The CALL CONTROL Screen screen is the primary Call Processing Subsystem screen. It CALL CONTROL contains the most often used Test Set configuration fields and the command fields used to initiate call processing functions.
  • Page 459 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen [] Access When lit, the annunciator indicates that the Test Set is signaling the Access mobile station with command information on the forward voice channel. This is a transitory state.
  • Page 460 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen [] Active When lit, the annunciator indicates that the control channel of the Test Active Set is turned on. If this annunciator is lit, the Base Station is transmitting system parameter overhead messages on the assigned control channel.
  • Page 461 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Amplitude This field is used to set the output power of the Test Set’s transmitter (that is, the output power of the Test Set’s RF Generator). The :AMPLitude command is used to control this field. Refer to the “Real Number Setting Syntax”...
  • Page 462 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen The :AVCNumber? query command is used to query the contents of the left-hand field. There is no command form of the :AVCNumber? query. Syntax :AVCNumber? Example OUTPUT 714;"CALLP:AVCN?" ENTER 714;Active_vc_number$ •...
  • Page 463 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen NOTE: If the Test Set is in the Connect state and a change is made to the Cntl Channel field the Connect state will be lost. The query form of the command (that is, :CCHannel?) can be used to determine the current control channel setting.
  • Page 464 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen [] Connect When lit, the annunciator indicates that the mobile station is connected Connect to the Test Set on a voice channel. annunciator is not programmable. Connect The state of the annunciator is reflected in the Call Processing Status Connect Register Group Condition Register bit 5.
  • Page 465 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Display The top right-hand portion of the screen is used to display: CALL CONTROL • Decoded data messages received from the mobile station on the reverse control channel or the reverse voice channel.
  • Page 466 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen The messages are displayed in six non-labeled received data fields (that is, there is no field label on the display screen). The fields are named RCDD1 through RCDD6. The first and topmost field is RCDD1. The last and lowermost field is RCDD6.
  • Page 467 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Table 46 Information Strings Available From Reverse Control Channel Information Strings Displayed in Received Reverse Control Channel Message Displayed Data Field Origination Message Phone Number RCDD1 ESN(dec) RCDD2 ESN(hex) RCDD3 Station Class Mark...
  • Page 468 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Table 48 Information Strings Available When A Decoding Error Occurs Length of Received Displayed in Received Information Strings Displayed Data Field Data Field error data received from <channel type> word 1 RCDD1 30 characters max...
  • Page 469 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen To read the decoded data messages received Reading The Received Data Fields from the mobile station on the reverse control channel or reverse voice channel or the raw data message bits displayed when a decoding error occurs, the control program queries one, some, or all of the six received data fields.
  • Page 470 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Figure 36 CALL CONTROL Screen with Meas Selected...
  • Page 471 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen selection brings Reading The Modulation Quality Measurement Fields MEAS some of the Test Set’s Audio Analyzer fields and some of the Test Set’s RF Analyzer fields onto the screen for the purpose of making CALL CONTROL modulation quality measurements on the mobile station’s RF carrier while on a...
  • Page 472 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen ESN (hex): This information string displays the electronic serial number (ESN), in hexadecimal form, received from the mobile station on the reverse control channel in response to a forward control channel message. field is only displayed when the field is set to ESN (hex):...
  • Page 473 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen NOTE: When the CALL CONTROL screen is displayed, the Test Set’s instrumentation is configured for optimal performance of the signaling decoder. Two characteristics of the instrumentation which have a significant affect on the performance of the signaling decoder are: 1) audio frequency gain and 2) post detection filtering.
  • Page 474 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen MS Id This field is used to enter the identification number of the mobile station. The field has two fields. The content of the lower field is automatically updated MS Id upon successful completion of a mobile station registration.
  • Page 475 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen The query form of the programming commands (that is, the ? form) can be used to interrogate the contents of each field. Syntax :NMODE <’><PHONE NUM/MIN2 MIN1><’> :NMODE? :PNUMber <’><10 character phone number><’>...
  • Page 476 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Order This field is used to send an order type mobile station control message on the forward voice channel to the mobile station. The orders available are: • Change Power to Power Level 0 - 7 •...
  • Page 477 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Page This field is used to initiate a page to the mobile station connected to the Test Set. The Test Set must be in the active state (that is, annunciator lit) and the Active information must be correct before attempting to page a mobile station.
  • Page 478 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Phone Num: This field displays the phone number decoded from the MIN number received from the mobile station on the reverse control channel in response to a forward control channel message field is only displayed when the field is set to...
  • Page 479 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Pwr Lvl: field is divided into two fields: Pwr Lvl: • The left-hand field displays the mobile station’s output power level assignment for the voice channel currently being used by the Test Set and the mobile station. A numeric value is only displayed when a mobile station is actively connected on a voice channel (that is, the Connect annunciator is lit).
  • Page 480 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Register This field is used to initiate a registration of the mobile station connected to the Test Set. The Test Set must be in the active state (that is, the annunciator lit) before Active attempting to register a mobile station.
  • Page 481 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen Release This field is used to terminate an active voice channel connection with the mobile station. When the field is selected, a mobile station control message with a Release Release order is sent to the mobile station on the forward voice channel.
  • Page 482 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen SAT: field is divided into two fields: SAT: • The left-hand field displays the current SAT tone frequency assignment for the current voice channel being used by the Test Set and the mobile station. A numeric value is only displayed when a mobile station is actively connected on a voice channel (that is, the Connect annunciator is lit).
  • Page 483 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen SCM: This field displays the decoded station class mark information received from the mobile station on the reverse control channel in response to a forward control channel message. The decoded SCM consists of: the mobile station power class (Class I, II, or III), the transmission type (continuous/discontinuous), and the transmission bandwidth (20 MHz or 25 MHz).
  • Page 484 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen System Type This field is used to select the type of cellular system (AMPS, TACS, JTACS) which will be simulated. The :CSYStem command is used to control this field. field is an immediate action field.
  • Page 485 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONTROL Screen TX Freq Error This field displays the frequency error (frequency error = assigned carrier frequency - measured carrier frequency) of the RF carrier being transmitted by the mobile station. Four dashes (----) indicate that no RF carrier is present to measure. A numeric value would only be displayed in the connected state (that is, the annunciator is lit).
  • Page 486: Programming The Call Data Screen

    Chapter 8, Programming The Call Processing Subsystem Programming The CALL DATA Screen Programming The CALL DATA Screen Figure 37 The CALL DATA Screen This screen displays the decoded reverse control channel and reverse voice channel signaling messages received by the Test Set from the mobile station. Six different decoded messages can be viewed on this screen.
  • Page 487 Chapter 8, Programming The Call Processing Subsystem Programming The CALL DATA Screen • Reverse Voice Channel Messages for Order Confirmation. • "RVCOrdCon Message Fields" on page 498 Refer to the User’s Guide for detailed information on the operation and manual use of the screen.
  • Page 488 Chapter 8, Programming The Call Processing Subsystem Programming The CALL DATA Screen for information See "Reading the CALL DATA Screen Message Fields" on page 489 on how to read the contents of the individual messages. Syntax :DATA <’><RECCW A/RECCW B/RECCW C/RECCW D/RECCW E/RVCOrdCon><’> :DATA? Example OUTPUT 714;"CALLP:DATA ’RECCW A’"...
  • Page 489 Chapter 8, Programming The Call Processing Subsystem Programming The CALL DATA Screen Reading the CALL DATA Screen Message Fields This section provides programming information on how to read the individual fields from the decoded reverse control channel and reverse voice channel signaling messages available on the screen.
  • Page 490: Call Data Screen Message Field Descriptions

    Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions CALL DATA Screen Message Field Descriptions This section describes the individual data fields contained in each of the decoded reverse control channel and reverse voice channel messages accessible through screen.
  • Page 491 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions This field displays the first word indication received from the mobile station. • A ‘1’ indicates that this is the first word. • A ‘0’ is displayed for all subsequent words. NAWC This field displays the number of additional words coming from the mobile station.
  • Page 492 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions RSVD This field is reserved for future use. This field displays the mobile station’s received station class mark. MIN1 This field displays the first part of the mobile identification number received from the mobile station.
  • Page 493 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions RECCW B Message Fields Figure 39 RECCW B Message Fields This field displays the first word indication received from the mobile station. • A ‘1’ indicates that this is the first word. •...
  • Page 494 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions ORDER This field displays the field and identifies the order type received by the Order Test Set. This field displays the last-try code field. RSVD Reserved for future use. MIN2 This field displays the second part of the mobile identification number received by the Test Set.
  • Page 495 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions RECCW C Message Fields Figure 40 RECCW C Message Fields This field displays the first word indication received from the mobile station. • A ‘1’ indicates that this is the first word. •...
  • Page 496 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions RECCW D Message Fields Figure 41 RECCW D Message Fields This field displays the first word indication received from the mobile station. • A ‘1’ indicates that this is the first word. •...
  • Page 497 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions RECCW E Message Fields Figure 42 RECCW E Message Fields This field displays the first word indication received from the mobile station. • A ‘1’ indicates that this is the first word. •...
  • Page 498 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions RVCOrdCon Message Fields Figure 43 RVCOrdCon Message Fields This field displays the first word indication received from the mobile station. • A ‘1’ indicates that this is the first word. •...
  • Page 499 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions Local This field displays the local control field. This field is specific to each system. The field must be set to local control for this field to be interpreted by the Test ORDER Set.
  • Page 500 Chapter 8, Programming The Call Processing Subsystem CALL DATA Screen Message Field Descriptions Querying a Single Field Example of Querying A Single Field OUTPUT 714;"CALLP:DATA ’RECCW A’" OUTPUT 714;"CALLP:RECA:SCM?" ENTER 714;Scm$ PRINT Scm$ Example Printout "1110" Querying Multiple Fields With Single OUTPUT/ENTER When multiple queries are combined into one command string the Test Set responds by sending one response message containing individual response message units separated by a response message unit separator (;).
  • Page 501: Programming The Call Bit Screen

    Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Programming The CALL BIT Screen Figure 44 The CALL BIT Screen The CALL BIT screen has been designed to give the advanced user the capability to modify the contents of the forward control channel and forward voice channel signaling messages used in a call processing messaging protocol.
  • Page 502 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen For example: changing the value of the SAT color code field (SCC) in the forward control channel mobile station control message (MS IntVCh) does not change the setting of the field on the CALL CONTROL screen.
  • Page 503 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen When the CALL BIT screen is displayed and the Call Processing Subsystem is in state, the host firmware constantly monitors the mobile station’s Connect transmitted carrier power. If the power falls below 0.0005 Watts the error message will be displayed RF Power Loss indicates loss of Voice Channel and the Test Set will terminate the call and return to the...
  • Page 504 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen [] Access for programming information. See "[] Access" on page 459 Active for programming information. See "Active" on page 459 [] Active for programming information. See "[] Active" on page 460 [] Connect for programming information.
  • Page 505 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Data Spec This field is used to determine how the contents of the signaling messages are built. • Std = Use the signaling formats defined in the applicable industry standard to build the forward control channel and forward voice channel signaling messages.
  • Page 506 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen for information See "Reading the CALL BIT Screen Message Fields" on page 509 on how to read the contents of the individual messages. Syntax :DSPecifier <’><STD/BITS><’> :DSPecifier? Example OUTPUT 714;"CALLP:DSP?"...
  • Page 507 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Page for programming information. See "Page" on page 477 [] Page for programming information. See "[] Page" on page 477 Register for programming information. See "Register" on page 480 [] Register for programming information.
  • Page 508 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Set Message This field is used to select the desired forward control channel or forward voice channel message to be displayed. The :MESSage command is used to control this field. The query form of the command (that is, :MESSage?) can be used to determine which forward control channel or forward voice channel message is currently being displayed.
  • Page 509 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Reading the CALL BIT Screen Message Fields This section provides programming information on how to read the contents of individual fields in the signaling messages available on the screen.
  • Page 510 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Querying Multiple Fields With Single OUTPUT/ENTER When multiple querries are combined into one command string the Test Set responds by sending one response message containing individual response message units separated by a response message unit separator (;). Example of Multiple Querries Combined Into One Command String OUTPUT 714;"CALLP:MESS ’SPC WORD1’"...
  • Page 511 Chapter 8, Programming The Call Processing Subsystem Programming The CALL BIT Screen Modifying the CALL BIT Screen Message Fields This section provides programming information on how to set the contents of individual fields in the signaling messages available on the screen.
  • Page 512: Call Bit Screen Message Field Descriptions

    Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions CALL BIT Screen Message Field Descriptions This section describes the individual data fields contained in each of the forward control channel and forward voice channel messages. SPC WORD1 Message Fields Figure 45 SPC WORD1 Message Fields T1T2...
  • Page 513 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions SID1 First part of the system identification field. The field contains the decimal equivalent of the 14 most significant bits of the system identification number. 14 binary characters required. RSVD Reserved for future use.
  • Page 514 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions SPC WORD2 Message Fields Figure 46 SPC WORD2 Message Fields T1T2 This field identifies the received message as an order confirmation, an order, or a called address message. 2 binary characters required.
  • Page 515 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions This field displays the extended address word sent to the mobile. • Set to ‘1’ if the extended address word is sent. • Set to ‘0’ if the extended address word is not sent. 1 binary character required.
  • Page 516 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions Combined paging/access field. 1 binary character required. CMAX-1 CMAX is the number of access channels in the system. 7 binary characters required. End indication field. • Set to 1 to indicate the last word of the overhead message train. •...
  • Page 517 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions ACCESS Message Fields Figure 47 ACCESS Message Fields T1T2 This field identifies the received message as an order confirmation, an order, or a called address message. 2 binary characters required. Digital color code field.
  • Page 518 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions Busy-Idle status field. 1 binary character required. RSVD Reserved for future use, all bits must be set as indicated. 15 binary characters required. End indication field. • Set to 1 to indicate the last word of the overhead message train.
  • Page 519 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions REG INC Message Fields Figure 48 REG INC Message Fields T1T2 This field identifies the received message as an order confirmation, an order, or a called address message. 2 binary characters required.
  • Page 520 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions REGINCR Registration increment field. 12 binary characters required. RSVD Reserved for future use, all bits must be set as indicated. 4 binary characters required. End indication field. •...
  • Page 521 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions REG ID Message Fields Figure 49 REG ID Message Fields T1T2 This field identifies the received message as an order confirmation, an order, or a called address message. 2 binary characters required.
  • Page 522 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions This field displays the overhead message type. • A ‘100’ indicates a global action message. • A ‘110’ indicates this is the first word of the system parameter overhead parameter message.
  • Page 523 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions CMAC Control mobile attenuation field. Indicates the mobile station power level associated with reverse control channel. 3 binary character required. RSVD1 Reserved for future use, all bits must be set as indicated. 2 binary characters required.
  • Page 524 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions Control filler message field 4. All bits must be set as indicated. 4 binary character required. This field displays the overhead message type. • A ‘100’ indicates a global action message. •...
  • Page 525 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions Digital color code field. 2 binary characters required. MIN1 First part of the mobile identification number field. 24 binary character required. Parity Parity field. The contents of the Parity field cannot be set by the user. The Test Set calculates the parity bits.
  • Page 526 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions MIN2 Second part of the mobile identification number field. 10 binary character required. RSVD Reserved for future use, all bits must be set as indicated. 1 binary character required. LOCAL This field is specific to each system.
  • Page 527 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions MS IntVCh Message Fields Figure 53 MS IntVCh Message Fields T1T2 This field identifies the received message as an order confirmation, an order, or a called address message. 2 binary characters required.
  • Page 528 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions VMAC This field displays the voice mobile attenuation code. It shows the mobile station’s power level associated with the designated voice channel. 1 binary character reqired.3 CHAN Channel number field.
  • Page 529 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions PSCC Present SAT color code. Indicates the SAT color code associated with the present channel. 2 binary characters required. RSVD Reserved for future use, all bits must be set as indicated. 9 binary character required.
  • Page 530 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions FVC V Mes Message Fields Figure 55 FVC V Mes Message Fields T1T2 This field identifies the received message as an order confirmation, an order, or a called address message.
  • Page 531 Chapter 8, Programming The Call Processing Subsystem CALL BIT Screen Message Field Descriptions RSVD Reserved for future use, all bits must be set as indicated. 8 binary character required. VMAC This field displays the voice mobile attenuation code. It shows the mobile station power level associated with the designated voice channel.
  • Page 532: Programming The Analog Meas Screen

    ANALOG MEAS mobile station connected to the Test Set while on an active voice channel. Refer to Chapter 6, “Call Processing Subsystem”, in the HP 8920 User’s Guide for detailed information on the operation and manual use of the ANALOG MEAS screen.
  • Page 533 Chapter 8, Programming The Call Processing Subsystem Programming The ANALOG MEAS Screen Refer to for connection "Connecting a Mobile Station to the Test Set" on page 449 information. If the mobile station does not have audio connections the ANALOG MEAS screen cannot be used. CAUTION: The host firmware does not monitor the mobile station’s transmitted carrier power while the ANALOG MEAS screen is displayed.
  • Page 534 Chapter 8, Programming The Call Processing Subsystem Programming The ANALOG MEAS Screen AFGen1 To This field has two subfields: • the upper subfield sets the destination port for Audio Frequency Generator #1 • FM = RF Generator FM modulator • AM = RF Generator AM modulator •...
  • Page 535 (RF Sensitivity) and a typical mobile station transmitter measurement (FM Hum and Noise). Refer to the HP 8920A RF Communications Test Set Applications Handbook, section “Testing FM Radios” for further information on using the Test Set’s Audio Analyzer to make audio measurements.
  • Page 536 The following example code segment shows how to program the ANALOG MEAS screen to make an RF Sensitivity measurement. The code segment represents a HP RM BASIC subprogram. In order for this subprogram to work properly the following conditions must be true when the subroutine is called: •...
  • Page 537 Chapter 8, Programming The Call Processing Subsystem Programming The ANALOG MEAS Screen SUB Meas_sinad INTEGER Loop_counter OUTPUT 714;"DISP CME" OUTPUT 714;"AFG1:DEST ’FM’;FREQ 1KHZ;FM 8KHZ;FM:STAT ON" OUTPUT 714;"AFAN:INP ’AUDIO IN’;DEMP ’OFF’;DET ’RMS’" OUTPUT 714;"AFAN:FILT1 ’C MESSAGE’;FILT2 ’>99KHZ LP’" OUTPUT 714;"MEAS:AFR:SEL ’SINAD’" OUTPUT 714;"RFG:AMPL -116DBM"...
  • Page 538 The following example code segment shows how to program the ANALOG MEAS screen to make an FM Hum & Noise measurement. The code segment represents a HP RM BASIC subprogram. In order for this subprogram to work properly the following conditions must be true when the subroutine is called: •...
  • Page 539 Chapter 8, Programming The Call Processing Subsystem Programming The ANALOG MEAS Screen SUB Meas_hum_noise OUTPUT 714;"DISP CME" OUTPUT 714;"AFG1:DEST ’AUDIO OUT’;FREQ 1KHZ;OUTP:INCR .01V" OUTPUT 714;"AFG1:OUTP 50 MV" OUTPUT 714;"AFAN:INP ’FM DEMOD’;DEMP ’750 US’;DET ’PK+’" OUTPUT 714;"AFAN:FILT1 ’C MESSAGE’;FILT2 ’>99KHZ LP’" OUTPUT 714;"MEAS:AFR:SEL ’AF FREQ’"...
  • Page 540: Programming The Call Configure Screen

    Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONFIGURE Screen Programming The CALL CONFIGURE Screen Figure 57 The CALL CONFIGURE Screen This screen is used to set some of the less commonly used Test Set configuration parameters. When the CALL CONFIGURE screen is displayed and the Call Processing Subsystem is in the state, the host firmware constantly monitors the Connect...
  • Page 541 Refer to “Using the Analog Call Processing Subsystem” in the Application Guide for operating information on the use of the screen. CALL CONFIGURE Refer to Chapter 6, “Call Processing Subsystem”, in the HP 8920 User’s Guide for detailed information on the operation and manual use of the CALL screen.
  • Page 542 Chapter 8, Programming The Call Processing Subsystem Programming The CALL CONFIGURE Screen Detector This field is used to select the type of detector used to measure the amplitude of the audio signal being analyzed on the screen. The ANALOG MEAS Detector field is imported from the screen and is programmed exactly as it...
  • Page 543: Example Programs

    This section contains two example programs for controlling the Call Processing Subsystem. The SRQ Example Program demonstrates how to control program flow using the service request feature of the HP-IB. The Polling Example Program demonstrates how to control program flow by polling the Test Set’s status registers.
  • Page 544 Chapter 8, Programming The Call Processing Subsystem Example Programs The program traps any errors which may occur while executing. If an error is detected, the error data is printed and the program stops. In a ‘real world’ environment the control program would have to make some flow decision based upon the nature of the error.
  • Page 545 Chapter 8, Programming The Call Processing Subsystem Example Programs SRQ Example Program ! SRQ_sample program OPTION BASE 1 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr COM /Prog_control/ INTEGER Oper_complete,Wait_time,Error_flag Bus_addr=7 ! Set to 8 when running on 8920 Inst_addr=714 ! Set to 814 when running on 8920 Wait_time=0 ! Set to minimum of .5 when running on an 8920 Oper_complete=0 ! 1 = Operation complete...
  • Page 546 Chapter 8, Programming The Call Processing Subsystem Example Programs END IF ELSE Print_error END IF IF NOT FNSet_state("Release") THEN CALL Print_error BEEP DISP "Originate a call from the mobile station." IF FNSet_state("Originate") THEN DISP "" Read_rcdd_data("12345") ELSE Print_error END IF IF NOT FNSet_state("Release") THEN CALL Print_error PRINT "Program completed."...
  • Page 547 Chapter 8, Programming The Call Processing Subsystem Example Programs 2130 3000 Srvice_interupt: SUB Srvice_interupt 3010 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr 3020 COM /Prog_control/ INTEGER Oper_complete,Wait_time,Error_flag 3030 INTEGER Std_event,Status_byte,Call_proc_event,Oper_event 3040 Status_byte=SPOLL(Inst_addr) 3050 IF BIT(Status_byte,5) THEN ! Check for error conditions first 3060 Error_flag=1 3070 SUBEXIT !Dont re-enable interrupts until current errors processed.
  • Page 548 Chapter 8, Programming The Call Processing Subsystem Example Programs 5240 6000 Set_state: DEF FNSet_state(State$) 6010 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr 6020 COM /Prog_control/ INTEGER Oper_complete,Wait_time,Error_flag 6030 INTEGER Ptr_value 6040 Oper_complete=0 !Initialize to zero at start of any state change 6050 Error_flag=0 !Initialize to zero at start of any state change 6060...
  • Page 549 Chapter 8, Programming The Call Processing Subsystem Example Programs 7060 CASE "Power" 7070 OUTPUT Inst_addr;"STAT:CALLP:PTR 32" 7080 OUTPUT Inst_addr;"CALLP:ORD ’CHNG PL "&VAL$(Parm)&"’" 7090 CASE "Mainten" 7100 BEEP 7110 OUTPUT Inst_addr;"STAT:CALLP:PTR 16;:CALLP:ORD ’MAINTEN’" 7120 CASE "Alert" 7130 BEEP 7140 OUTPUT Inst_addr;"STAT:CALLP:PTR 32;:CALLP:ORD ’ALERT’" 7150 END SELECT 7160...
  • Page 550 Chapter 8, Programming The Call Processing Subsystem Example Programs 10010 OPTION BASE 1 10020 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr 10030 DIM Rcdd$(6)[40] 10040 INTEGER N 10050 WAIT .1 !Allow time for RCDD data fields to be updated. 10060 FOR N=1 TO LEN(TRIM$(Fields$)) 10070 OUTPUT Inst_addr;"CALLP:RCDD"&Fields$[N,N]&"?"...
  • Page 551 Chapter 8, Programming The Call Processing Subsystem Example Programs 12100 OUTPUT Inst_addr;"TRIG;:MEAS:AFR:SINAD?" 12110 ENTER Inst_addr;Sinad 12120 Avg_sinad=Avg_sinad+Sinad 12130 NEXT N 12140 PRINT USING "K,3D.2D,K";"SINAD = ";Avg_sinad/N;" dB at -116 dBm." 12150 OUTPUT Inst_addr;"TRIG:MODE:RETR REP;SETT FULL" 12160 OUTPUT Inst_addr;"RFG:AMPL -30DBM;:DISP ACNT" 12165 SUBEXIT 12170 Timed_out:! 12180 ON TIMEOUT Bus_addr,Time_out_value RECOVER Cannot_recover...
  • Page 552 Chapter 8, Programming The Call Processing Subsystem Example Programs Comments for SRQ Example Program Table 52 Comments For SRQ Example Program Program Line Comment Number When running on an external controller no wait is required. When running on the Test Set’s internal IBASIC controller a wait is required.
  • Page 553 TRUE. Therefore Bit 9 (2^9=512) in the Operational Status Register Group Enable Register must be set HIGH: STAT:OPER:ENAB 512 * The Test Set’s HP-IB interface has a large input buffer and can handshake in several commands. The commands are processed serially out of the input buffer. In this example program the Cnfg_srvc_intrp sends 8 commands to the Test Set in rapid succession.
  • Page 554 Chapter 8, Programming The Call Processing Subsystem Example Programs Polling Example Program OPTION BASE 1 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr COM /Prog_control/ INTEGER Std_event,Wait_time Bus_addr=7 ! Set to 8 when running on 8920 Inst_addr=714 ! Set to 814 when running on 8920 Wait_time=.5 ! Set to minimum of .5 when running on an 8920 ABORT Bus_addr...
  • Page 555 Chapter 8, Programming The Call Processing Subsystem Example Programs Print_error END IF IF NOT FNSet_state("Release") THEN CALL Print_error PRINT "Program completed." 1000 Cnfg_stat_reg: SUB Cnfg_stat_reg 1010 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr 1020 OUTPUT Inst_addr;"*RST;*CLS;*SRE 0;STAT:CALLP:PTR 0;NTR 0;*OPC?" 1030 ON TIMEOUT Bus_addr,10 GOTO Cnfg_failed 1040 ENTER Inst_addr;Cnfg_complete 1050...
  • Page 556 Chapter 8, Programming The Call Processing Subsystem Example Programs 3290 FNEND 4000 Set_state: DEF FNSet_state(State$) 4010 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr 4020 COM /Prog_control/ INTEGER Std_event,Wait_time 4030 INTEGER Ptr_value,Call_proc_even 4040 SELECT State$ 4050 CASE "Active" 4060 Ptr_value=1 4070 CASE "Register" 4080 Ptr_value=1 4090 CASE "Page"...
  • Page 557 Chapter 8, Programming The Call Processing Subsystem Example Programs 6040 SELECT Order$ 6050 CASE "Power" 6060 Ptr_value=32 6070 OUTPUT Inst_addr;"STAT:CALLP:PTR "&VAL$(Ptr_value) 6080 OUTPUT Inst_addr;"CALLP:ORD ’CHNG PL "&VAL$(Parm)&"’" 6090 CASE "Mainten" 6100 Ptr_value=16 6110 OUTPUT Inst_addr;"STAT:CALLP:PTR "&VAL$(Ptr_value) 6120 OUTPUT Inst_addr;"CALLP:ORD ’MAINTEN’" 6130 CASE "Alert"...
  • Page 558 Chapter 8, Programming The Call Processing Subsystem Example Programs 10010 COM /Io_addresses/ INTEGER Inst_addr,Bus_addr 10015 ON TIMEOUT Bus_addr,5 RECOVER Timed_out 10020 OUTPUT Inst_addr;"DISP ACNT;:CALLP:MODE ’MEAS’;:MEAS:RFR:POW?;FREQ:ERR?" 10030 ENTER Inst_addr;Power,Freq_error 10040 OUTPUT Inst_addr;"MEAS:AFR:FREQ?;FM?" 10050 ENTER Inst_addr;Audiofreq,Deviation 10060 PRINT USING "K,2D.3D,K";"Carrier Power = ";Power;" Watts" 10070 PRINT USING "K,2D.3D,K";"Audio Frequency = ";Audiofreq/1000;"...
  • Page 559 Chapter 8, Programming The Call Processing Subsystem Example Programs 11280 SUBEND 11290 !
  • Page 560 The filters will be set by the functions FNSet_state and FNOrder. The functions will set the proper filter values to pass the desired transition. * The Test Set’s HP-IB interface has a large input buffer and can handshake in several commands. The commands are processed serially out of the input buffer. In this example program the Cnfg_srvc_intrp sends 8 commands to the Test Set in rapid succession.
  • Page 561 Chapter 8, Programming The Call Processing Subsystem Example Programs Table 53 Comments For Polling Example Program (Continued) Program Line Comment Number 4060 Ptr_value is the value that the positive transition filter will be set to. The value is determined by which pseudo-LED will light when the desired command is completed. For example, a successful PAGE is indicated by the Connect pseudo-LED lighting.
  • Page 562 Chapter 8, Programming The Call Processing Subsystem Example Programs...
  • Page 563 Error Messages...
  • Page 564 • Programmer’s Guide • Assembly Level Repair Manual • HP Instrument BASIC User’s Handbook: • HP Instrument BASIC Users Handbook (HP P/N E2083-90601) The format of the displayed message determines which manual contains information about the error message. There are four basic error message formats: •...
  • Page 565 Positive Numbered Error Messages Positive numbered error messages are generally associated with IBASIC. Refer to the HP Instrument BASIC User’s Handbook for information on IBASIC error messages. Positive numbered error messages take the form: ERROR XX <error message> For example...
  • Page 566 Standard Commands for Programmable Instruments (SCPI). For more information on SCPI, order the following book, A Beginner’s Guide to SCPI Addison-Wesley Publishing Company ISBN 0-201-56350-9 HP P/N 5010-7166 or contact, Fred Bode, Executive Director SCPI Consortium 8380 Hercules Drive, Suite P3...
  • Page 567 IBASIC Error Messages IBASIC Error Messages are associated with IBASIC operation. IBASIC error messages can have both positive and negative numbers. Refer to the HP Instrument BASIC User’s Handbook for information on positive numbered error messages. Refer to the HP-IB Error...
  • Page 568 HP-IB Error Messages HP-IB Error Messages are associated with HP-IB operation. HP-IB error messages take the following form: HP-IB Error: -XX <error message> or HP-IB Error <error message> For example HP-IB Error: -410 Query INTERRUPTED. HP-IB Error: Input value out of range.
  • Page 569 Text Only Error Messages Text only error messages are generally associated with manual operation of the Test Set. Refer to the HP 8920 or HP 8921 User’s Guide for information on text only error messages. Text only error messages can also be displayed while running the Test Set’s built-in diagnostic or calibration utility programs.
  • Page 570 HP-IB command is received. Many of the messages are displayed on the MESSAGE screen until the instrument is turned off.
  • Page 571 Test Set off and back on. When you rerun the test where the Error Message occurred, it may not occur again. If it does reappear, it would be helpful to HP to record exactly what the configuration of the instrument was when the error appeared and contact HP.
  • Page 572 Most HP-IB errors occur when the control program attempts to query a measurement that is not currently available, or tries to access an instrument connected to the external HP-IB without configuring the Test Set as the System Controller. When diagnosing the cause of...
  • Page 573 HP-IB Error during Procedure catalog. Check Config. This error occurs when the Test Set fails to access an external HP-IB disk drive when trying to obtain a catalog of procedure files. This would occur when the Select...
  • Page 574 Test Set, the RAM Disk allocation, the Save/Recall register allocation and the amount of non-volatile RAM available to IBASIC. HP-IB Error: HP-IB Units cause invalid conversion of attr. This error is generated when trying to change Attribute Units and one of the Data Function values is set to zero.
  • Page 575 Test Set manually to print to an external HP-IB printer • using the Test Set manually to access procedure/library/code files stored on an external HP-IB disk NOTE: HP-IB Parser. The term “Parser” is used in the following error message descriptions. It refers to the Test Set’s HP-IB command parser.
  • Page 576 Error −100 Command error This code indicates only that a Command Error as defined in IEEE 488.2, 11.5.1.1.4 has occurred. Error −101 Invalid character A syntactic element contains a character which is invalid for that type. Error −102 Syntax error An unrecognized command or data type was encountered;...
  • Page 577 Error −110 Command header error An error was detected in the header. Error −111 Header separator error A character which is not a legal header separator was encountered while parsing the header. Error −112 Program mnemonic too long The header contains more than twelve characters (see IEEE 488.2,7.6.1.4). Error −113 Undefined header The header is syntactically correct, but it is undefined for this specific device.
  • Page 578 Error −128 Numeric data not allowed A legal numeric data element was received, but the device does not accept one in this position for the header. Error −130 Suffix error This error, as well as errors −131 through −138, are generated when parsing a suffix. Error −131 Invalid suffix The suffix does not follow the syntax described in IEEE 488.2 7.7.3.2, or the suffix is...
  • Page 579 Error −150 String data error This error, as well as errors −151 through −158, are generated when parsing a string element. Error −151 Invalid string data A string data element was expected, but was invalid for some reason (see IEEE 488.2, 7.7.5.2).
  • Page 580 Error −171 Invalid expression The expression data element was invalid (see IEEE 488.2, 7.7.7.2); for example, unmatched parentheses or an illegal character. Error −178 Expression data not allowed A legal expression data was encountered but was not allowed by the device at this point in parsing.
  • Page 581 Error −202 Settings lost due to rtl Indicates that a setting associated with a hard local control (see IEEE 488.2, 5.6.1.5) was lost when the device changed to LOCS from REMS or to LWLS from RWLS. Error −210 Trigger error Error −211 Trigger ignored Indicates that a GET, *TRG, or triggering signal was received and recognized by the...
  • Page 582 Error −221 Settings conflict Indicates that a legal program data element was parsed but could not be executed due to the current device state (see IEEE 488.2, 6.4.5.3 and 11.5.1.1.5). Error −222 Data out of range Indicates that a legal program data element was parsed but could not be executed because the interpreted value was outside the legal range as defined by the device (see IEEE 488.2, 11.5.1.1.5).
  • Page 583 Error −251 Missing mass storage Indicates that a legal program command or query could not be executed because of missing mass storage. For example, an option that was not installed. Error −252 Missing media Indicates that a legal program command or query could not be executed because of a missing media.
  • Page 584 Error −260 Expression error Indicates that an expression program data element related error occurred. Error −261 Math error in expression Indicates that a syntactically legal expression program data element could not be executed due to a math error. For example, a divide-by-zero was attempted. Error −270 Macro error Indicates that a macro-related execution error occurred.
  • Page 585 Error −276 Macro recursion error Indicates that a syntactically legal macro program data sequence could not be executed because the device found it to be recursive (see IEEE 488.2 10.7.6.6). Error −277 Macro redefinition not allowed Indicates that syntactically legal macro label in the *DMC command could not be executed because the macro label was already defined (see IEEE 488.2, 10.7.6.4).
  • Page 586 Error −286 Program runtime error Error −300 Device-specific error This code indicates only that a Device-Dependent Error as defined in IEEE 488.2, 11.5.1.1.6 has occurred. Error −310 System error Indicates that some error, termed “system error” by the device, has occurred. Error −311 Memory error Indicates that an error was detected in the device’s memory.
  • Page 587 Error −400 Query error This code indicates only that a Query Error as defined in IEEE 488.2 11.5.1.1.7 and 6.3 has occurred. Error −410 Query INTERRUPTED Indicates that a condition causing an INTERRUPTED Query error occurred (see IEEE 488.2, 6.3.2.3). For example, a query followed by DAB or GET before a response was completely sent.
  • Page 588 Error −606 Update of Input Module Relay Switch Count file failed. Indicates that the Test Set was not able to update the Input Module Relay Switch Count EEPROM file with the current switch count data from the non-volatile RAM switch count array.
  • Page 589 Error −1304 Origination attempted while not in Active state. Indicates that a mobile station attempted to originate a call to the simulated Base Station when the Call Processing Subsystem was not in the Active state. Error −1305 Registration attempted while not in Active state. Indicates that an attempt was made to send a Registration message to a mobile station when the Call Processing Subsystem was not in the Active state.
  • Page 590 RF power measurements. See “Conditioning The Test Set For Call Processing” in the HP 8920 User’s Guide for information on zeroing the RF Power meter manually or <blue>"Conditioning the Test Set for Call Processing" on page 452 of this manual for information on zeroing the RF Power meter programmatically.
  • Page 591 Error −1315 Data from RECC contains invalid bits in word [1,2,3]. Indicates that the decoded data received on the reverse control channel contains invalid bits in word 1 and/or word 2 and/or word 3. The raw decoded data is displayed in hexadecimal format in the top right-hand portion of the CALL CONTROL screen.
  • Page 593 B.02.00) terminal emulator, 379, AF Analyzer HP-IB command syntax diagram, AF Freq CALL CONTROL screen, AF Generator 1 HP-IB command syntax diagram, AF Generator 2 HP-IB command syntax diagram, 105, pre-modulation filters, ANALOG MEAS Screen amplitude, de-emphasis, detector, example measurement routines, filter 1,...
  • Page 594 Call Processing fields, HP-IB command syntax diagram, page, call processing reading the call bit screen message state diagram, fields, Call Processing Status Register Group, register, release, program flow control,...
  • Page 595 INCR SET - querying display units via filler message, units via HP-IB, HP-IB, controller, external, 32, METER - setting low end point via HP- INCR SET - querying mode via HP-IB, COPY_PL, Copying a volume, METER - setting number of intervals...
  • Page 596 Index REF SET - setting reference point via HP-IB, Encoder FCC mobile station control word 2 REF SET - turning ON/OFF via HP-IB, pre-modulation filters, order, EPSON card (see Memory card), 329, voice channel assignment, turning ON and OFF, 336,...
  • Page 597 HFS (Hierarchical File System), HP-IB units - definition, Hierarchical File System (HFS), HP-IB units - guidelines, HP 8920A Memory Card Part Numbers, HP-IB units - querying, Increasing measurement speed, HP 8920B Memory Card Part Numbers, Increasing measurement speed (see In-...
  • Page 598 RESet, LEND?, rator, 75, using semicolon to output multiple STATe, STATe, commands, STATe?, STATe?, using upper/lower case letters, Multiple Number Measurement, HP-IB only commands VALue, Multiple Real Number Setting, HP-IB command syntax diagram, VALue?, Number Measurement,...
  • Page 599 ON/OFF state, SAVE command, turning ON and OFF, selecting mass storage devices, Instrument Initialization, STORE command, Device Clear (DCL) HP-IB Bus Com- storing files, mand, IEEE 488.1 Front panel PRESET key, compliance, 49, Interface Clear (IFC) HP-IB Bus Com-...
  • Page 600 SRAM card, 336, write protecting, Mass storage locations default values, selecting, Mass Storage Volume Specifier, Measure HP-IB command syntax diagram, measurement active, 29, querying ON/OFF state, querying value, 29, 44, recommended sequence, turning ON and OFF, Measurement speed - increasing (see In-...
  • Page 601 Non-Recoverable Firmware Error, Operating Modes control filler, Number Measurement external automatic control, 28, extended address word, order, HP-IB command syntax diagram, internal automatic control, 28, 30, extended address word, voice channel manual control, 28, 29, assignment, Operation Status Register Group,...
  • Page 602 Index Pacing measurements, Questionable Data/Signal Register Radio Interface Passing Control, Group, HP-IB command syntax diagram, example programs, accessing registers contained in, RAM Disk, 331, passing control back automatically, condition register bit assignments, initializing, passing control back to another control- using,...
  • Page 603 Status status register structure overview, HP-IB command syntax diagram, 172, status registers in Test Set, status reporting structure operation, Status Byte Register, bit assignments, 247, structure overview, clearing,...
  • Page 604 Terminal Configuration, Uploading programs from Test Set to ex- Trigger Test Set ternal controller, HP-IB command syntax diagram, Attribute units - changing, Uploading programs from Test Set to PC, HP-IB commands, Attribute units - definition, Trigger - aborting, Attribute units - guidelines,...
  • Page 605 Index voice channel assignment, Wildcards, Xon/Xoff, Volume copy, word abbreviated address, extended address, first word of called address, reverse voice channel order confirma- tion message, second word of called address, serial number, Word processor, configuring for program development, transferring programs to Test Set, writing lines of IBASIC code, Write-protect switch,...

Table of Contents