Using the IBASIC Programming Environment on the HP 8920 Test Set Family
Total Page:16
File Type:pdf, Size:1020Kb
This literature was published years prior to the establishment of Agilent Technologies as a company independent from Hewlett-Packard and describes products or services now available through Agilent. It may also refer to products/services no longer supported by Agilent. We regret any inconvenience caused by obsolete information. For the latest information on Agilent’s test and measurement products go to: www.agilent.com/find/products Or in the U.S., call Agilent Technologies at 1-800-452-4844 (8am–8pm EST) HP 8920, 8921 RF Communications Test Set Family Product Note Product Using the IBASIC Programming Environment on the HP 8920 Test Set Family Table of Contents Conventions used in this Product Note ........................................................... 5 Chapter 1 - Overview of the Test Set ............................................................... 6 Reference Documents ................................................................................................ 6 Table 1-1. Useful Programming Documents ......................................................... 6 The Test Set.................................................................................................................. 6 Available Software ..................................................................................................... 6 This Product Note........................................................................................................ 7 Test Set Operating Modes.......................................................................................... 7 Manual Control Mode ............................................................................................... 7 Instrument Types......................................................................................................... 7 Figure 1-1. Manual Control Mode Functional Block Diagram .......................... 7 Table 1-2. Test Set Instrument Types ..................................................................... 8 Front Panel Displays .................................................................................................. 8 Manual Operation........................................................................................................ 8 Table 1-3. Steps to Make an RF Power Measurement ........................................ 9 Automatic Control Mode ........................................................................................ 10 Figure 1-2. Internal Automatic Control Mode Functional Block Diagram .............. 10 IBASIC Controller Characteristics ........................................................................ 10 Four Types of Mass Storage .................................................................................... 11 Contents Four Types of I/O’s ................................................................................................... 11 Table 1-4. Allocation of Controller Resources in Manual and Automatic Mode ........................................................................................................ 12 Dedicated Internal HP-IB Interface Bus ............................................................... 12 Important Notes for Writing Programs .................................................................. 13 Program Development ............................................................................................ 13 Figure 1-3. Program Development Methods ....................................................... 14 Chapter 2 - Interfacing with the IBASIC Controller ................................... 16 Test Set Configuration...................................................................................................... 16 Serial Port Configuration ......................................................................................... 16 Table 2-1. Available HP RS-232 Serial Cables and Adapters .......................... 17 Figure 2-1. Available HP RS-232 Serial Cables and Adapters ........................ 17 Figure 2-2. Connecting the Test Set Serial Port to a PC or Terminal ............. 18 Test Set Serial Port 9 Screen Configuration......................................................... 18 More about Receive and Transmit Pacing ........................................................... 19 Table 2-2. Test Set Serial Port 9 Configuration .................................................. 19 PC Configuration .................................................................................................... 20 PC Serial Port Configuration................................................................................... 20 PC Configuration of Four Available Terminal Emulators................................. 20 Setting Up Microsoft HyperTerminal on your PC (Windows 95, 98) ............... 20 Setting Up Microsoft® Windows Terminal on your PC (Version 3.1) .............. 20 Setting Up ProComm® Revision 2.4.3 on your PC ............................................... 21 Setting Up HP AdvanceLink (HP 68333F Version B.02.00) on your PC .......... 22 Terminal Configuration......................................................................................... 23 2 Table of Contents Chapter 3 - Choosing Your Development Method ........................................ 24 Figure 3-1. Three Possible Development Methods ........................................... 24 Method 1. Developing Programs on a BASIC Language Computer Outside the Test Set .................................................................................................. 25 Figure 3-2. Connecting BASIC Language Computers to the Test Set ............. 25 HP-IB Interface Hardware and Screen Configuration ........................................ 26 Connecting BASIC language computers to the Test Set via HP-IB ................. 26 Downloading Your Program into the Test Set over HP-IB ................................. 27 Uploading Your Program from the Test Set to a Remote BASIC Language Computer over HP-IB ............................................................... 27 Method 2. Developing Programs on the Test Set Via RS-232 Using the “Edit” Mode ..... 28 Selecting the IBASIC Command Entry Field ....................................................... 29 Entering and Exiting the Edit Mode ...................................................................... 30 IBASIC Edit Commands (Function Keys) ............................................................ 30 Table 3-1. Edit Mode Escape Code Commands ................................................. 30 Setting Up Function Keys in Microsoft® Windows Terminal ............................ 30 Setting Up Function Keys in HP AdvanceLink..................................................... 30 Setting Up Function Keys in ProComm. ............................................................... 31 Method 3. Developing Programs in a Word Processor on a PC .......................................... 31 Setting up a Word Processor ................................................................................... 31 Writing Lines of IBASIC Code on the Word Processor ...................................... 31 Transferring Programs from your Text Editor into the Test Set ...................... 32 Sending ASCII Text Files over RS-232 with Windows HyperTerminal .......... 34 Sending ASCII Text Files over RS-232 with ProComm Communications Software ...................................................................................... 34 Uploading Programs from the Test Set to Your PC ............................................. 35 I/O from IBASIC Programs ...................................................................................... 36 The Two Serial Ports ................................................................................................ 36 Example IBASIC Program Using Serial Port 10 .................................................. 36 More Serial Port 10 Information ............................................................................. 37 Chapter 4 - Common Mistakes and Helpful Hints ......................................... 38 Guideline #1: Suggested Measurement Sequence and Example Program .... 38 Example Program ..................................................................................................... 39 Guideline #2: If the Program Stops or “Hangs Up” .............................................. 39 Guideline #3: Use of Single Quotes and Spaces .................................................. 40 Guideline #4: Improve Measurement Speed ........................................................ 40 Guideline #5: Combine Output Statements .......................................................... 41 Guideline #6: Ensure Fields are Active with State On ....................................... 41 Guideline #7: HP-IB Measurements Return in HP-IB Units Only ..................... 42 Guideline #8: HP-IB Syntax Index .......................................................................... 42 Table of Contents 3 Appendix - Description of Memory and Mass Storage ................................. 44 Memory Systems Overview .................................................................................... 44 Figure A-1. Test Set On-board Mass Storage Locations and Size ................... 45 Table A-1. Test Set Memory Overview ................................................................ 45 Selecting the Mass Storage Location .................................................................... 47 Listing Memory Contents .......................................................................................