Errata Title & Document Type: 8590 E-series and L-series Programmer's Guide Manual Part Number: 08590-90235 Revision Date: June 1995 HP References in this Manual This manual may contain references to HP or Hewlett-Packard. Please note that HewlettPackard's former test and measurement, semiconductor products and chemical analysis businesses are now part of Agilent Technologies. We have made no changes to this manual copy. The HP XXXX referred to in this document is now the Agilent XXXX.
Programmer’s Guide HP 8590 E-Series and L-Series Spectrum Analyzers and HP 8591C Cable TV Analyzer Did HEWLETT PACKARD HP Part No.
Notice. The information contained in this document is subject to change without notice. Hewlett-Packard makes no warranty of any kind with regard to this material, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
Certification Hewlett-Packard Company certifies that this product met its published specifications at the time of shipment from the factory. Hewlett-Packard further certifies that its calibration measurements are traceable to the United States National Institute of Standards and Technology, to the extent allowed by the Institute’s calibration facility, and to the calibration facilities of other International Standards Organization members.
Assistance Product maintenance agreements and other customer assistance agreements are available for Hewlett-Rzckard products. For any assistance, contact your nearest Hewlett-Rzckard Sales and Service Office. Safety Notes The following safety notes are used throughout this manual. Familiarize yourself with each of the notes and its meaning before operating this instrument. Caution Caution denotes a hazard.
General Safety Considerations Caution Before switching on this instrument, make sure that the line voltage selector switch is set to the voltage of the power supply and the correct fuse is installed. Warning This is a Safety Class I product (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.
How to Use This Guide This guide uses the following conventions: Sof tkq” This represents a key physically located on the instrument. This indicates a “softkey,” a key whose label is determined by the instrument’s firmware. Screen Text This indicates text displayed on the instrument’s screen.
HP 8590 D-Series and E-Series Spectrum Analyzer Documentation Description In addition to the programmer’s guide, the following guides are shipped with your spectrum analyzer: The Calibration Guide for your Spectrum Analyzer w Tells you how to test your spectrum analyzer to determine if the spectrum analyzer meets its specifications. HP 8590 E-Series and L-Series Spectrum Analyzer User’s Guide n n n Tells you how to make measurements with your spectrum analyzer. Describes the spectrum analyzer features.
Contents 1. Preparing for Use What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . Connecting Your Spectrum Analyzer to a Computer . . . . . . . . . . . . . Configuring Your Computer System . . . . . . . . . . . . . . . . . . . . . Connecting the Computer to the Spectrum Analyzer . . . . . . . . . . . . . For the HP-IB Interface . . . . . . . . . . . . . . . . . . . . . . . . . For the RS-232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . The Test Program . . . . . . .
2. Writing a Program What You’ll Learn in This Chapter . . . . . . . Writing Your First Program . . . . . . . . . . . Composing the Program . . . . . . . . . . . Program Example for the HP-IB Interface . . . Program Example for the RS-232 Interface . . Modifying the Program . . . . . . . . . . . . . Program Example for the HP-IB Interface . . . Program Example for the RS-232 Interface . . Enhancing the Program with Variables . . . . . Program Example for the HP-IB Interface . . .
4. Creating and Using Downloadable Programs What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . WhatisaDLP? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WhyUseaDLP?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating a DLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ‘Ib Use a User-Defined Function within a DLP . . . . . . . . . . . . . . . . Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5. Programming Commands What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ABORT Abort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ABS Absolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ACP Adjacent Channel Power . . . . . . . . . . . . . . . . . . . . . . . . ACPBW Channel Bandwidth . . . . . . . . . . . . . . . . . . . . . . . .
COMPRESS Compress Trace . . . . . . . . . . . . . . . . . . . . . . . . CONCAT Concatenate . . . . . . . . . . . . . . . . . . . . . . . . . . . CONTS Continuous Sweep . . . . . . . . . . . . . . . . . . . . . . . . . CORREK Correction Factors On . . . . . . . . . . . . . . . . . . . . . . . COUPLE Couple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CRTHPOS Horizontal Position of CRT Display . . . . . . . . . . . . . . . . CRTVPOS Vertical Position of CRT Display . . . . . . . . . . . . . . .
GDRVGT Window Gate Control . . . . . . . . . . . . . . . . . . . . . . . GDRVGTIM Gate Trigger to Marker Position for the Time Window . . . . . . GDRVPRI Pulse Repetition Interval . . . . . . . . . . . . . . . . . . . . . GDRVPWID Pulse Width . . . . . . . . . . . . . . . . . . . . . . . . . . GDRVRBW Couple Resolution Bandwidth to Pulse Width . . . . . . . . . . . GDRVREFE Enter Reference Edge . . . . . . . . . . . . . . . . . . . . . GDRVST Couple Sweep Time to Pulse Repetition Interval . . . . . . . . .
LSPAN Last Span . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MDS Measurement Data Size . . . . . . . . . . . . . . . . . . . . . . . . MDU Measurement Data Units . . . . . . . . . . . . . . . . . . . . . . . MEAN Trace Mean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MEANTH Trace Mean Above Threshold . . . . . . . . . . . . . . . . . . . MEASOFF Measurement Off . . . . . . . . . . . . . . . . . . . . . . . . MEASURE Measure Mode . . . . . . . . . . . . . . . . . . . . . . . . .
NRL Normalized Reference Level . . . . . . . . . . . . . . . . . . . . . . OA Output Active Function Value . . . . . . . . . . . . . . . . . . . . . . OBW Occupied Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . OBWPCT Occupied Bandwidth Percent . . . . . . . . . . . . . . . . . . . OL Output Learn String . . . . . . . . . . . . . . . . . . . . . . . . . . ONCYCLE On Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . ONDELAY On Delay . . . . . . . . . . . . . . . . . . . . . . . . . .
RLPOS Reference-Level Position . . . . . . . . . . . . . . . . . . . . . . RMS Root Mean Square Value . . . . . . . . . . . . . . . . . . . . . . . . ROFFSET Reference Level Offset . . . . . . . . . . . . . . . . . . . . . . RQS Service Request Mask . . . . . . . . . . . . . . . . . . . . . . . . . SAVEMENU Save Menu . . . . . . . . . . . . . . . . . . . . . . . . . . SAVES Save State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SAVET Save Trace . . . . . . . . . . . . . . . . . . . . . . . . .
Figures l-l. Connecting the HP 9000 Series 200 Computer to the Spectrum Analyzer . . . l-2. Connecting the HP 9000 Series 300 Computer to the Spectrum Analyzer . . . l-3. Connecting the HP Vectra Personal Computer to the Spectrum Analyzer . . . l-4. Connecting the Personal Computer to the Spectrum Analyzer . . . . . . . . . 3-l. Measurement Unit Range and Trace Amplitudes . . . . . . . . . . . . . . . 4-l. Determining the Number of Records . . . . . . . . . . . . . . . . . . . . 4-2.
Xhbles l-l. Setting of HP ThinkJet Printer Mode Switches . . . . . . . . . . . . . . . . 3-l. Measurement Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2. Summary of the Trace Data Formats . . . . . . . . . . . . . . . . . . . . 4-l. Cataloging a RAM Card . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-l. Syntax Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2. Characters and Secondary Keywords (Reserved Words) . . . . . . . . . . . . 5-3.
1 Preparing for Use What You’ll Learn in This Chapter This chapter tells you how to connect a computer to your spectrum analyzer via the Hewlett-Packard Interface Bus (HP-IB) or the RS-232 Interface and how to connect a printer or a plotter. The remainder of the chapter covers procedures to follow if a problem is encountered. Connecting Your Spectrum Analyzer to a Computer The spectrum analyzer works with many popular computers.
Connecting the Computer to the Spectrum Analyzer For the HP-IB Interface Refer to Appendix B for a detailed description of the HP-IB interface. Appendix B contains instructions for connecting the spectrum analyzer’s HP-IB interface to either an HP 9000 Series 200, or a Series 300 computer, or to an HP Vectra PC equipped with an HP 82300B BASIC Language Processor. If your computer is not listed, but it supports an HP-IB interface, there is a good possibility that it can be connected to the spectrum analyzer.
HP-IB Connections for the HP 9000 Series 200 Technical Computers Equipment n HP 9816, 9826, or 9836 Series 200 technical computer w HP 8590 Series spectrum analyzer with Option 041 n HP 10833 (or equivalent) HP-IB cable Interconnection Instructions Connect the spectrum analyzer to the computer using the HP-IB cable. Figure l-l shows an HP 9836 computer connected to the spectrum analyzer. Figure l-l.
Test Program To test the connection between the computer and the spectrum analyzer, turn on your spectrum analyzer and follow the instructions below. 1. Your HP 9000 Series 200 computer may have either a soft-loaded or built-in language system. If your language system is built-in, remove any disks from the drives and turn on the computer. 2. If your language is soft-loaded, install the BASIC language disk into the proper drive. Turn the computer power on.
HP-IB Connections for the HP 9000 Series 300 Technical Computers Equipment n HP 98580A, 98581A, 98582A, or 98583A Series 300 technical computer n HP 8590 Series spectrum analyzer with Option 041 n HP 10833 (or equivalent) HP-IB cable Interconnection Instructions Connect the spectrum analyzer to the computer using the HP-IB cable as shown in Figure l-2. cul3le Figure 1-2.
Test Program To test the connection between the computer and the spectrum analyzer, turn on your spectrum analyzer and follow the instructions below. 1. Your HP 9000 Series 300 computer may have either a soft-loaded or built-in language system. If your language system is built-in, remove any disks from the drives and turn on the computer. 2. If your language is soft-loaded, install the BASIC language disk into the proper drive. Turn the computer power on.
HP-IB Connections for the HP Vectra Personal Computer Equipment w HP Vectra personal computer, with option HP 82300B, the HP BASIC Language Processor n HP 8590 Series spectrum analyzer with Option 041 n HP 10833 (or equivalent) HP-IB cable Interconnection Instructions Connect the spectrum analyzer to the computer using the HP-IB cable as shown in Figure l-3. / \ cul30e Figure 1-3.
Test Program To test the connection between the computer and the spectrum analyzer, turn on your spectrum analyzer and follow the instructions below. 1. Refer to the HP 82300 Language Processor documentation to install the language processor board in your computer and load the BASIC programming language into your computer. 2. Check the HP-IB address of the spectrum analyzer: press Cm], More I of 3 , ANALYZER ADDRESS . The usual address for the spectrum analyzer is 18.
RS-232 Connections for the HP Vectra or IBM PC/AT Personal Computer Equipment n HP Vectra or IBM PC/AT personal computer n HP 8590 Series spectrum analyzer with Option 043 w n HP 24542U g-pin to g-pin RS-232 cable for computers with a g-pin female RS-232 port Note Refer to Appendix C for information on wiring cables. Interconnection Instructions 1. Connect the spectrum analyzer to the computer using the RS-232 cable as shown in Figure l-4. \ cu129e Figure 1-4.
Test Program The program shown below is written to work with computers using BASICA (version 2.0 or later) or GW BASIC. To test the interconnection, first load the BASIC language for your computer and specify a communications buffer of 4096 bytes. Use the following command: BASICA/C:4096 Set the spectrum analyzer baud rate to 9600, to match the baud rate set up for the computer port in the test program. In line 20, the “9600” indicates 9600 baud for the computer port.
Printing or Plotting You may wish to obtain a permanent record of data displayed on the spectrum analyzer screen. This can be done using the lcopvl key of the spectrum analyzer, and a printer or plotter. Note The HP 7470A plotter does not support 2 plots per page. If you use an HP 7470A plotter with an HP 8590 Series spectrum analyzer, you can select one plot per page or four plots per page, but not 2 plots per page.
Note Because HP-IB cables can be connected together, more than one instrument can communicate on the HP-IB. This means that both a printer and a plotter can be connected to the spectrum analyzer (using two HP-IB cables). Each device must have its own HP-IB address. Note Because the spectrum analyzer cannot print with two controllers (the computer and the spectrum analyzer) connected, the computer must be disconnected from the HP-IB. In most cases, it is sufficient to simply turn the computer OFF. 3.
. Press RF MX80 SML LAG if the spectrum analyzer is connected to a MX-80 Epson or other compatible g-pin print-head printer. Pressing this key to underline SML will print two printouts to a labels if desired. See step 7 Pressing this key to underline LRG will print only one printout to a softkey . Press RF LfJ57G SML LRG if the spectrum analyzer is connected to a LQ-570 Epson or other compatible 24-pin print-head printer.
Plotting Using an HP-IB Interface Note The HP 7470A plotter does not support 2 plots per page. If you use an HP 7470A plotter with an HP 8590 Series spectrum analyzer, you can select one plot per page or four plots per page, but not 2 plots per page. Equipment w HP 8590 Series spectrum analyzer with Option 041. w HP 10833 (or equivalent) HP-IB cable.
6. With PLTS/PG 1 2 4 , you can choose a full-page, half-page, or quarter-page plot. Press PLTS/PC 1 2 4 to underline the number of plots per page desired. 7. If two or four plots per page are chosen, a function is displayed that allows you to select the location on the paper for the plotter output. If two plots per page are selected, then PLT Cl PLT [I _ Lac _ _ function is displayed. If four plots per page are selected, then LOC _ _ is displayed.
Printing Using an RS-232 Interface Equipment w HP 8590 Series spectrum analyzer with Option 043.
7. Select the configuration for your printer by pressing the appropriate key. Note that the softkey is activated when the key title is underlined. Press this key to print in color if the spectrum analyzer is connected Set Colr Printer to a Hewlett-Packard color printer, then select the appropriate printer. Selecting any Hewlett-Packard printer results in three printouts per page prior to formfeeding the page. One printout per page can be achieved by manually formfeeding each printout.
Plotting Using an RS-232 Interface Equipment n HP 8590 Series spectrum analyzer with Option 043. n HP 245426 9-25 pin RS-232 cable n HP C2932A 9-9 pin RS-232 cable (for use with LaserJet 4P and 4Plus) n Any of the following Plotters: q HP 7440A ColorPro plotter with an RS-232 interface. q HP 7445A plotter with an RS-232 interface. q HP 7550A/E? plotter with an RS-232 interface. Interconnection and Plotting Instructions 1. Turn off the spectrum analyzer.
Note For a multi-pen plotter, the pens of the plotter draw the different components of the screen as follows: Description Draws the annotation and graticule. Draws trace A. Draws trace B. Draws trace C and the display line. Draws user-generated graphics and the lower-limit line. Draws the upper-limit line. 8. Press Previous Menu, COPY DEV PRMT PLT (so that PLT is underlined), then Icopvl. Printing after Plotting or Plotting after Printing Pressing lcopvl without changing COPY print or a plot).
Printing Using a Parallel Interface Equipment w HP 8590 Series spectrum analyzer equipped with Option 041 or 043. n HP C295OA parallel printer cable. n Printer with parallel interface, choose one of the following: q HP 310* Portable DeskJet q HP 3630A PaintJet II HP 500 Series* DeskJet •1 HP LaserJet q LQ-570 Epson q MX-80 Epson * Some models support color printing Interconnection and Printing Instructions 1. Turn off the printer and the spectrum analyzer. 2.
Set B%W Printer Press this key to print in black and white, then press one of the following keys to select the appropriate printer mode. . Press HP B%W PRINTER if the spectrum analyzer is connected to a Hewlett-Packard printer. Selecting any Hewlett-Packard printer results in three printouts per page prior to formfeeding the page. One printout per page can be achieved by manually formfeeding each printout. n Press I@ B%W DJS40 if the spectrum analyzer is connected to a Hewlett-Packard DeskJet 540 printer.
Plotting to an HP LaserJet Printer Equipment w HP 8590 Series spectrum analyzer with RS-232 or Parallel Interface w HP 245426 g-pin to 25-pin RS-232 cable n HP C2932A g-pin (f) to g-pin (m) RS-232 cable (for use with LaserJet 4P and 4Plus) n HP C2950A parallel printer cable w Any of the following HP LaserJets: q HP LaserJet III q HP LaserJet IIIP •I HP LaserJet 4 q HP LaserJet 4L q HP LaserJet 4P q HP LaserJet 4Plus Interconnection and Plotting Instructions 1. Turn off the spectrum analyzer.
Printing after Plotting or Plotting after Printing Pressing [copvl without changing COPY DEV PRNT PLT produces the function last entered (a print or a plot). w To print after doing a plot, press (CONFIG), COPY DEV PRNT PLT (so that PRNT is underlined), then IcoPv]. n To plot after printing, press (W), COPY DEV PRNT PLT (so that PLT is underlined), and IcoPv].
If There Is a Problem This section offers suggestions to help get your computer and spectrum analyzer working as a system. The test programs provided in this chapter let you know if the connection between the computer and the spectrum analyzer interconnection is working properly. If the test program does not run, try the following suggestions: 1. You may need to modify the program syntax to work with your computer. Refer to your BASIC manual for correct syntax. 2. The program must be executed correctly.
2 Writing a Program What You’ll Learn in This Chapter This chapter introduces spectrum analyzer programming. The first section of this chapter, “Writing Your First Program, n helps you write your first spectrum analyzer program and introduces programming fundamentals. The second section, “Getting Information from the Spectrum Analyzer, n shows how to get data out of the spectrum analyzer. A summary at the end of this chapter reviews the programming guidelines introduced.
Writing Your First Program When the spectrum analyzer has been connected to a computer via HP-IB or RS-232 interface, the computer can be used to send instructions to the spectrum analyzer. These instructions tell the spectrum analyzer such things as frequency span, resolution bandwidth, and sweep mode. If a properly selected sequence of instructions is sent to the spectrum analyzer, a measurement is made. Sequences of coded instructions are called programs. Composing the.
Finally, in line 60, we end the program with the END command. (If you forget to include the END command, the computer will give an error message.) Enter the program lines, press (RUN) on the computer, and watch the spectrum analyzer display as it completes each instruction.
Modifying the Program Remote operation of the spectrum analyzer is similar to manual operation. Remote measurements are executed by commands that correspond to front-panel keys and softkeys. The first chapter in the spectrum analyzer operating manual shows you how to make a simple measurement using the calibration signal. We can add instructions to our program so that it will make the same measurement.
When a certain measurement is repeated often, a computer program can save time. In addition, the computer is less likely to make an error than an operator manually entering the same instructions from the front panel. Program Example for the RS-232 Interface First, we set the center frequency to 300 MHz. The CF command corresponds to the center frequency function, Cm FREQ . (All spectrum analyzer commands, such as CF, are described in Chapter 5.
Enhancing the Program with Variables In the last program, specific center frequency and span values were set. By modifying the program, we can cause different values to be set each time the program is run. Program Example for the HP-IB Interface In the following program, the exclamation point (!) allows the words that follow to be ignored by the computer. Thus, they serve as comments in the program.
Program Example for the RS-232 Interface In the following program, the apostrophe (‘) allows the words that follow to be ignored by the computer. Thus, they serve as comments in the program.
Getting Information from the Spectrum Analyzer The first part of this chapter demonstrated techniques for setting spectrum analyzer parameters. This section demonstrates a technique for getting information out of the spectrum analyzer. For example, in the second program of this chapter, we placed a marker at the highest peak of a trace and the value of the marker could be read in the upper right-hand corner of the spectrum analyzer display.
Finally, we print the values on the computer screen: "THE SIGNAL PEAK IS . . . dBm AT . . . MHz" Before we end the program, we return the spectrum analyzer to continuous-sweep mode and local control.
Programming Guidelines 1. Perform the measurement manually, keeping track of the sequence of functions used. 2. In the written program, execute an instrument preset (IP) and set single-sweep mode (SNGLS) before setting other spectrum analyzer functions. 3. Use variables for function values. List variables at the beginning of the program, 4. Activate spectrum analyzer functions in logical order. Place quotation marks around spectrum analyzer commands. Separate commands with semicolons. 5.
3 Programming Xbpics What You’ll Learn in This Chapter This chapter contains the following advanced programming techniques and topics. n An example of moving and saving trace data from the spectrum analyzer into the computer. n An example of how spectrum analyzer states are saved with the computer, then returned to the spectrum analyzer. n An example of reading trace data from a computer disk. n An example of saving and recalling instrument states.
Controlling Trace Data with a Computer Using sample programs, this section shows you how to read trace data and store the data with your computer. Reading Trace Data The following program, which has been annotated with comments, reads a trace from the spectrum analyzer and stores the trace data in a variable.
Program Example for the RS-232 Interface 10 'File = 232PROG5 20 OPEN "COMl:9600,N,8,1" AS #l 30 'create a 401-point trace array 40 DIM TRCA(401) 50 PRINT #1 "IP." 60 'set outiut iormat of spectrum analyzer for real numbers 70 PRINT #l,"TDF P;" 80 ‘set spectrum analyzer parameters 90 PRINT #l,"SNGLS;" 100 PRINT #l,"CF 300MZ;" 110 PRINT #l,"SP 200MZ;” 120 PRINT #l,"TS;" 130 PRINT tl "MKPK." 140 'move peik to lenter of spectrum analyzer screen 150 PRINT #l3 "MKCF." , 160 PRINT #1 "TS.
Saving Trace Data The trace data in the previous program can be stored on a computer disk by making three program modifications.
Program Example for the RS-232 Interface 10 'File = 232PROG6 20 OPEN "COMl:9600,N,8,1" AS #l 30 'create a 401-point trace array 40 DIM TRCA(401) 50 PRINT #l,"IP;" 60 'set output format of spectrum analyzer for real numbers 70 PRINT #l,"TDF P;" 80 'set spectrum analyzer parameters 90 PRINT #l "SNGLS." 100 PRINT #;,"CF 3;OMZ;" 110 PRINT tl,"SP 200MZ;" 120 PRINT #1 "TS." 130 PRINT #l:"MKPK;" 140 'move peak to center of spectrum analyzer screen 150 PRINT #1 "MKCF.
Reading Trace Data from a Computer Disk If we want to return trace data to the spectrum analyzer for later viewing, we must work the “saving” process in reverse. The following program reads a trace previously stored on a computer disk and stores the trace in an array variable.
Saving and Recalling Instrument States The spectrum analyzer’s control settings (or its “state”) can be saved with a computer and retrieved later to streamline test sequences or repeat manual measurements. Control settings can be stored in one of eight state registers in the spectrum analyzer, in computer memory, or on a computer disk. The first program in this section demonstrates techniques for saving an instrument state, along with its current trace A data.
Program Example for the HP-IB Interface 10 !FILE: "IBPROG8" 20 !define 202 character string: 30 DIM Learn_string$[202] 40 !create 401-point array to store trace: 50 INTEGER Trace,a(l:401) 60 Analyzer=718 70 !set output format for two byte integers: 80 OUTPUT Analyzer;"TDF B;" 90 !ask spectrum analyzer for trace data: 100 OUTPUT Analyzer;"TRA?;" 110 !send trace to the computer: 120 ENTER Analyzer USING "t,W";Trace,a(*) 130 !get learnstring from spectrum analyzer: 140 OUTPUT Analyzer;"OL;" 150 ENTER Analyzer
The HP-IB version stores the trace in the variable called Trace-a(*). The state of the spectrum analyzer is stored in the variable Learn-string& These two variables are then saved in a file called STATE. Finally, the file is stored on a disk. Using the data stored in STATE, the spectrum analyzer settings can be reset according to the saved state. Then, using the stored trace data, trace data can be viewed on the spectrum analyzer display.
Program Example for the RS-232 Interface 10 'File = 232PROG8 20 OPEN "COMl:9600,N,8,1" AS #I 30 'Define 202-character string 40 DIM LEARN$(202) 50 'Create 802-character string to store trace data 60 DIM TR1$(200>,TR2$(200>,TR3$(200) 70 DIM TR4$(2OO>,TR5$(2>,TR6$(200) 80 'ask spectrum analyzer for trace data in binary format 90 PRINT #l,"TDF B; TRA?;" 100 'enter trace data from spectrum analyzer 110 TRl$=INPUT(200,#1) 'first 200 characters 120 TR2$=INPUT(200,#1) 'second 200 characters 130 TR3$=INPUT(200,#1)
430 T5=601 440 TR6$=TR4$ 450 GOSUB 620 460 'convert last two characters 470 L2$=MID$(TRS$,l,l) 480 Yl(80l)=ASC(L2$) 490 L2$=MID$(TR5$,2,1) 500 Y(802)=ASC(L2$) 510 'data is now formatted, write to disk 520 FOR I=1 TO 202 530 PRINT #2,X1(1) 540 NEXT I 550 FOR I=1 TO 802 560 PRINT #2,Yl(I) 570 NEXT I 580 'close the data file 590 CLOSE 600 GOT0 680 610 'subroutine for converting data: 620 FOR I=1 TO 200 630 L2$=MID$(TRG$,I,l) 'get ASCII character 640 Yl(T5)=ASC(L2$) 'set value in array 650 T5=T5+1 660 NEXT I 'd
Returning the Spectrum Analyzer to its Former State The following programs read a trace stored in a file and load it into a variable.
Program Example for the RS-232 Interface 10 'File = 232PROG9 20 OPEN "COMl:9600,N,8,1" AS #I 30 DEFINT X,Y,I 'integer variable 40 'define 202-character string 50 DIM LEARN$(202),Xl(202) 60 'create an 802-character string to store disk data 70 DIM TR1$(200>,TR2$(200>,TR3$(200),TR4$(200) 80 DIM TR5$(2>,TR6$(2OO>,Yl(802) 90 'open disk file "TRACEA" 100 OPEN "TRACEA" FOR INPUT AS #2 110 'enter learn array from disk 120 FOR I=1 TO 202 130 INPUT #2,X1(1) 'get integer variable from disk 140 NEXT I 150 'enter trace
350 GOSUB 500 360 TR3$=TR6$ 370 12=601 380 GOSUB 500 390 TR4$=TR6$ 400 'format last two characters 410 TR5$="" 420 TR5$=TR5$+CHR$(Yl(80l))+CHR$(Y1(802)) 430 'write to spectrum analyzer 440 PRINT #l,LEARN$ 450 'output trace data 460 PRINT #l,"IB";TRl$;TR2$;TR3$;TR4$;TR5$; 470 PRINT #l,"VIEW TRB;" 480 GOT0 560 'end program 490 'subroutine for converting integer data to ASCII 500 TR6$="" 'set the string to a null value 510 FOR I=1 TO 200 520 TRS$=TRS$+CHR$(Yl(IZ>) 530 12=12+1 540 NEXT I 550 RETURN 'done with c
Measuring Harmonic Distortion The harmonic distortion program presented here illustrates how the spectrum analyzer can be directed by a computer to make a complete measurement. Measuring the percent of total harmonic distortion is tedious when performed manually: it involves tuning to the fundamental and to each harmonic of interest, recording the amplitude of each signal, converting these amplitudes to linear units (volts), and calculating the result using a formula.
330 OUTPUT @Sa;"MKPK HI; TS;" 340 OUTPUT OSa;"MKTRACK ON; SP IOOKZ; TS;" 350 !turn off signal track: 360 OUTPUT QSa;"MKTRACK OFF;" 370 !find the peak of the signal; move peak to center 380 !of screen: 390 OUTPUT OSa;"AUNITS V;"! MAKE READOUT UNITS VOLTS 400 !find peak of signal; send amplitude value to 410 !computer 420 !enter the amplitude of the fundamental: 430 OUTPUT @Sa;"MKPK HI; MKA?;" 440 ENTER OSa;Fund,amptd-v 450 !send marker frequency to the computer, enter 460 !frequency value: 470 OUTPUT OSa;"MK
840 !calculate the percent distortion: 850 Prcnt,distort=SQR(Summ,sqr)/Fund~amptd,v*lOO 860 GOSUB Clearscreen !clear the alpha screen: 870 !Output,data: 880 !send data to the screen of the computer: 890 OUTPUT CRT USING "7/,lX,K"; "HARMONIC DISTORTION RESULTS" 900 OUTPUT CRT USING "llX,K,DDDD.D,K";"FREQ = ";Fundamental;" MHz" 910 OUTPUT CRT USING "llX,K,DDDD.D,K";"AMP = ";Fund-amptd-dbm;" dBm" 920 OUTPUT CRT USING "llX,K,DDD.D,K";"2nd HARMONIC = -";Harmonic_dbc(2);" dBc" 930 OUTPUT CRT USING ',llX,K,DDD.
Program Example for the RS-232 Interface IO 'File = THDTEST 20 OPEN "COMl:9600,N,8,1" AS #I 30 'allow user to change the number of harmonics 40 MAXHARMONIC= 50 DIM HARMONICV(lO>,HARMONICDBC(lO) 60 'clear the screen 70 CLS 80 'ask for the frequency of the fundamental 90 PRINT "******* HARMONIC DISTORTION *******" 100 PRINT 110 PRINT "CONNECT SOURCE TO ANALYZER INPUT, THEN" 120 PRINT "ENTER FREQUENCY OF THE FUNDAMENTAL IN MHZ" 130 PRINT 140 INPUT FUNDAMENTAL 150 CLS 160 'print measuring fundamental on screen
460 PRINT #l,"MKSS;" 470 'set the fundamental frequency units to MHZ 480 FUNDAMENTAL=FUNDAMENTAL/lOOOOOO! 490 FOR NUMBER = 2 TO MAXHARMONIC 500 PRINT "MEASURING HARMONIC # ";NUMBER 510 'set span and tune to next harmonic 520 PRINT #l,"SP 20MZ;" 530 PRINT #l,"CF UP;TS;" 540 PRINT #l,"DONE;" 550 INPUT #l,DONE 560 'take a second sweep to allow spectrum analyzer to move to 570 'the center frequency, find the signal peak, 575 'activate the signal track 580 PRINT #I "TS.
Different Formats for Trace Data Transfers Two different ways to format trace data using the TDF command were introduced earlier in this chapter (TDF P and TDF B). This section describes all the available trace data formats. The HP 8590 Series spectrum analyzer provides five formats for trace data transfers: real number (P) format, binary (B) format, A-block format, I-block format, and measurement units (M) format. P Format The P format allows you to receive or send trace data in a real-number format.
Example of Using the P Format This example sends trace datatothe computer and backtothe spectrum analyzer using P format. Note The spectrum analyzer mustbeinthelog amplitude scale to use the TDF P format.
B Format The B format allows you to receive or send trace data in a binary format. The B format provides the fastest data transfer and requires the least amount of memory to store data. Each data point is transferred in binary as two 8-bit bytes. The data points are in the internal representation of measurement units (0 to 8000). Unlike the A-block format, the B format does not send a header. An end-or-identify (EOI) is sent with the last byte of data.
The following programming converts binary data to dBm.
A-Block Format The A-block format is similar to binary format in that each data point is sent as two 8-bit bytes (this, too, is in the internal representation of measurement data). A-block format also transfers a four-byte header before the 401 points of trace data. These bytes are the ASCII character “f’, “A”, and two-byte number representing the length of the trace data, followed by the data bytes.
I-Block Format Note The I-block format is not recommended for use with the RS-232 interface (Option 043). The I-block format transfers data points as two 8-bit bytes in the internal representation of measurement data. In addition to transferring trace data, I-block format also transfers the characters I‘#” and “I”. These characters indicate that the trace data is in I-block format. The I-block format allows the spectrum analyzer to accept up to 401 points of trace data when using I-block format.
M Format The M format is for sending trace data only. It formats the trace data in the internal format used by the spectrum analyzer, also known as measurement units. Refer to Figure 3-1. The displayed amplitude of each element falls on one of 8000 vertical points with 8000 equal to the reference level. For log scale data, each point is equal to 0.01 dB. The peak of the signal in Figure 3-l is equal to -20 dBm, or two divisions below the reference level.
‘Ihble 3-1. Measurement Units Description Index Number 1 A number within the range of 8161 to 32,767 measurement units is obtainable with trace math operations only. The area from 8000 (reference level) to 8160 (1.6 dB above reference level) represents the amount a trace element’s amplitude can exceed the top graticule and still be valid. The area from 0 to 8000 represents the displayed range for trace amplitude data.
‘Ihble 3-2. Summary of the Trace Data Formats Trace Data Format TDF P Description Real Number Format Remarks Spectrum analyzer must be in log scale to use TDF P. To send the trace data back to the spectrum analyzer, the data must be converted to measurement units. TDF B Binary Format Fastest format for trace data transfers. Use the A-block format to send data back to the spectrum analyzer. TDF A A-Block Data Format Trace data preceded by “#, n “A,” and a two-byte number.
4 Creating and Using Downloadable Programs What You’ll Learn in This Chapter This chapter provides fundamental information about downloadable programs (DLPs). This chapter contains the following sections: w Creating a DLP. n Executing a DLP n Storing DLPs on a RAM card. n Determining the amount of memory needed for a DLP. n Using the DLP editor. n DLP programming guidelines. What is a DLP? A DLP is a sequence of programming commands used to perform a specific operation.
Creating a DLP This section contains information about how to create a DLI? This section contains the following procedures: w Use a user-defined function within a DLP.
‘lb Use a User-Defined Function within a DLP A user-defined function is created by using the FUNCDEF command. 1. Begin the user-defined function definition by using the FUNCDEF command, the label (function name) for the function you are creating, a comma, and then a delimiter. See line 10 of the example. Use unique names (unique from the analyzer programming commands) for the label.
To Use a User-Defined Variable within a DLP User-defined variables are variables that you create with the VARDEF or ACTDEF commands. User-defined variables remain in spectrum analyzer memory and retain their values until redefined, disposed of, or altered by MOV or math commands. Turning the spectrum analyzer off, then on or pressing @iZK) will reset the variables to values as specified in their declarations. Note that all user-defined variables are global in scope, any function can access any variable.
To Use a User-Defined Trace within a DLP Like variables, you should define user-defined traces outside of functions. User-defined traces retain their values until redefined, disposed of, or altered by the MOV command or a math command. User-defined traces are global in scope. Unlike user-defined variables, the elements of user-defined traces are of type INTEGER. 1. Use the TRDEF command to define a trace. Define the trace outside of the any functions. 2. Initialize the elements of the trace to 0. (Optional.
To Enter Values into a DLP To allow the spectrum analyzer user to enter a value into a user-defined variable with the analyzer front-panel keys use the active function definition command (ACTDEF). Example For example, if you want the user to enter the resolution bandwidth for use in the DLP, you would use the following: OUTPUT 718;"ACTDEF M-BW,%ENTER THE RESOLUTION Lets theuserenter the valueofthe BANDWIDTH#,SMHZ,STEP,!MOV RB,M-BW!;" resolution ban’dwidth with the frontpanel keys.
To Create a Modular DLP A modular DLP is a DLP that is made up of several user-defined functions. Within a modular DLP, there may be a main FUNCDEF which calls subordinate FUNCDEFs. A subordinate FUNCDEF is a user-defined function that usually performs only one task, and is called by another FUNCDEF. To create a modular DLP: 1. Enter the file name that the DLP source code will be stored under, if desired. 2. Enter the date of the last revision to the DLP, if desired. 3.
File name Date and author's name Program Description Define variable Define trace DefineFUNCDEF DefineFUNCDEF DeAneFUNCDEF DefineFUNCDEF DeEneFUNCEDEF Define Main FUNCDEF 10 !File name: EXAMPLE 20 !Date: 9/l/88 Author: Jane Doe 30 !Description of the program: This program checks for 40 !signals above -50 dEim in the following frequency 50 !spans: 10 to 12 MHz, 12 to 14 MHz, 60 !I4 to 16 MHz, and 16 to 110 MHz.
Executing a DLP This section contains information about how to execute a DLP This section contains the following procedures: n Execute the DLP by using a softkey. H Execute the DLP within a program. To Execute a DIP by Using a Softkey There are two ways to execute a DLP. You can execute the DLP by pressing a softkey that has been assigned a function as shown in this procedure, or execute the DLP within a program (shown in the following procedure). 1.
Storing DLPs on a RAM Card If the spectrum analyzer has a memory card reader installed in it, you can store the DLP on a RAM card, and, at a later time, load the DLP into analyzer memory from the RAM card. This section contains the procedures for storing a DLP on a RAM card remotely, and loading the DLP from the RAM card into analyzer memory remotely.
To Load DLPs from a Memory Card into Analyzer Memory Once a DLP has been stored on a RAM card, it can be loaded back into spectrum analyzer memory when desired. DLPs remain in spectrum analyzer memory until disposed of with the DISPOSE command, ERASE command, or ERASE DLP MEM. 1. To load a DLP from a RAM or ROM card into analyzer memory, insert the memory card into the memory card reader. 2. Use the MS1 command to select the memory card reader as the mass storage device. 3.
Determining the Amount of Memory Needed for a DLP FUNCDEFs, user-defined variables, user-defined traces, on event commands (for example, ONSRQ, ONEOS, and TRMATH), and user-defined softkeys all consume some amount of spectrum analyzer memory. If you write a large DLP, or if you have a several DLPs stored in spectrum analyzer memory, you may run out of spectrum analyzer memory that is available for storing the DLPs. Also, the storage space on a RAM card is finite.
3. Determine the number of records on the RAM card that are in use. The number of records stored on the RAM card can be determined by cataloging the card, finding the starting record address for the last catalog entry, adding the number of records used for the last catalog entry to the starting record address, and then subtracting one. 4.
‘lb Delete a DIP from Spectrum Analyzer Memory w Use the DISPOSE command to delete the DLP item from spectrum analyzer memory. A FUNCDEF can be deleted from analyzer memory remotely by using the DISPOSE command. The DISPOSE command can also be used to remove softkey functions, user-defined variables, and user-defined traces. (See the description for the DISPOSE command in Chapter 5 for more information.
Using the DLP Editor The DLP editor functions allow you to create or modify a DLP with only an external keyboard connected to the spectrum analyzer (an external controller is not required). This section contains the following procedures: n n Connect the external keyboard to the spectrum analyzer. Access the DLP editor functions. n Use the DLP editor functions to modify a DLP w Use the DLP editor functions to modify a catalog item.
‘Ib Access the DLP Editor . Press (SAVE) or (RECALL), then INTERNAL CARD (so that INTERNAL is underlined), Catalog Internal , CATALOG ALL, and then Editor. Press IPause) on the external keyboard. Editor or m accesses the DLP editor. There are some differences between using Editor and IPause) however. Editor allows you to access all the DLP editor softkeys (EDIT LAST, EDIT CAT ITEM , APXD CAT ITEM , SAVE EDIT, and NEW EDIT ). With (Pause), you can only access EDIT LAST, SAVE EDIT , and NEW EDIT .
To Create a DLP 1* Press HEW EDIT, NEW EDIT to enter an individual DLP item (FUNCDEF, VARDEF, or TRDEF) into the buffer of the DLP editor. 2. Use the external keyboard keys to enter the DLP item. Because you are not using an external computer, the spectrum analyzer commands are entered without an OUTPUT or PRINT statement preceding them. While using the DLP editor, you may want to use the “typing keys.” The typing keys are the function keys F7 through F12.
lb Modify the DLP 1. If necessary, press m to reenter the DLP editor. 2. If the DLP is not displayed, press EDIT LAST to display the previous contents of the DLP editor. 3. Use the external keyboard keys to edit the DLP. Because you are not using an external computer, the spectrum analyzer commands are entered without an OUTPUT or PRINT ’ statement preceding them. 4. When the DLP has been entered, press SAVE EDIT . SAVE EDIT executes the DLP in spectrum analyzer memory.
‘lb Modify a Catalog Item 1. Press (‘1 or m, then INTERNAL CARD (so that INTERNAL is underlined). 2. Press Catalog Internal , CATALOG ALL , and then Editor. (You can use one of the other catalog softkeys instead of CATALOG ALL . For example, you could press CATALOG DLP if you wanted only the DLPs cataloged.) 3. Use the large knob on the spectrum analyzer’s front panel to highlight the item that you want to edit.
DLP Programming Guidelines This section contains some suggestions that can make it easier to write a DLP, read and understand the DLP code, and find problems in a DLP. lb Make the DLP More Readable Here are a few suggestions which help make any program, including a DLP, more readable: n Write short program lines. One or two commands per line. n Use standard indent format for looping and branching. n Use descriptive variable names and labels. n Add comments to the source code.
If a DLP causes the spectrum analyzer not to respond normally (for example, the spectrum analyzer seems to be in an infinite loop or an error message is displayed), try one or all of the following suggestions: n Press [PRESET]. n Press I-), More I of 3 , ERASE DLP MEM , ERASE DLP ME!! . (ERASE DLP MEM requires a double key press and deletes any DLPs from spectrum analyzer memory.) n Turn the spectrum analyzer off and then back on.
5 Programming Commands What You’ll Learn in This Chapter This chapter is a reference for the HP 8590 Series spectrum analyzer command language. It is a command dictionary; commands are listed alphabetically. To find a programming command that performs a particular function, first refer to the functional index (‘lkble 5-4) where commands are categorized by function. Once the desired command is found in the functional index, refer to the description for the command in this chapter.
Syntax Conventions Command syntax is represented pictorially. COMMAND MNEMON I C CHARACTER OR SECONDARY KEYWORD RECOMMENDED PATH SYNTAX ELEMENT REPEAT I NG SYNTAX ELEMENT OPT I ONAL TERMINATOR cul14e Figure 5-1. Command Syntax Figure n Ovals enclose command mnemonics. The command mnemonic must be entered exactly as shown. w Circles and ovals surround secondary keywords or special numbers and characters.
Syntax Elements are shown in the syntax diagrams as elements within rectangles. ‘Ihble 5-1. Syntax Elements Syntax Component analyzer command character DellnitionlRange Any spectrum-analyzer command in this chapter, with required parameters and terminators. S,! “#S%&‘()+ ,/0123456789: ; A B C D E F G H I J K L M N O P Q R S T LJVWXYZ[\)? -‘abcdefghijklmnopqrstuvwxyz(Charactersarea subset of data byte.
‘able 5-1. Syntax Elements (continued) Syntax Component predeflned variable Definition/Range The values of the following variables change depending on the current instrument settings. Each variable represents the value of the command function that has the same name as the variable.
In the syntax diagrams, characters and secondary keywords are shown within circles or ovals. Characters and secondary keywords must be entered exactly as shown. ‘lhble 5-2. Characters and Secondary Keywords (Reserved Words) Description Element a Amplitude correction factors. A Amp (unit) or A-block data field. ABSHZ Absolute Hz (unit). AC Alternating current. ALL All. AM Amplitude AMP Amplitude. modulation. AMPCOR Amplitude correction, AUTO Auto couple or set to automatic. AVG Average.
‘Ihble 5-2. Characters and Secondary Keywords (Reserved Words) (continued) Description Element FM Frequency modulation. FMV Frequency modulation detection. FREE Free run. FREQ or FRQ Frequency. GATE Gate. GE Greater than or equal to. GHZ Gigahertz (unit). GT Greater than. GZ Gigahertz (unit). HANNING Harming filter window. HI Highest. HPIB HP-IB. HZ Hertz (unit). I I-block data Eeld. i Display image file. [NIT Initialize. [NT Internal or integer. IP Instrument preset.
‘Ikble 5-2. Characters and Secondary Keywords (Reserved Words) (continued) Description Element NONE No units. NR Next peak right. NRM or NORMAL Normal. NTSC or NTSClS NTSC video format. OA Output amplitude. ODD Odd video frame trigger. OFF Turns off function. ON Turns on function. P Parameter units. PAL or PAL15 PAL video format. PALM PAL-M video format. PER Period. PKAVG Peak average. PKPIT Peak pit. POINT Point. POS Positive. PSN Position. RECALL Recall operation.
‘Ihble 5-2. Characters and Secondary Keywords (Reserved Words) (continued) Description Element V Volts (unit). VERTICAL Vertical triggering. VID Video trigger. W Watts or word (for MDS command). YTF YIG-tuned filter. XTAL * Crystal. Asterisk (used as a wildcard). Semicolon (ASCII code 59). Comma (ASCII code 44). 0 Off (command argument). 1 On (command argument). 50 500. 75 753. ? Returns a query response containing the value or state of the associated parameter.
The alternate commands (listed in the left column of Table 5-3) provide compatibility with commands used by the HP 8566A/B, HP 8568A/B, and HP 70000 Series instruments. The equivalent commands for the HP 8590 Series spectrum analyzer are listed in the right column. able 5-3.
‘Ihble 5-3.
This functional index categorizes the programming commands by the type of function that the command performs. The functional index contains the following information: the programming command mnemonic, the softkey or front-panel key that corresponds to the command’s function, and a brief definition of the command. Once the desired command is found, refer to the alphabetical listing of commands later in this chapter for more information about the command. ‘Ihble 5-4.
‘Ihble 5-4. Functional Index (continued) Command Function Category IUXILIARY :ONTROL ,continued) Corresponding Key Function COMB* COMB GEN ON OFF * Turns on or off the comb generator. DEMODt DENOD GN OFFt, Turns the demodulator on or off, and selects between AM, FM, or quasi-peak demodulation. DENBDANFNt FMGAINt FN GAIN t Sets the total FM frequency deviation for full screen demodulation. MEASURES Determines the type of measurement: signal analysis, stimulus response, or signal normalization.
‘Ihble 5-4. Functional Index (continued) Command Function Category :ALIBRATION AMPCOR Corresponding Key Function Azip Cur functions factors CAL ICAL) calibration functions Initiates self-calibration routines. CNF CONF TEST Performs the confidence test. Returns a ” 1” lf the correction factors are on, a “0” if they are off. CORREK !ONFIGURATION Applies amplitude corrections at specified frequencies. Returns the number of frequency-amplitude correction that have been entered.
‘able 5-4. Functional Index (continued) Command Function Category CONFIGURATION [continued) Prefix Specifies or changes the prefix used in save and recall operations. PREFX Change PRNPRT PRN PORT HPIB PAR Directs the printer output to HP-IB or parallel ports for Option 041. PRNPRT PRN PORT SER PAR Directs the printer output to RS-232 or parallel ports for Option 043. SETDATE SET DATE Sets the date of the real-time clock. SETTIME SET TINE Sets the time of the real-time clock.
‘Ihble 5-4. Functional Index (continued) Command Function Category ;RAPHICS NFORMATION Corresponding Key Function Description Clears a rectangular area on the spectrum analyzer display. CLRBOX CLRDSP Erases user-generated graphics and text. DA Accesses the current address of the display list. DRAWBOX Draws a rectangular box on the spectrum analyzer display. DT Defines any character as a label terminator. GETPLOT (copy) Initiates output of the spectrum analyzer display to a plotter.
‘able 5-4. Functional Index (continued) Corresponding Key Function Function Cateccorv NFORMATION continued) REV SHOW OPTIONS Returns the date code of the Ermware revision number in YYMMDD format. SNOW OPTIONS Returns the serial number suffix of the spectrum analyzer. RQS SER NPUT and OUTPUT ,IMIT LINES 5-l 5 Description Sets a bit mask for service requests. SRQ The SRQ command is used by an external controller to simulate interrupts from the spectrum analyzer.
‘Ihble 5-4. Functional Index (continued) Command Function Category LIMIT LINES :continued) Corresponding Key Function LIMILO Allows you to specify a Axed trace as the lower limit line. LIMIMIRROR Reflects the current deilnition about the amplitude axis at the largest frequency or the largest sweep time in the definition.
‘Ihble 5-4. Functional Index (continued) Command Function Category Description Corresponding Key Function NX COUNT ON OFF * Turns on or off marker frequency counter. MKFCR* CNT RES AUTO &IA% * Sets the resolution of the marker frequency counter. MKMIN MARKER -> MIN= Moves active marker to minimum signal detected. MKN MhRNER BORKAL Activates and moves the marker to the specified frequency. MKNOISE MK NOTSE UK OFF Displays the average noise level at the marker.
‘Ihble 5-4. Functional Index (continued) Command Function Category MARKER (continued) PKSORT PKTBL YIATH (see also l’race Math) Corresponding Key Function Description PK SORT FRQ AI@ Selects how the signal peaks listed in the peak table are sorted: by decreasim amplitude or by ascending frequency. PK TABLE ON OFF Turns on or off the peak table. ABS Places the absolute value of the source values in the destination. ADD Adds the sources and sends the sum to the destination.
‘Ihble 5-4. Functional Index (continued) Command Function Category dATH (continued) dEASURE/USER Corresponding Key Function Description RMS Returns the root mean square value of the trace in measurement units. SQR Places the square root of the source into the destination. STDEV Returns the standard deviation of the trace amplitude ln measurement units. SUB Subtracts source 2 from source 1, point by point, and sends the difference to the destination.
lfdble 5-4. Functional Index (continued) Function Category MEASURE/USER Icontinued) Command Corresponding Key Function FFTMM BARKER -> BID SCRIU Changes the FFT midscreen frequency of the spectrum analyzer to the frequency of the FFT marker. FFTMS MAXKER -> FFT STOP Changes the FFT stop frequency of the spectrum analyzer to the frequency of the FFT marker. FFTOFF FFT OFF Exits the fast Fourier transform (FFT) measurement and FFT settings.
‘Ihble 5-4. Functional Index (continued) Command Function Category IPERATOR E N T R Y D N Corresponding Key Function El EE ‘LOTTER ‘RESET EK Enables front-panel knob control. EP Enter parameter from front panel. HD HOLD or [HOLD) Holds or disables entry and blanks active function readout. UP 0 Increases the active function by the applicable step size. GETPLOT lcopyl Initiates output of the spectrum analyzer display to a plotter. (For use within a downloadable program.
‘able 5-4. Functional Index (continued) Command Function Category RECALL or SAVE Description Corresponding Key Function PSTATE SAV LOCK ON OFF Protects all of the spectrum analyzer’s user state and trace registers from bein] changed. PURGE DELETE FILE Deletes the specified file from the current mass storage device. RCLS INTERUAL Recalls spectrum analyzer state data from one of the nine state registers in spectrum analyzer memory.
‘Ihble 5-4. Functional Index (continued) Description SPAN Changes the total displayed frequency range symmetrically about the center frequency. SPZGGM SPA2 2OOI Places a marker on the highest on-screen signal (if an on-screen marker is not present), turns on the signal track function, and activates the span function. CONTS SWEEP COlT SGL (CONT is underlined) Sets the spectrum analyzer to the continuous sweep mode. GATE’ GATE ON OFF * Turns on or off the time-gating.
ltdble 5-4. Functional Index (continued) Corresponding Key Function Function Category 3WEEP (continued) 3YNCHRONIZATION rRACE Description GDRVSWP* T WINDOW SNP TINE* Specifies the sweep time for the time domain window of the gate utility. GDRVUTIL* GATE UTILYTY * Turns on or off the gate utility. 3DRVVBW * CPL VBW ON DFF * Couples or uncouples the video bandwidth to the gate length. 3L* GATE LENGTH * Sets the length of time the gate is open.
‘Ihble 5-4. Functional Index (continued) Command Function Category Corresponding Key Function Returns trace A data. rRACE (continued) TA I’RACE MATH (see tlso Math) Description TB Returns trace B data. TRA TRB TRC Controls trace data input and output. TRCMEM Returns a nonnegative integer that indicates the total number of trace registers available for SAVET and RCLT. TRDEF Creates a user-defined trace.
‘0ble 5-4. Functional Index (continued) Command Function Category rRIGGER Description Corresponding Key Function ONEOS Performs the command list at the end ol sweep. ONSWP Performs the command list at beginning of sweep. SNGLS Selects single-sweep mode. @miFswp), SWEEP CONT SGL (SGL is underlined) TM FREE RUN, LINE , VTDEU , Specifies trigger mode. EXTERgAL, TV TRIG * Begins a new sweep. TS Sets the line number of the horizontal line of video on which to trigger.
‘Ihble 5-4. Functional Index (continued) Function Command Corresponding Key Function Category USER-DEFINED WINDOWS Description TRDEF Declares a user-defined trace. USTATE Transmits information that has been stored in the analyzer by the user. VARDEF Creates a user-defined variable and assigns it a value. WINNEXT m* Makes the window that is currently not the active window, active. WINOFF WINDDWS OFF * Turns off the windows display. WINON m)* Activates the windows display mode.
ABORT Abort ABORT Abort Stops the execution all user-defined functions and readies the instrument for the next command received. Syntax ABORT Related Commands: ACTDEF, FUNCDEF, REPEAT/UNTIL, RETURN. Example In the example below, ABORT is in the function called D-LP.
ABORT Abort Description If ABORT is encountered in a function that has been executed by pressing a softkey, the function is interrupted and front-panel control is returned. If the ABORT function is nested within one or more user-defined functions, ABORT stops the execution of all user-defined functions and readies the spectrum analyzer to act on the next command received.
ABS Absolute ABS Absolute Places the absolute value of the source values in the destination. Syntax 7 d e s t i n a t i o n b u s e r - d e f i n e d h trace b predefined - t r a c e range v a r i a b l e u s e r - d e f i n e d d / / varioblej J Item Description/Default User-de&ted trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
ABS Absolute Example 10 OUTPUT718;“IP;SNGLS;” 20 OUTPUT 718;“VARDEF P,OINT,O;” 30 OUTPUT 718;“ABS P-OINT,-2;” 40 OUTPUT718;“P_OINT?;“; 50 ENTER 718;Second 60 DISP Second 70 END Initializes spectrum analyze?; stops sweeping. D@ines a variable, called P-OINT, and initializes it to 0. Places the absolute value of -2 into POINT Returns value of IWNT to computer Assigns value to computer variable, Second. Displays the absolute value (2). Description The source and the destination may be different lengths.
ACP Adjacent Channel Power ACP Adjacent Channel Power Performs the adjacent channel power measurement. Syntax ACP XACP Equivalent Softkey: AD3 CfiAN POWER. Related Commands: ACPPAR, ACPSP, ACPBW, ACPSNGLM, ACPCONTM, ACPGRAPH, ACPGR, ACPMK. Example OUTPUT 718;"ACP;" F&forms the adjacent channel power masurewsnt.
ACP Adjacent Channel Power ACP Measurement Results 1CPERR units Description Variable or Trace A variable that indicates if setup errors occurred for the ACP measurement. None If ACPERR is 0, no errors occurred. If ACPERR is greater than 0, an error occurred. An ACPERR value of 1 to 7 indicates that the frequency span, channel spacing, or the channel bandwidth are not set correctly.
ACPBW Channel Bandwidth ACPBW Channel Bandwidth Allows you to specify the channel bandwidth used for the adjacent channel power (ACP), adjacent channel power extended (ACPE), and channel power (CHP) measurements. Syntax ACPBW Item Number Description/Default Any real or integer number. Default unit is Hz. I Range 1 kHz to 999.9 MHz. Equivalent Softkey: CHANNEL BAMDWDTH . Initial Value: 16 kHz. Preset Value: last value entered. Related Commands: ACP, ACPE, CHP.
Description The value of ACPBW is used when calculating the results of the adjacent channel (ACP), adjacent channel extended (ACPE), or channel power (CHP) measurement. The value of ACPBW is also used when ACPPAR is set for automatic coupling the spectrum analyzer settings for the ACP, ACPE, or CHP measurement. Once you enter a value into ACPBW, that value is retained until you change it, or execute DISPOSE ALL. Pressing (FiZ5Fij or turning the spectrum analyzer off does not change the value of ACPBW.
ACPCONTM Continuous Sweep Measurement ACPCONTM Continuous Sweep Measurement Changes the spectrum analyzer’s sweep mode to continuous sweep, and then performs the previous power measurement (occupied bandwidth, adjacent channel, or channel power) at the end of every sweep. Syntax Equivalent Softkey: CONT MEAS . Related Commands: ACP, ACPSNGLM, CHP, CONTS, SNGLS, OBW. Example OUTPUT 718*"ACP*" OUTPUT 718;"ACP~ONTM;" I4qforrn.s the adjacent channel power measurenzent.
ACPE Adjacent Channel Power Extended Performs the adjacent channel power extended measurement. Syntax ACPE Equivalent Softkey: AKl CRAM PWR extd . Related Commands: ACPPAR, ACPSNGLM, ACPSP, ACPBW. Example OUTPUT 718;"ACPE;" &forms the adjacent channel power extended meamrewznt. Description ACPE performs the adjacent channel power measurement using the values for channel spacing (ACPSP) and channel bandwidth (ACPBW).
ACPE Adjacent Channel Power Extended 10. If no error occurred, query trace A (TRA) for the trace results of the ACPE measurement. ACPE Measurement Results Description Variable or Trace 1CPERR A variable that indicates if setup errors occurred for the ACPE measurement. If ACPERR is 0, no errors occurred. If ACPERR is greater than 0, an error occurred. An ACPERR value of 1 to 7 Indicates that the frequency span, channel spacing, or the channel bandwidth are not set correctly.
ACPGR Adjacent Channel Power Graph On or Off Determines if the adjacent channel power (ACP) graph function is enabled or disabled. Syntax Equivalent Softkey: ACPGWR ON OFF . Related Commands: ACP, ACPE. Example OUTPUT 718;"ACP;" OUTPUT 718;"MOV ACPGR,l;" F&yfoms the adjacent channel power measurement. l3~~bles the ACP graph function and creates a graph of ACP as a function of the frequency offset from the center freq=y.
ACPGR Adjacent Channel Power Graph On or Off Setting the ACPGR to - 1, does the following: n Turns off the display of the ACP graph in trace C. n Calculates and displays the ACP numeric results. n Removes the GRPH MKR ON OFF softkey from the menu. n Turns off the ACP graph marker. n If in continuous measurement mode, the numeric results will be updated at the end of every sweep.
ACPGRAPH Compute the Adjacent Channel Power Graph Computes and displays an adjacent channel power (ACP) graph. Syntax Equivalent Softkey: none. Related Commands: ACP, ACPE. Example OUTPUT 718;"ACP;" OUTPUT 718;"ACPGRAPH;" Performs the adjacent channel power measurement. Creates a graph of ACP as a function of the frequency offset from the center-frequency.
ACPMK Adjacent Channel Power Marker On or Off ACPMK Adjacent Channel Power Marker On or Off Determines if the graph marker function is enabled or disabled for the adjacent channel power (ACP) graph. Syntax xacpmk Equivalent Softkey: GRPH ON OFF . Related Commands: ACPGR, ACPGRAPH, CHPGR, ACPSNGLM, ACPCONTM. Example OUTPUT 718;"ACP 8. II OUTPUT 718;"MOV ACPGR,l;" OUTPUT 718;"MOV ACPMK,l;" &forms the adjacent channel power measurement.
ACPPAR ACP Manual or Auto Determines if the spectrum analyzer settings used for the adjacent channel power (ACP), adjacent channel power extended (ACPE), channel power (CHP), or occupied bandwidth (OBW) measurement are set manually or automatically. Syntax Equivalent Softkey: PARA?! AUTO MAN . Related Commands: ACP, ACPE, ACPSP, ACPBW, OBW, CHP, DET, ST, VB, RB, SS. Example OUTPUT 718;"MOV ACPPAR,l;" Sets theparametersfor the adjacent channel powerparameters automatically.
ACPPAR ACP Manual or Auto ‘able 5-5. Spectrum Analyzer Settings, ACPPAR is Set to Automatic Measurement Res Bandwidth Video Bandwidth Step Size Span Sweep Time Adjacent Channel Power Highest setting that does not exceed 0.025 x WJ’) ACPBW’ 10 x RB Channel Power (CHP) Highest setting that does not exceed 0.025 x ACPBW’ 10 x RB 2 x ACPBW ACPSP Auto Occupied Bandwidth VW Highest setting that does not exceed 0.
ACPSNGLM Single Sweep Measurement Changes the spectrum analyzer’s sweep mode to single sweep, performs a take sweep (TS), and then performs the previous power measurement (occupied bandwidth, adjacent channel, adjacent channel power extended, or channel power). Syntax Equivalent Softkey: SINGLE MEAS. Related Commands: ACP, ACPCONTM, ACPE, CHP, CONTS, SNGLS, OBW. Example OUTPUT 718;"ACP;" OUTPUT 718*"ACPSNGLM*" 8 , Performs the adjacent channel power measurement. Repeats the previous wzeasuremmt once.
ACPSP Channel Spacing ACPSP Channel Spacing Allows you to specify the frequency spacing between channels. Syntax - c h a n n e l s p a c i n g 7 - HZ Item Number Description/Default Any real or integer number. Default unit is Hz. Range 1 kHz to 999.9 MHz. Equivalent Softkey: CHANNEL SPACING, Initial Value: 25 kHz. Preset Value: last value entered. Related Commands: ACP, ACPE. Example OUTPUT 718;"MOV ACPSP,lOOKHZ;" OUTPUT 718;"ACP;" Spec@.es 100 kHz frequency spacing between channels.
ACPSP Channel Spacing Query Response chonne I r spacing output t e r m i n a t i o n 5-46 Programming Commands ---)
ACTDEF Active Function Definition ACTDEF Active Function Definition Creates a user-defined active function.
ACTDEF Active Function Definition Description/Default Item Range Character (function name) Any valid character. Use the function name as the remote command name. Character (text for active function label) Any valid character. The active function label is displayed in the active function block (when the function is active). User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable name. Number Any real or integer number. Default value is 0, default unit is none.
ACTDEF Active Function Definition Example 2 This example uses ACTDEF in a downloadable program that is created by the KEYDEF command. In this example, the ACTDEF function D-SPAN is assigned to softkey 1. When softkey 1 is pressed, ENTER FFT SPAN is displayed on the spectrum analyzer display. When a value is entered, the sweep time is changed to prepare the spectrum analyzer for making a fast Fourier transform measurement. (See “FFT” for more information about making a fast Fourier transform measurement.
ACJTDEF Active Function Definition Refer to the following table for a description of the different unit parameter. Behavior of Unit Parameters for ACTDEF Command Parameter Knob Increment Value Step Increment Value unit-Keys INT Integer, increment or decrement by 1 only 1 None STEP Increment or decrement by 1 only .1 None NONE Not applicable Not applicable None HZ Resolution bandwidth during zero-span mode; otherwise, 10% of span. Resolution bandwidth, during zero-span mode; otherwise, 0.
ACTDEF Active Function Definition Querying both “ACTDEF” and the ACTDEF function’s name returns the definition of the function. For example, execute OUTPUT 718 ; "ACTDEF TEST. 7,* ” (TEST is the ACTDEF function’s name).
ACTVF Active Function Returns a “0” if the given function is not active. A “1” if it is active. Syntax a c t i v e f u n c t i o n / \ character ACTVF Prezef ined function path only Description/Default Item Character Any valid character. tinge Any active function name. Related Commands: Any active function (see the list of active functions in the description below), IP. Example OUTPUT 718;"RB IOOKHZ;" OUTPUT 718;"ACTVF RB;" ENTER 718;A DISP A Makes resolution bandwidth the active function.
ADD Add ADD Add Adds the sources and sends the sum to the destination.
ADD Add Example Add 38 MHz to the center frequency, then store the sum in a user-defined variable. 10 OUTPUT 718;"IP;" Initializes spectrum analyze 20 OUTPUT 718;"CF 300MHZ;" Changes the centerj?equency. 30 OUTPUT 718;"VARDEF N,EW,O;" L?&nes a variable, N-m and initializes it to 0. 40 OUTPUT 718;"ADD N,EW,CF,38E6;" Adds 38 MHz to the center frequency, then places the sum in NJX? 50 OUTPUT 718;"N,EW?;" Returns value of N-h’Wto the computer: 60 ENTER 718;Freq Assigns value to variabh Freq.
AMB Trace A Minus Trace B AMB Trace A Minus Trace B Subtracts trace B from trace A and sends the result to trace A during every sweep of the spectrum analyzer. Syntax AMB OFF ON Preset State: AMB OFF. Related Commands: CLRW, CONTS, MXMH, SNGLS, TS, VAVG, VIEW. Restrictions: Not compatible with Analog+ display mode. See “ANLGPLUS” for more information. Equivalent Softkey: B - B -> A ON OFF .
AMB Trace A Minus Trace B Example 2 Initializes spectrum analyzer .Each element of trace A is set to 8000 measurement units, which is equal to 0 dBm. 30 OUTPUT 718;"VIEW TRA;" Places trace A in the view mode. 40 OUTPUT 718;"MOV TRB,7000;" Each element of trace B is set to 7000 measurement units, which is equal to -10 dBm. 50 OUTPUT 718;"VIEW TRB;" Places trace B in the view mode. 60 OUTPUT 718;"AMB ON;" Subtracts trace B from trace A.
AMB Trace A Minus Trace B Description The AMB command subtracts trace B from trace A (point by point), and sends the result to trace A. The AMB function remains in effect until it is turned off by executing “AMB OFF;“. The AMB command is a trace math command and subtracts trace B from trace A in measurement units (see “CTA” for information about measurement units).
AMBPL Trace A Minus Trace B Plus Display Line Subtracts trace B from trace A, adds the display line value to the difference, and sends the result to trace A during every sweep of the spectrum analyzer. Syntax OFF / ON Equivalent Softkey: NORMLIZE ON OFF . Preset State: AMBPL OFF. Related Commands: ADD, AMB, CONTS, CLRW, DL, MXMH, SNGLS, SUB, TS, VAVG, VIEW. Restrictions: Not compatible with Analog+ display mode. See “ANLGPLUS” for more information.
AMBPL Trace A Minus Trace B Plus Display Line Description The AMBPL command subtracts trace B from trace A (point by point), adds the display line value to the difference, and sends the result to trace A. The AMBPL function remains in effect until it is turned off by executing “AMBPL OFF;“. A common use of trace subtraction is to normalize one trace with respect to another. For example, traces are frequently subtracted to normalize the spectrum analyzer response when a tracking generator is used.
AMPCOR Amplitude Correction Applies amplitude corrections at specified frequencies. Syntax HZ number KHZ MHZ Item Number Description/Default Range Any real or integer number. Default unit is dB. Frequency: 0 to 1000 GHz Amplitude: f327 dB. Equivalent Softkeys: the softkeys accessed by bp Car . Preset State: AMPCOR OFF. Related Commands: AMPLEN, AT, RL. Example Compensate for frequency-dependent amplitude inaccuracies at the input.
AMPCOR Amplitude Correction 80 90 100 110' OUTPUT 718;"AMPCOR?;" ENTER 718;A$ PRINT A$ END Because AMPCOR is ofi “0,O” is displayed. Description Use AMPCOR to compensate for frequency-dependent amplitude variations at the spectrum analyzer input. Up to 79 pairs of frequency-amplitude correction points can be entered. The frequency values entered must either be equal or in increasing order, or an error condition results. Whenever AMPCOR is on, the correction values are added to all measurement results.
AMPLEN Amplitude Correction Length Returns the number of frequency-amplitude correction factors that have been entered. Syntax AMPLEN ,+a v Xined f u n c t i o n p a t h o n l y XAMPLEN Related Commands: AMPCOR. Example OUTPUT 718;"AMPLEN?;" Description The absolute value of the number that AMPLEN? returns is the number of frequencyamplitude correction factors that have been entered. If no amplitude correction factors have been entered, AMPLEN? returns a 0.
ANLGPLUS Analog Plus ANLGPLUS Analog Plus Turns on or off the Analog+ display mode. Syntax ON / OFF XANLCPLUS Equivalent Softkey: ZWBLOG* ON OFF . Required Option: Option 101 or 301. Preset State: ANLGPLUS OFF Related Commands: DOTDENS. Example OUTPUT 718;"ANLGPLUS ON;" Turns on the Analog+ display mode. Description The Analog+ display mode enables the trace display to emulate an analog display.
ANLGPLUS Analog Plus Query Response ON output ’ t e r m i n a t i o n --) OFF (102 5.
ANNOT Annotation ANNOT Annotation Turns on or off the display annotation. Syntax OFF / ON P i ‘.. . . . . .._. .’ 0 1 ? w Equivalent Softkey: ANNOTATN ON OFF . Preset State: ANNOT ON. Related Commands: GRAT, TITLE. Example 10 20 30 40 50 OUTPUT 718 ; "ANNOT ON ; ‘I OUTPUT 718;"ANNOT?;" ENTER 718;Reply$ DISP Reply$ END Turns on the annotation. Queries state of the annotation f&&ion. Places response in a variable. Displays response on the computer screen.
APB Trace A Plus Trace B Adds trace A to trace B and sends the result to trace A. Syntax APB Related Commands: CLRW, SNGLS, TS, VIEW. Example 10 OUTPUT 718;"IP;SNGLS;" 20 OUTPUT 718;"TS;" 30 OUTPUT 718;"VIEW TRA;RL -2ODM;CLRW TRB;" 40 OUTPUT 718;"TS;VIEW TRB;" 50 OUTPUT 718."APB*" 60 OUTPUT 718;"BLAiK TRB;VIEW TRA;" 70 END Initializes spectrum andyzq changes to single-sweep mode. Updates the trace. Changes the refwence level. llzkes a measurement sweep. Activates APB command.
AT Attenuation AT Attenuation Specifies the RF input attenuation. Syntax /- Item Number a t t e n u a t i o n Description/Default Any real or integer. Default units are dB. Range Input attenuator range of spectrum analvzer. Equivalent Softkey: ATTI$?J AUTO #AM is similar. Preset State: 10 dB. Step Increment: in 10 dB steps. Related Commands: AUTO, ML, RL.
AT Attenuation Caution Signal levels above + 30 dBm will damage the spectrum analyzer.
AUNITS Amplitude Units AUNITS Amplitude Units Specifies the amplitude units for input, output, and display. Syntax DBM DBMV Equivalent Softkey: Aruptd Units . Related Commands: CAL, DL, MKA, RL, TH. Example OUTPUT718.“LN*” Changes spectrum analyzer to linear mode. OUTPUT 718 ; “AUNITS DBMV ; " Changes the linear amplitude units to DBMV OUTPUT718.“AUNITS’.” Queries current amplitude units. *9 ENTER 718;&PIy$ Puts response in a variable. DISP Reply$ Displays response on the computer screen.
AUTO Auto Couple Couples the active functions automatically. Syntax a c t i v e r f u n c t i o n Related Commands: AT, DL, HD, MKA, MKD, MKF, MKFCR, MKN, RB, SRCPSTP, SRCPSWP, SRCPWR, SS, ST, TH, VAVG, VB, VBR. Example OUTPUT 718."AT AUTO-" OUTPUT 718;"HD;AUTO;" OUTPUT 718*"AUTO-" 2 9 Couples the attenuation. Couples all functions. Couples and deactivates a related function (if one was active), or couples all Jimctions (if rm functions were active).
AVG Average AVG Average Averages the source and the destination. Syntax 7 d e s t i n a t i o n - AVG b u s e r - d e f i n e d \L trace t r a c e range h p r e d e f i n e d u s e r - d e f i n e d v a r i a b l e / / d variable/ u s e r - d e f i n e d b u s e r - d e f i n e d predefined user-defined predefined Item t r a c e varidble / variable variable function Description/Default User-defined trace A trace defined by the TRDEF command.
AVG Average Example 10 OUTPUT 718;"IP;" 20 OUTPUT 718;"SNGLS;" 30 OUTPUT 718;"DET POS;TS;" 40 50 60 70 80 OUTPUT 718;"VIEW TRA;" OUTPUT 718;"DET SMP;" OUTPUT 718;"CLRW TRB;TS;" OUTPUT 718;"VIEW TRB;" OUTPUT 718;"AVG TRA,TRB,2;" 90 OUTPUT 718;"BLANK TRB;" 100 END Initializes spectrum analyzez Activates single-sweep mode. Activates the positive-peak detector and updates the trace. Stores results and displays trace A. Activates sample detection.
AXB Exchange Trace A and Trace B AXB Exchange Trace A and Trace B Exchanges trace A and trace B. Syntax AXB Equivalent Softkey: A <- -? f3. Related Commands: CLRW, SNGLS, TS, VIEW. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example 10 OUTPUT 718.
BAUDRATE Baud Rate of Spectrum Analyzer Specifies the baud rate of a spectrum analyzer with Option 043 (the RS-232 and parallel interface) installed in it. Syntax baud rate XBAUDRATE Item Number Description/Default Any valid integer number. Range 4 to 57600. Equivalent Softkey: BAUD ISATE . Option Required: Option 043. Example The following example allows you to use a softkey to change the baud rate of the spectrum analyzer to 2400 baud.
BAUDRATE Baud Rate of Spectrum Analyzer Query Response baud / rate \ output t e r m i n a t i o n + Programming Commands 5-77
BIT Bit Places the state (“1” or “0”) of a bit in the destination.
BIT Bit Description The BIT places either a “0” or a “ 1” in the destination. A “0” indicates the bit is off. A “ 1” indicates the bit is on. Specifying the bit number: When you specify the bit number, remember the following: n The bit number is limited from 0 to 63. If you enter a negative number for the bit number, the bit number defaults to 0. If you enter a number that is greater than 63, the bit number defaults to the remainder of the number divided by 64. n The least significant bit is bit 0.
BITF Bit Flag Returns the state (“ 1 n or “0”) of a bit. Syntax \ I BITF predefined variable / % p r e d e f i n e d v a r i a b l e J *user-defined v a r i a b l e ) p r e d e f i n e d b Item f u n c t i o n trace element function path only / / Description/Default User-defined variable A variable defined by VARDEF or ACTDEF commands. Predefined variable A command that acts as a variable. Refer to Table 5-l. Predellned function Function that returns a value. Refer to Table 5-l.
BITF Bit Flag Example 10 20 30 40 50 60 CLEAR 718 OUTPUT 718;"IP;" OUTPUT 718;"BITF STB,5;" ENTER 718;Err IF NOT Err THEN DISP "NO 'I; DISP "ERROR PRESENT"; 70 END Clears HP-IB bus. Initializes spectrum analyzer L3etermines the value of bit 5 of status byte. Assigns value to computer variable, Err: If Err equals zero, displays “NO ” on computer screen. L?ispla ys ‘
BLANK Blank Trace Blanks trace A, trace B, or trace C and stops taking new data into the specified trace. Syntax Equivalent Softkeys: BLANK A , BLAXK B , and BLANK C . Preset State: BLANK TRB, BLANK TRC. Related Commands: CLRW, MXMH, TRDSP, VIEW.
BML Trace B Minus Display Line BML Trace B Minus Display Line Subtracts display line from trace B and places the result in trace B. Syntax BML Equivalent Softkey: B - DL -> B . Related Commands: BLANK, CLRW, SUB, TS. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
BTC Transfer Trace B to Trace C Transfers trace B into trace C. Syntax BTC XBTC Equivalent Softkey: B -> C . Related Commands: BLANK, CLRW, SNGLS, TS, VIEW. Example OUTPUT 718;"IP;" OUTPUT 718*"SNGLS-" OUTPUT 718;"BLANK'TRA;" OUTPUT 718;"CF 300 MHZ;SP 1MHZ;" OUTPUT 718;"CLRW TRB;TS;" OUTPUT 718;"BTC;" OUTPUT 718;"BLANK TRB;VIEW TRC;" 80 END 10 20 30 40 50 60 70 Initializes spectrum analyzer: Activates single-sweep mode. Blanks trace A. Sets up measurement range. lbkes measurement sweep.
BXC Trace B Exchange Trace C BXC Trace B Exchange Trace C Exchanges trace B and trace C. Syntax BXC Equivalent Softkey: B <--? C . Related Commands: BLANK, CLRW, SNGLS, TS. Example 10 OUTPUT 718;"IP;BLANK TRA" 20 OUTPUT 718*"SNGLS-" 30 OUTPUT 718;"DET Pk;CLRW TRB;TS;" 40 OUTPUT 718;"VIEW TRB;" 50 OUTPUT 718;"DET SMP;CLRW TRC;" 60 OUTPUT 718*"TS-" 70 OUTPUT 718;"VIiW TRC;" 80 OUTPUT 718;"BXC;" 90 OUTPUT 718;"BLANK TRB;" 100 END Initializes spectrum analyzer: Activates single-sweep mode.
CAL Calibration Initiates self-calibration routines. Syntax Example OUTPUT 7 18 ; “CAL FREq ; ” &forms the frequency correction routine. Description The CAL command controls calibration functions. CAL initiates action according to the CAL parameters. The various parameters correspond to spectrum analyzer softkeys as shown below. ON turns correction factors on and corresponds to CORRECT CM OFF (ON is underlined). (See also ’ CORREK.
CAL Calibration Note Execute CAL STORE after successful completion of the self-calibration routines. Connect a cable between CAL OUT and the spectrum analyzer input before running the CAL FREQ, CAL AMP, or CAL ALL correction routines. FREQ initiates the frequency correction routine and corresponds to CAL FREq . AMP initiates the amplitude correction routine and corresponds to CAL AWTD . ALL initiates frequency and amplitude correction routines. It corresponds to CAL FREq & AMPTD .
CAL Calibration Note Using the default calibration data may cause the calibration routine to fail. If this occurs, execute “OUTPUT 718; CF -37HZ; ” before performing the CAL FREQ or CAL ALL calibration routines. The take sweep (TS) and DONE commands can be used to indicate that the correction routine has finished. Query the CORREK command to check that the calibration routines have finished successfully.
CAT Catalog CAT Catalog Catalogs either spectrum analyzer memory or the memory card and returns the catalog information to the controller. Syntax Equivalent Softkeys: the functions accessed by Catalog Internal or Catalog Card. Related Commands: LOAD, MSI, STOR. Example This example returns the catalog information for the states stored on the memory card. Catalog information is sent as individual catalog lines that are separated by a carriage return and a line feed.
CAT Catalog 70 80 90 100 120 130 140 I=I+l Pas-lf=POS(User$,CHR$(lO)) Catalog$(I)=User$Cl,Pos,lf -21 OUTPUT CRT;Catalog$(I) User$=User$[Pos,lf+l] END WHILE END Checks for line feeds. CHR$(IO) represents the line feed, the ASCII code for a line feed is “10. ” Extracts catalog line. Displays catalog line. Description To use the CAT command, you must specify the type of information to be cataloged and either the spectrum analyzer memory or the memory card as the catalog source.
CAT Catalog Information Description Position within String File name 1 through 10 Name of the file. File Type 11 through 16 ASCII or binary data (in LIF -2 format). Data Type 17 through 22 a = amplitude correction factors, d = downloadable program, 1 = limit line, i = display files s = spectrum analyzer state, t = trace. Start Record 23 through 30 Physical record number of the start of file. Length 31 through 38 Number of records in the file.
CAT Catalog If you want to catalog all user-defined variables, user-defined softkeys, or user-defined functions in spectrum analyzer, use the asterisk without “prefix,” “reg,” or “on” preceding the asterisk. For example “CAT *,INT; “. Cataloging spectrum analyzer (internal) memory returns the following information: MS1 device (internal). H Bytes of spectrum analyzer memory used. n Total amount of spectrum analyzer memory (in bytes).
CF Center Frequency CF Center Frequency Specifies the center frequency. Syntax c / f r e q u e n c y value \ number CF Description/Default Item Number Any real or integer number. Default unit is Hz. Range Frequency range of the spectrum analyzer. Equivalent Softkey: CEHTEH FREQ . Step Increment: If uncoupled, step size is determined by the SS command. If coupled, step size is 10% of span. Related Commands: HNLOCK, FA, FB, FOFFSET, FS, MKCF, MKSS, SP, SS.
CF Center Frequency Description The CF command specifies the value of the center frequency. Query Response 5.
CHP Channel Power CHP Channel Power Performs the channel power measurement. Syntax CHP XCHP Equivalent Softkey: ClUNNEL PCIVER . Related Commands: ACPPAR, ACPCONTM, ACPSNGLM, ACPSP, ACPBW, CHPGR, ACPMK. Example OUTPUT 718*"CHP*" , , Flyforms the channel power rneasur~t. Description CHP measures the total power in the specified channel bandwidth (ACPBW). The power spectral density per Hz is also computed and displayed. This value is the average-power spectral density in the specified channel bandwidth.
CEIP Channel Power CEIP Measurement Results Description Variable or Trace ACPERR Units A variable that indicates setup errors for the CHP measurement. The value of ACPERR indicates the following: n n n If no errors occurred, ACPERR is 0. If ACPERR is 1, channel bandwidth > frequency span. If ACPERR is 2, the channel bandwidth < frequency span/loo. CHPWR A variable that contains the channel power. Determinded by AUNITS command. Default unit is dBm.
CElPGR Channel Power Graph On or Off CHPGR Channel Power Graph On or Off Determines if the channel power graph function is enabled or disabled. Syntax Equivalent Softkey: PWkGRAPH ON OFF Related Commands: CHP Example 10 OUTPUT 718; “CHP; ” 20 OUTPUT 718;"MOV CHPGR,l;" Fkyforrns the channel power masurmt. Enables the power graph function and creates a graph of the channel power as a function of frequency.
CLRAVG Clear Average Restarts video averaging. Syntax CLRAVG Related Commands: AMB, CLRW, MINH, MXMH, VAVG. Example OUTPUT 718;"IP;" OUTPUT 718;"VAVG 100;" WAIT 30 OUTPUT 718*"CLRAVG-" , , Initializes the spectrum analyzer: Initializes video averaging. Restarts wide0 averaging. Description The CLRAVG command restarts the VAVG command by resetting the number of averaged sweeps to one. The video averaging routine resets the number of sweeps, but does not stop video averaging.
CLRBOX Clear Box CLRBOX Clear Box Clears a rectangular area on the spectrum analyzer display. Syntax Item Description/Default Number Any valid integer number. Range For xl or x2, -40 to 471. For yl or y2, -22 tb 233. Related Commands: CLRDSP. Example The following programming line results in the spectrum analyzer display shown in Figure 5-2. OUTPUT718;“CLRBOX 1,1,200,20O,A;” & REF . 0 dBm PEAK LOG ATTEN 1 0 Clears the annotation and graticule from the rectangular area of 1,l to 200,200.
CLRJSOX Clear Box Description lb use CLRBOX, you must specify the rectangular area of the box. You can also specify whether the annotation or trace planes are to be cleared. Specifying the rectangular area of the box You specify the rectangular area by specifying the coordinates of the lower left corner (xl, yl) and the upper right corner (x2, y2) of the rectangle in display units. (The cleared area includes the xl, yl, x2, and y2 coordinates).
CLRDSP Clear Display CLRDSP Clear Display Erases user-generated graphics and text, Syntax CLRDSP Related Commands: CLRBOX, DA, DRAWBOX, DSPLY, PA, PD, PR, PU, TEXT. Example OUTPUT 718;"CLRDSP;BLANK TRA;BLANK TRB; GRAT 0FF;TH 0FF;DL OFF;" OUTPUT 718;"CLRW TRA;GRAT 0N;ANNOT ON;" Blanks the spectrum analyzer screen, except for trace C and annotation. Reinstates the display of trace A, the graticulq and the annotation.
CLRW Clear Write Clears the specified trace and enables trace data acquisition. Syntax XCLRW Equivalentsoftkeys: CLl%R WRITE A, CLEAR WRITE B, and CLEAR WRITE C. Preset State: CLRW TRA. Related Commands: BLANK, DET, MINH, MXMH, VAVG, VIEW. Restrictions: CLRW TRB and CLRW TRC are not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718;"CLRW TRA;" Description The CLRW command places the indicated trace in the clear-write mode.
CL!3 Clear Status Byte CLS Clear Status Byte Clears all status bits. Syntax CLS Related Commands: RQS, SRQ, STB. Example OUTPUT 7 18 ,- “CLS ,* ” Description The CLS command clears all the status bits in the status byte. (See “SRQ” for more information on the status byte.
CMDERRQ Command Error Query The CMDERRQ command returns the current buffer of illegal commands and then clears the illegal-command buffer from the spectrum analyzer. Syntax Example OUTPUT 718;"CMDERRQ;" ENTER 718;A$ DISP A$ Initiates the command. Gets the response from the spectrum anu1yze.x Llisplu~s the response Description Executing the CMDERRQ command does the following: w Returns the most recently stored illegal or unrecognized command characters.
CNF Confidence Test CNF Confidence ‘I&t Performs the confidence test. Syntax CNF XCNF Equivalent Softkey: COhfF TEST . Example OUTPUT 718; “CNF; ” Description The CNF command initiates a confidence test of the resolution bandwidth, video bandwidth, and step gain. Note Connect a cable between CAL OUT and the spectrum analyzer input before executing the CNF command.
CNTLA Auxiliary Interface Control Line A Sets the control line A of the auxiliary interface high or low. Syntax CNTLA OFF / ON XCNTLA Equivalent Softkey: CNTL A 0 1 . Related Commands: CNTLB, CNTLC, CNTLD, CNTLI. Example OUTPUT 718 ; "CNTLA ON; I’ OUTPUT 718;"CNTLA?;" ENTER 718;A$ DISP A$ Sets control line A high. Queries the state of control line A. Gets the response from the spectrum analyzix Displays the response.
CNTLB Auxiliary Interface Control Line B CNTLB Auxiliary Interface Control Line B Sets the control line B of the auxiliary interface high or low. Syntax OFF / ON XCNTLB Equivalent Softkey: CNTL B 0 1 . Related Commands: CNTLA, CNTLC, CNTLD, CNTLI. Example OUTPUT 718 *9 "CNTLB ON 9- ‘I OUTPUT 718."CNTLB'." *, ENTER 718;i$ DISP A$ Sets control line B high. Queries the state of control line B Gets the response from the spectrum analyze7: Displays the response.
CNTLC Auxiliary Interface Control Line C Sets the interface control line C of the auxiliary interface high or low. Syntax OFF / ON Equivalent Softkey: CNTL C 0 1 . Related Commands: CNTLA, CNTLB, CNTLD, CNTLI. Example OUTPUT 718."CNTLC ON*" Sets control line C high. t # OUTPUT 718."CNTLC'." Queries the state of control line C. .9 ENTER 718;i$ Gets the response from the spectrum anal~zxx DISP A$ Lhkplays the response.
CNTLD Auxiliary Interface Control Line D CNTLD Auxiliary Interface Control Line D Sets the interface control line D of the auxiliary interface high or low. Syntax Equivalent Softkey: CNTL D 0 1 . Related Commands: CNTLA, CNTLB, CNTLC, CNTLI. Example OUTPUT 718 ; "CNTLD ON ; I' OUTPUT 718."CNTLD'." *, ENTER 718;i$ DISP A$ Sets control line D high. Queries the state of control line D. Gets the response from the spectrum anal~zerz Displays the response.
CNTLI Auxiliary Interface Control Line Input Returns a “ 1” when the interface control line I of the auxiliary interface is high, and “0” if the line input is low. Syntax f u n c t i o n p a t h o n l y XCNTL I Equivalent Softkey: DISPLAY CMTL I . Related Commands: CNTLA, CNTLB, CNTLC, CNTLD. Example OUTPUT 718; “CNTLI ; I1 ENTER 718;A DISP A 5-110 Programming Commands Gets the status of control line I Displays status.
COMB Comb COMB Comb Turns on or off the comb generator. Syntax XCOMB Equivalent Softkey: CO?!E! GEN ON OFF . Model Required: HP 8592L, HP 85933, or HP 85963. Example OUTPUT 718;"COMB ON;" Turns onthecombgenerator: Description To use the comb signal, a cable must be connected from the COMB OUT connector to the spectrum analyzer input.
COMPRESS Compress Trace Reduces the number of trace elements while retaining the relative frequency and amplitude characteristics of the trace data. Syntax 7 d e s t i n a t i o n COMPRESS r a l g o r i t h m 7 XCOMPRESS Item Description/Default User-defined trace A trace defined by the TRDEF command Trace Range A segment of trace A, trace B, trace C, or a user-defined trace. Range Any valid trace name. Prerequisite Commands: TRDEF when using user-defined trace. TS when using trace data.
COMPRESS Compress Trace Example This example compresses trace B into “C-0MPTRAC” using the positive (POS) algorithm. 10 OUTPUT 718."IP-" Initializes spectrum analyz4x 20 OUTPUT 718;"TR;EF C-OMPTRAC,lOO;" Creates a trace called C-OMFTRACwith a length of 100 elements. 30 OUTPUT 718 ;“BLANK TRA; SNGLS;" Blanks trace A, activates single-sweep mode. 40 OUTPUT 718;"CLRW TRB;TS;" Measures with trace B 50 OUTPUT 718;"COMPRESS C-OMPTRAC,TRB,POS;" Compresses trace B into C-OMFTRAC.
CONCAT Concatenate Combines two traces. Syntax 7 d e s t i n a t i o n CONCAT b u s e r - d e f i n e d b ,- source 1 t r a c e '\ t r a c e J range ,- I source 2 .
CONCAT Concatenate Example 10 OUTPUT 718;"IP;" 20 OUTPUT 718;"SNGLS;" Initializes the spectrum analyzer: Activates the single-sweep mode. Stores and displays trace A. 3zkes a measurement sweep with trace B OUTPUT 718;"CONCAT TRC,TRA[1,200],TRB[201,4011;" Concatenates the last half of trace B to the Jirst half of trace A. OUTPUT 718;"BLANK TRA;BLANK TRB;" Blanks trace A and trace B OUTPUT 718;"VIEW TRC;" LXsplays the result.
CONTS Continuous Sweep Sets the spectrum analyzer to the continuous sweep mode. Syntax CONTS Equivalent Softkey: SWEEP COMT SGL (when CONT is underlined). Preset State: CONTS. Related Commands: SNGLS, ST, TM. Example OUTPUT 718; “CONTS; ” Description The CONTS command sets the spectrum analyzer to continuous sweep mode. In the continuous sweep mode, the spectrum analyzer takes its next sweep as soon as possible after the current sweep (as long as the trigger conditions are met).
CORREK Correction Factors On CORREK Correction Factors On Returns a “1” if the correction factors are on, a “0” if they are off. Syntax f u n c t i o n path o n l y XCORREK Equivalent Softkey: CORRECT ON OFF . Related Commands: CAL.
COUPLE Couple Selects direct-current (dc) coupling or alternating-current (ac) coupling. Syntax XCOUPLE Equivalent Softkey: COUPLE AG DC . Model Required: HP 85943, HP 85953, or HP 85963. Preset State: AC Related Commands: Il? Example OUTPUT 718;"COUPLE DC;" Description Caution Do not use dc coupling if there is any dc voltage at the spectrum analyzer input. Do not exceed the power stated on the spectrum analyzer input.
CRTHPOS Horizontal Position of CRT Display CRTHPOS Horizontal Position of CRT Display Specifies the horizontal position of the text and graticule on the spectrum analyzer’s display. Syntax h o r i z o n t a l r p o s i t i o n XCRTHPOS Number Range Description/Default Item Any valid integer number. 1 to 34. Equivalent Softkey: CRT HORZ POSITIOf . Default Value: 10. Step Increment: by 1. Related Commands: CRTVPOS, SYNCMODE.
CRTVPOS Vertical Position of CRT Display Specifies the vertical position of the text and graticule on the spectrum analyzer’s display. Syntax v e r t i c a l CRTVPOS Description/Default Item Number Any valid integer number. Range 10 to 58. Equivalent Softkey: CRT VERT POSITION . Default Value: 48. Step Increment: by 1. Related Commands: CRTHPOS, SYNCMODE.
CE4 Convert to Absolute Units CTA Convert to Absolute Units Converts the source values from measurement units to the current absolute amplitude units and then stores the result in the destination. Syntax 7 d e s t i n a t i o n ,- Source ‘7 b n u m b e r CTA b p r e d e f i n e d - u s e r - d e f i n e d b p r e d e f i n e d / v a r i a b l e / variable) f u n c t i o n / XCTA Item User-defined variable Description/Default Range A variable defined by VARDEF or ACTDEF commands.
CTA Convert to Absolute Units Description The result of the CTA command depends on the reference level, the current amplitude units, and the amplitude scale (log or linear). Measurement units are the internal binary data representation of measured results. The internal binary data representation is 16-bit amplitude values that are stored in traces. The values range from -32,768 to 32,767. The value of 8000 corresponds to an amplitude equal to the reference level. In log mode, each count represents 0.
CTM Convert to Measurement Units CTM Convert to Measurement Units Converts the source values to measurement units and places the result in the destination. Syntax ,- scJurce -\ CTM u s e r - d e f i n e d v a r i a b l e XCTM Item User-defined variable Number Description/Default A variable defined by VARDEF or ACTDEF commands R-tfe Any valid variable name. A number expressed in integer, decimal, or exponential form. Real number range.
DA Display Address Accesses the current address of the display list. Syntax d i s p l a y Range Description/Default Item Number 0 to 16383. Any integer number. Preset State: 0. Related Commands: DSPLY, GR, LB, PA, PD, PR, PU, TEXT. Example This example allows you to display a message on the spectrum analyzer display, blank the message, and then display another message on the spectrum analyzer display.
DA Display Address OUTPUT 718;"MOV DA,D,ADDRESS;" OUTPUT 718;"PUPA 100,120;TEXT %Done%;" Restores the display address. LXspla ys the meSSage “‘Done” on the analyzer screen, and replaces the text ‘Signalfound” and the blank spaces that were in the display list. The text ‘Measurement77 remains on the spectrum analyzer display and in the display list. Description The DA command allows you to access the current address of the display list.
DA Display Address Note Assigning random values to the display address can have undesirable effects. Restrictions: You cannot alter earlier entries to the display list without rewriting all subsequent entries in the display list.
DATEMODE Date Mode DATEMODE Date Mode Allows you to set the format for displaying the real-time clock in either the month, day, year format or the day, month, year format. Syntax XDATEMODE Equivalent Softkey: DATENODE MDY DMY . Example 1 OUTPUT 718;"DATEMODE DMY;" OUTPUT 718;"DATEMODE?;" ENTER 718;A$ DISP A$ Sets the date mode to day, month, yearformat. Queries the format of the display of the real-time clock.
DEMOD Demodulation Turns the demodulator on or off, and selects between AM, FM, or quasi-peak demodulation, Syntax DEMOD Equivalent Softkey: DEKOD ON OFF is similar. Option Required: Option 102, 103, or 301. Related Commands: DET, FMGAIN, HAVE, MKPAUSE, SP, SPEAKER, SQLCH. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example This example demonstrates FM demodulation in a span greater than zero.
DET Detection Mode DET Detection Mode Selects the spectrum analyzer detection mode. Syntax XDET Equivalent Softkey: DETECTOR PK SP NG or DETECTOR SMP PK. Preset State: DET POS. Related Commands: DEMOD, MEANTH, TV. Example 10 20 30 40 50 60 70 80 OUTPUT 718;"IP;" OUTPUT 718;"SNGLS;" OUTPUT 718;"DET POS;TS;" OUTPUT 718;"VIEW TRA;" OUTPUT 718;"DET SMP;" OUTPUT 718;"CLRW TRB;TS;" OUTPUT 718;"VIEW TRB;" OUTPUT 718;"AVG TRA,TRB,2;" 90 OUTPUT 718;"BLANK TRB;" 100 END Initializes the spectrum analy.
DET Detection Mode When used as a predefined variable, DET returns a number. The number that is returned corresponds to the DET parameter as shown in the following table.
DISPOSE Dispose DISPOSE Dispose Frees spectrum analyzer memory that was previously allocated for user-defined operands. Syntax xdispose Item Description/Default Range Jser-defined trace A trace defined by the TRDEF command. Any valid trace name. Jser-defined variable A variable defined by the VARDEF or ACTDEF commands. Any valid variable name. User-defined function A subroutine defined by the FUNCDEF command. Any valid function name. Number Any valid softkey number. 1 to 6, 601 to 1200.
DISPOSE Dispose Example OUTPUT 718;"VARDEF T-EMP,lO;" OUTPUT 718;"DISPOSE T-EMP;" D@.e.s a vam’able for use in a program. When the variable is no longer needed, it can be deleted using the DISPOSE command Deletes T-EMP from spectrum analyzer memory.
DIV Divide DIV Divide Divides source 1 by source 2 and places the result in the destination. Syntax - dest inot i o n DIV u s e r - d e f i n e d L trace range % p r e d e f i n e d u s e r - d e f i n e d Item t r a c e v a r i a b l e I / / variable/ Description/Default Range User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
DIV Divide Example OUTPUT 718*"IP-" OUTPUT 718;"SNk;" OUTPUT 718."TS-" OUTPUT 718;& TRB,TRA,2;" OUTPUT 718;"VIEW TRB;" Initializes the spectrum analyzer Activates single-sweep mode. Updates trace information. Divides trace A &q two and places it in trace B D&plugs the result. Description Integer values are used when a trace is either the destination or one of the sources. If trace data is used both as the source and the destination, the DIV function is done with 32-bit arithmetic on 16-bit integer data.
DL Display Line DL Display Line Defines the level of the display line in the active amplitude units and displays the display line on the spectrum analyzer screen. Syntax Description/Default Item Number Range Dependent on the reference level. Any real or integer number. Default units are dBm. Equivalent Softkey: l3SP LINE OM OFF . Preset State: DL OFF Step Increment: 1 major division. Related Commands: AUNITS, AUTO, LG, LN, NRL, RL, ROFFSET, TH.
DL Display Line Query Response 5-136 Programming Commands
DN Down DN Down Reduces the active function by the applicable step size. Syntax ( DN XDN Related Commands: See the list of active functions listed in the description for DN. Example OUTPUT 718;“SS 1MHZ;CF 1GHZ;DN;” Setscenterfrequency to 1 GHz. OUTPUT 718;“SP 40MHZ;MKPK;DN;” Decreases the frequency span. Description Before executing DN, be sure that the function to be decreased is the active function.
DONE Done Allows you to determine when the spectrum analyzer has separated the spectrum analyzer commands and has started to execute all commands prior to and including DONE. The spectrum analyzer returns a value of “1” when all commands in a command string entered before DONE have been started. Syntax DONE f u n c t i o n p a t h o n l y XDONE Related Commands: TS.
DONE Done Description As shown by the example, if a take sweep (TS) precedes the DONE command, DONE is executed after all the preceding commands have been completed. Use a take sweep (TS) to ensure all previous commands have completed before DONE returns a “ 1. ” Query Response Programming Commands 5.
DOTDENS Dot Density Sets the dot density value in the Analog+ display mode. Syntax d o t XDOTDENS Range Description/Default Item Number 1 to 40. Any valid integer number. Equivalent Softkey: BNfiOG+ ON OFF . Option Required: Option 101 or 301. Preset State: 15. Related Commands: ANLGPLUS. Example OUTPUT 718;"ANLGPLUS ON;" OUTPUT 718;"DOTDENS 40;" Turns on the Analog+ display mode. Sets the dot density to 40. Description The dot density value can be set from 1 to 40 dots per trace element.
DRAWBOX Draw Box DRAWBOX Draw Box Draws a rectangular box on the spectrum analyzer display. Syntax DRAWBOX ‘.w.... XDRAWBOX For xl or x2, -40 to 471. For yl or y2, -22 to 233. For x thickness, 1 to x2 - xl, for y thickness, 1 to y2 - yl. Related Commands: CLRDSP. Example The following programming line results in the spectrum analyzer display shown in Figure 5-3. OUTPUT 718;"DRAWBOX 1,1,200,200,10,5;" 47 REF .0 dBm PEAK LOG ATTEN 1 0 % Draws a box from 1,1 to 200,200.
DRAWBOX Draw Box Description You must specify the rectangular area and the thickness of the horizontal and vertical borders of the box. Specifying the rectangular area: You specify the rectangular area by specifying the coordinates of the lower left corner (xl, yl), and the upper right corner (x2, y2) of the rectangle in display units. If you select a value of x2 that is equal to xl, the result will be a vertical line instead of a box, and the border will be on the right side of the line.
DSPIX Display DSPLY Display Displays the value of a variable on the spectrum analyzer screen. Syntax f i e l d predefined v a r i a b l e *user-defined % p r e d e f i n e d b t r a c e decimal / vorioble) functton element / / XDSPLY “Field width” specifies the number of digits displayed, including sign and decimal point. (Places to the right of the decimal point are limited by the decimal places field.) For example, the number 123.
DSPLY Display Example OUTPUT 718;"CF BOOMHZ;” OUTPUT 718;"PU;PA 50,lSO;DSPLY CF, 13.3;" Sets center frequencz/ to 300 MHz Center frequency is displayed to three oT.ecirnal places in a field width of 13. Description The DSPLY command displays the value of a variable anywhere on the spectrum analyzer display. Use the PU, PR, and PA commands to position the variable on the screen. (You do not have to specify the PU or PD commands; DSPLY can display the data independent of PU or PD commands.
DT Define Terminator DT Define Terminator Defines any character as a label terminator. The label terminator is only used with the LB command. Syntax character XDT Description/Default Item Character Rtae Any valid character. Related Commands: LB. Example OUTPUT 718; “DTQ; ” OUTPUT 718; “CF GOOMHZ; ” Lk@ws the “@” symbol as the text terminator: Sets center frequency to 600 MHz.
EE Enable Entry Sends the controller the values entered on the spectrum analyzer numeric keypad by the operator. Syntax < EE XEE Related Commands: RQS. Example The following example works with both RS-232 and HP-IB interfaces; however, the address (718) must be changed for RS-232 operation. The program polls the spectrum analyzer for its status byte. 10 PRINTER IS 1 Outputs to the computer screen.
EE Enable Entry Description Unlike enter parameter (EP), EE does not terminate the entry mode when the operator completes an entry. The EE command is used generally in the following sequence of events: 1. A program loop prevents the controller from using the entered value until the operator signals that the entry is complete. 2. The operator makes a data entry, which is stored in the spectrum analyzer internal data register. 3. The operator indicates completion of the entry. 4.
EK Enable Knob Allows data entry with the front-panel knob when the spectrum analyzer is under remote control. Syntax ( EK XEK Example 1 PRINTER IS 1 10 OUTPUT 718;"MKN;EK;" Activates a marker and enables the front-panel knob. 20 PRINT "USE KNOB TO PLACE MARKER" While the program pauses, the operator positions a marker on a signal that needs further analysis. 30 PRINT "PRESS CONTINUE WHEN DONE" Prompts user 40 PAUSE The operator positions a marker on a signal that needs further analysis.
ENTER Enter From HP-IB ENTER Enter From HP-IB Allows the spectrum analyzer to receive data from other devices on the HP-IB. Syntax - HP-IB ENTER f p r e d e f i n e d u s e r - d e f i n e d v a r i a b l e / variable/ Description/Default Item Number User-defined format \ / address variable Predefined variable R-fle Any valid integer number. oto 30. A variable defined by VARDEF or ACTDEF commands. Any valid variable name. A command that acts as a variable. Refer to Table 5-l.
ENTER Enter From HP-IB Note Disconnect the computer before pressing softkey 1 or execute ABORT 7, LOCAL 7 from the computer. To execute the P-OP function, the spectrum analyzer must be the only controller on the HP-IB.
EP Enter Parameter Function EP Enter Parameter Function Sends values entered on the spectrum analyzer number keyboard to the present active function value. EP must be invoked each time a new value is entered. Syntax ( EP XEP Related Commands: See the list of active functions listed in the description for El? Example OUTPUT 718;"ST;EP;" The sweep time can be entered by using the front-panel kegs. Description The EP command allows the user to enter a value manually through the numeric keypad.
ERASE Erase Clears trace A and trace B, disposes of the contents of the user memory, and resets the state registers and the spectrum analyzer to the instrument preset state. Syntax Related Commands: DISPOSE, ONCYCLE, ONDELAY, ONEOS, ONMKR, ONPWRUP, ONSRQ, ONSWP, ONTIME, PSTATE, TRDEF, TRMATH, VARDEF.
EXP Exponent EXP Exponent Places the exponential of the source in the destination. The EXP command is useful for converting log values to linear values. Syntax 7 d e s t i n a t i o n - EXP b u s e r - d e f i n e d h trace t r a c e range b p r e d e f i n e d u s e r - d e f i n e d v a r i a b l e / I I v a r i a b l e s c a l i n g f a c t o r XEXP Item DescriotionlDefault User-defined trace A trace deflned by the TRDEF command. Any valid trace name.
EXP Exponent Example 1 This example converts the marker amplitude to power units. 10 OUTPUT 718;"IP;" 20 OUTPUT 718;"SNGLS;" 30 OUTPUT 718;"VARDEF P-MW,O;" 40 OUTPUT 718;"TS;MKPK HI;" 50 OUTPUT 718;"EXP P-MW,MKA,lO;" 60 70 80 90 OUTPUT 718;"P,MW?;" ENTER 718;Number DISP Number;"mW" END Initializes the spectrum analyzer Activates the single-sweep mode. Initializes variable P..MW to 0. Fino!s highest peak of sweep.
EXP Exponent Description The EXP command first divides the source by the scaling factor, then uses the quotient as an exponent of 10: 10source/scaling factor is placed into the destination. The EXP command can be used to evaluate a natural exponential function by using 2.30259 as the scaling factor. Because EXP and LOG are inverse functions, the EXP command has a scaling factor that may be used to “undo” the scaling factor of the LOG command. (See example 2.
FA Start Frequency Specifies the start frequency. Syntax Item Number Description/Default Any real or integer number. Default unit is Hz. R-e Frequency range of the spectrum analyzer. Equivalent Softkey: START FREQ . Step Increment: Frequency span divided by 10.
FA Start Frequency Description The FA command specifies the start frequency value. The start frequency is equal to the center frequency minus the span divided by two (FA = CF - SP/2). Note Changing the start frequency changes the center frequency and span. Rx- the HP 8592L, HP 8593E, HP 8595E, HP 85963 only: The start frequency may be limited by the harmonic band, if harmonic band locking is used.
FB Stop Frequency Specifies the stop frequency. Syntax Description/Default Item Number Any real or integer number. Default unit is Hz. Range Frequency range of the spectrum analyzer. Equivalent Softkey: STOP FREQ . Step Increment: Frequency span divided by 10. Related Commands: CF, FA, FOFFSET, FS, HNLOCK, MKF, SI? Example OUTPUT 718;"FA 88MHZ;FB 108MHZ;" OUTPUT 718."FB'.
FB Stop Frequency Description The FB command specifies the stop frequency value. The stop frequency is equal to the center frequency plus the span divided by two (FA = CF + SP/2). Note Changing the stop frequency changes the center frequency and span. fir the HP 8592L, HP 85933, HP 8595E, or HP 8596E only: The stop frequency may be limited by the harmonic band, if harmonic band locking is used.
FFT Fast Fourier Transform Performs a discrete fast Fourier transform on the source trace array and stores the result in the destination array. Syntax - d e s t i n a t i o n FFT user-defined trace ,- w i n d o w user-defined Item User-defined trace trace user-defined Description/Default I A trace defined by the TRDEF command. -\ trace I Range Any valid trace name. Prerequisite Commands: TWNDOW. Related Commands: MKREAD, TWNDOW. Restrictions: Not available with Analog+ display mode.
FFT F&t Fourier Transform OUTPUT 718;"FFT TRA,TRA,TRB;VIEW TRA;" OUTPUT 718;"MKPK HI;" OUTPUT 718."MKD." OUTPUT 718;"MKPi NR;" OUTPUT 718;"MKREAD FFT;" OUTPUT 718."MKF'." , *, ENTER 718;A DISP A Executes the FFTjimction with the trace window function. Finds the highest signal. Activates the marker deltajim%ion. Finds the next peak to the right. Selects the FFl’ marker to display the marker delta value as a frequency instead of time value. Finds the dz@rence between the two peaks.
FFT, F&t Fourier Transform The FLATTOP window has the greatest frequency uncertainty of the windows, but it has outstanding side lobe suppression and amplitude flatness. Use FLATTOP to transform periodic signals. The HANNING window is a traditional passband window found in most real-time spectrum analyzers. The HANNING window offers a compromise between the FLATTOP and UNIFORM windows. Use the HANNING window when transforming periodic or random data.
FFT Fbst Fourier Transform I 1 i I I I I I 80 .90 00 Figure 5-5. Uniform Filter Window 0 -10 -20 -30 VI -A -40 -50 E 0 -60 E -80 -70 -90 -100 -110 -120 -130 -140 Figure 5-6.
FFTAUTO Marker to Auto FFT Performs a fast Fourier transform (FIT) on the signal on which the marker is placed. Syntax Equivalent Softkey: MARKER -> AUTO FFT . Prerequisite Commands: Use a marker command to place a marker on the signal of interest. See YIhble 5-4 for a list of the marker commands. Related Commands: FFI’CONTS, FFTOFF, FFTSNGLS. Example This example can be used to perform an FF”I’ continuously on an amplitude modulated signal at 100 MHz. OUTPUT 718*"RL ODB-" Sets reference level to 0 dBm.
FFTAUTO Marker to Auto FFT “Measuring Amplitude Modulation with the Fast Fourier Transform Function” in Chapter 4 of the HP 8590 E-Series and LSeries Spectrum An&zers User’s Guide. You can use the results of the FFTCLIP command to determine if the FFT data is valid.
FFTCLIP FFT Signal Clipped Indicates if the FFI’ results are valid. Syntax FFTCL I P Prerequisite Commands: FFTAUTO, FFTSNGLS, FFTCONTS. Related Commands: FFTSTAT. Example OUTPUT 718*"FFTCONTS-" , 9 OUTPUT 718."FFTCLIP'." ENTER 718;kclippe& Starts the FFI: Queries FFTCLE Returns the value of FFTCLII? Description Whenever you use FFTAUTO, FFTCONTS, or FFTSNGLS to perform an FFI’ on a signal, you can use the FFTCLIP command to determine if the FFT data is valid.
FFT.CONTS FFT Continuous Sweep FFTCONTS FFT Continuous Sweep Performs a fast Fourier transform (FFT) continuously on the current signal. Syntax Equivalent Softkey: CONTINUS FFT . Prerequisite Commands: LN, Sl? Related Commands: FFTOFF, FFTSNGLS. Example OUTPUT 718; “SP OHZ; ” OUTPUT 718; “LN; ” OUTPUT 718;"FFTCONTS;" Sets the spectrum analyzer to zero span.
FFTMKR FFT Markers Activates the FFI’ markers and displays the FFT annotation on the spectrum analyzer display. Syntax FFTMKR Equivalent Softkey: FFT MARKERS . Related Commands: FFTCONTS, FFTOFF, FFISNGLS, FFTPCTAM, FFTPCTAMR, MKA, MKF. Example OUTPUT 718;"RCLT TRA,l;" OUTPUT 718;"FFTMKR;" Recalls the FFl’ trace. Activates the FFT markers.
FBTMM FFT Marker to Midscreen FFTMM FFT Marker to Midscreen Changes the FFT midscreen frequency of the spectrum analyzer to the frequency of the FFI marker. Syntax FFTMM Equivalent Softkey: M&lXER -) KID SCRN . Prerequisite Commands: FFTAUTO, FFTSNGLS, FFTCONTS. Related Commands: FFTMS, MKA, MKF. Example OUTPUT 718;"FFTCONTS;" OUTPUT 718;"MKPK HI;" OUTPUT 718;"MKPK NH;" OUTPUT 718;"FFTMM;" Starts the continuous FIT. Finds the sign& with the highest amplitude (usually the signal at 0 Hz).
FFTMS FFT Marker to FFT Stop Frequency Changes the FFT stop frequency of the spectrum analyzer to the frequency of the FFI marker. Syntax FFTMS Equivalent Softkey: MARKER -? FFT STOP. Prerequisite Commands: FFTAUTO, FFTSNGLS, FFTCONTS. Related Commands: FFI’MM, MKA, MKF. Example OUTPUT 718;"FFTCONTS;" OUTPUT 718;"MKPK HI;" OUTPUT 718;"MKPK NH;" OUTPUT 718."FFTMS-" , 9 Starts the continuous FIT Finds the signal with the highest amplitude (usually the signal at 0 Hz).
FFTOFFFFTOff FFTOFF FFTOff Exits the fast Fourier transform (FFT) measurement and FFl’ settings. Syntax FFTOFF Equivalent Softkey: FFT OFF . Prerequisite Commands: FFTAUTO, FFTSNGLS, FFTCONTS, FFTMKR. Related Commands: FFTMKR, FFI’AUTO, FFTCONTS, FFTSNGLS.
FFTPCTAM FFT Percent Amplitude Modulation Turns on or off the percent AM function. Syntax 0 / '._.__.' r on 7 1 I XFFTPCTAM / Equivalent Softkey: FFTPCTAM is equivalent to using X AK UI? OFF during an FFT measurement. Prerequisite Commands: FFTCONTS, FFI’MKR, FFTSNGLS, FFTAUTO. Related Commands: FFTPCTAMR. Example Starts the FlT Turns on the percent AMjimction. OUTPUT 718;"FFTCONTS;" OUTPUT 718;"MOV FFTPCTAM,l;" Description The FFI’PCTAM command turns the percent AM function on or off.
FFTPCTAMR FFT Percent Amplitude Modulation Readout FFTPCTAMR FFT Percent Amplitude Modulation Readout Returns the percent of amplitude modulation (AM). Syntax FFTPCTAMR XFFTPCTAMR Prerequisite Commands: FFTCONTS, FFTMKR, FFTSNGLS, FF”IAUT0, FFTPCTAM. Related Commands: FFTPCTAM. Example OUTPUT 718;"FFTCONTS;" OUTPUT 718;"MOV FFTPCTAM,l;" OUTPUT 718;"FFTPCTAMR?;" ENTER 718;Percentam Starts the FFT Turns on the percent AMfunction. Queries the percent AM reading. Gets the percent AM reading.
FFTSNGLS FFT Single Sweep Changes the spectrum analyzer’s sweep mode to single sweep mode (if necessary), and then performs a fast Fourier transform (FFT) on trace A. Syntax Equivalent Softkey: SINGLE FFT . Prerequisite Commands: LN, Sl? Related Commands: FFI’CONTS, FFTOFF Example OUTPUT 7 18 . “SP OHZ #* ” OUTPUT 7 18 ; “LN ; ” OUTPUT 718 ; “FFTSNGLS ; ” Sets the spectrum analyzer to zero span.
FFTSNGLS FFT Single Sweep FFTSNGLS uses the following when performing an FFT: w The flat top filter window. See “FFT” for more information about the flat top filter window. w Trace B and trace C. If you want to save the trace data that is in trace B or trace C, you should save the trace data before executing FFIAUTO, FFTCONTS, or FFTSNGLS. (See “SAVET” for more information about saving trace data.
FFTSTAT FFT Status Returns the status of the spectrum analyzer’s FFT measurement functions. Syntax FFTSTAT Prerequisite Commands: FFI’AUTO, FFTSNGLS, FFTCONTS, FFTMKR. Related Commands: FFTCLIP. Example OUTPUT 718*"FFTCONTS*" OUTPUT 718;"FFTSTAT?;" ENTER 718;Fftstatus Starts the FFT Qv.wries FF’TSTAII: Returns the value of FmSTAT. Description FFTSTAT returns either a “0,’ a “ 1,” or a “2” as follows: 0 If the spectrum analyzer is not performing an FFI’ measurement, FFTSTAT returns a “0.
FFTSTOP FFT Stop Frequency FFTSTOP FFT Stop Frequency Sets the FFI’ stop frequency of the FFT measurement. Syntax Item Number Description/Default R-e Range is limited by the range of the sweep time for the Any real or integer number. Default unit is Hz. Prerequisite Commands: FFI’AUTO, FFTSNGLS, FFTCONTS. Related Commands: ST. Example OUTPUT 718 * “FFTCONTS - ” OUTPUT 718; “FFTSTOP ;KHZ; ” Starts the FFT Sets the FlTstopjYequemy to 1 kHz.
FFTSTOP FFT Stop Frequency Query Response stop f r e q u e n c y / \ output t e r m i n a t i o n + QFFTSTOP 5-176 Programming Commands
FMGAIN FM Gain FMGAIN FM Gain -. _: Sets the total FM frequency deviation for full screen demodulation. Syntax FMGA IN / f r e q u e n c y v a l u e \ HZ T--*0-+ / I / ..’ ..’ ..’ / J XFMGAlN Item Number I Description/Default Any real or integer number. Default unit is Hz. R=r3e 10 kHz to 500 kHz. Equivalent Softkey: FM GAIN . Option Required: Option 102, 103, or 301. Preset Value: 100 kHz. Related Commands: DEMOD, SPEAKER, SQLCH. Example OUTPUT 718;"FMGAIN 10KHZ; ‘I Sets theFMgain.
FOFFSET Frequency Offset Specifies the frequency offset for all absolute frequency readouts such as center frequency. Syntax . ._.’ FOFFSET v a l u e \ HZ Description/Default Item Number / f r e q u e n c y Range Any real or integer number. Default unit is Hz. Equivalent Softkey: FREQ OFFSET . Preset State: 0 Hz. Related Commands: CF, FA, FB, MKN, MKF,MKSP, MKSS.
FOFFSET Frequency Offset Description The FOFFSET command selects a value that offsets the frequency scale for all absolute frequency readouts (for example, center frequency). Relative values such as span and marker delta are not offset. After execution, the FOFFSET command displays the frequency offset in the active function readout. When an offset is in effect, it is displayed beneath the bottom graticule line on the spectrum analyzer screen. Execute “FOFFSET 0;” or “IP;” to turn off the offset.
FORMAT Format Card Formats the memory card. Syntax / l a b e l imi ter \ character XFORMAT Equivalent Softkey: FORMAT CARD . Description/Default Item Range Character Any valid character. 0 to 6 characters long, A through Z and the underscore (the underscore cannot be the Arst character of the label). Delimiter Matching characters marking the beginning and end of the list of - 1 \ @ = / - $ % ; ! ’ : spectrum analyzer commands.
FS Full Span FS Full Span Sets the frequency span of the spectrum analyzer to full span. Syntax Equivalent Softkey: FULL SPAN . Related Commands: CF, FA, FB, HNLOCK, SP, SS. Example OUTPUT 7 18 ; “FS ; ” Puts the spectrum analyzer in full-span mode. Description The FS command selects both the start frequency and the stop frequency according to the frequency span of the spectrum analyzer. Resolution bandwidth, video bandwidth, and sweep time are all set to autocoupled.
FUNCDEF Define Function Defines a routine consisting of spectrum analyzer commands, assigns the routine a label, and stores the routine and its label in the user memory. Syntax user-defined f u n c t i o n nane / \ character FUNCDEF comnonds t o / b e e x e c u t e d a n a l y z e r < # \ comnand character A character Item Character (function name) Description/Default Range 9ny valid character. ! to 11 characters .
. FUNCDEF Define Function Example Connect CAL OUT to the spectrum analyzer input. IO OUTPUT 718;“IP;” 20 OUTPUT 718;“VARDEF H-SPAN,O;” 30 OUTPUT 718;“FUNCDEF S,HIFT,O”; 40 50 60 70 OUTPUT 718;“DIV H_SPAN,SP,2;“; OUTPUT 718;“ADD CF,CF,H-SPAN;“; OUTPUT 718*“@*” OUTPUT 718;“KkDEF l,S-HIFT,%SHIFT-UP%;” 80 OUTPUT 718;“CF 300MHZ;” 90 OUTPUT 718;“SP IMHZ;“; 100 LOCAL 718 110 END Initializes spectrum analyzer D&nes user-o!@ned variable with an initial value of 0. Creates user-&@u?d jimction, called SHIFT.
GATE Gate Turns on or off the time-gating. Syntax GATE OFF / ON KATE Equivalent Softkey: lGgTE ON OFF . Option Required: Option 105. Preset State: GATE OFF’. Related Commands: GATECTL, GD, GDRVUTIL, GL, GP Example Connect the HI SWEEP IN/OUT connector to the GATE TRIGGER INPUT. Connect the CAL OUT to the spectrum analyzer input. OUTPUT 718."IP-" 10 It?rforms an instrument preset. 20 OUTPUT 718;"CF'300MHZ;SP 0HZ;ST 200MS;" Sets the center frequency, span, and sweep time.
GATECTL Gate Control GATECTL Gate Control Selects between the edge and the level mode for Option 105, the time-gated spectrum analysis capability. Syntax XGATECTL Equivalent Softkey: GATE CTL EDGE LVL . Option Required: Option 105. Preset State: GATECTL EDGE. Related Commands: GATE, GD, GL, GP. Example OUTPUT 718;“GATECTL LEVEL;” Description In the edge mode, a trigger input starts the delay timer that triggers the gate timer.
GC Gate Preset Presets Option 105, the time-gated spectrum analysis capability. Syntax ( GC Option Required: Option 105. Related Commands: GATE, GATECTL, GD, GL, GP. Example OUTPUT 718;"GC;" Description The GC command sets the following time-gated spectrum analysis functions: GATE to OFF. w GATECTL to EDGE. n GP to POS. w The gate delay (GD) and gate length (GL) time values are set to 1 ps.
GD Gate Delay GD Gate Delay Sets the delay time from when the gate trigger occurs to when the gate opens. Syntax I-t i m e c GD v a l u e \ -\ u s / ‘...._..’ ;gY L / XGD Item Number Description/Default Any real or integer number. Default unit is seconds. Range 1 ps to 65.5 ms Equivalent Softkey: GATE DELAY . Option Required: Option 105. Preset State: 1 ps. Related Commands: GATE, GATECTL, GC, GL. Example OUTPUT 718; “GD 1US; ” Description GD applies only if GATECTL is set to EDGE.
GDRVCLPAR Clear Pulse Parameters Clears the pulse parameters (pulse width, pulse repetition interval, and reference edge) for a time-gate measurement by setting the pulse parameters to 0. Syntax XGDRVCLPAR Equivalent Softkey: CLE&R PARAM . Option Required: Option 105. Option 101 is recommended. Related Commands: GDRVPWID, GDRVPRI, GDRVREFE, GDRVST, GDRVVBW, GDRVRBW. Example OUTPUT 718;"GDRVCLPAR;" Clears all the pulse parameters.
GDRVGDEL Gate Delay for the Frequency Window GDRVGDEL Gate Delay for the Frequency Window For the frequency window only, GDRVGDEL sets the time delay from when the gate trigger occurs to when the gate is opened. Syntax \ Item Number / XGDRVGDEL Description/Default I R=u3e 1 ps to 65 ms. Any real or integer number. Default unit is seconds. Equivalent Softkey: GDRVGDEL is equivalent to GATE DELAY when using the gate utility (GATE UTILfTY ) functions. Option Required: Option 105.
GDRVGDEL Gate Delay for the Frequency Window Query Response GDRVGDEL? returns the last value entered for GDRVGDEL. To determine the current gate delay, query the gate delay (GD) command.
GDRVGLEN Gate Length for the Frequency and Time Windows GDRVGLEN Gate Length for the Frequency and Time Windows Adjusts the gate length in both the time and frequency windows. Syntax - octe Item Number lenath - Description/Default Any real or integer number. Default unit is seconds. hnge 1 ps to 65 ms. Equivalent Softkey: GDRVGLEN is equivalent to GATE LElWI% when using the gate utility (GATE UTILITY ) functions. Option Required: Option 105. Option 101 is recommended. Preset Value: 1 ps.
GDRVGLEN Gate Length for the Frequency and Time Windows GDRVGT Window Gate Control Turns on or off the gate in the frequency window. Syntax g a t e r off 7 0 GDRVGT r . . ..._..’ gate on / \ Equivalent Softkey: GDRVGT is equivalent to GATE Ohl OFF when using the gate utility (GATE UTILITY ) functions. Option Required: Option 105. Option 101 is recommended. Related Commands: GDRVUTIL, GATE. Example OUTPUT 718;"MOV GDRVGT,l;" Turns on the gate in thefrequmcu window.
GDRVGT Window Gate Control Query Response r off 7 0 I output t e r m i n a t i o n + 7< Programming Commands 5-l 95
GDRVGTIM Gate Trigger to Marker Position for the Time Window Activates the gate trigger marker, and then places it at the given value in the time window. The trigger marker readout shows the time between the gate trigger edge and the current marker position. Syntax - m a r k e r p o s i t i o n 7 US / 4 .._._..’ 2;; L I / XGDRVGTIM Item Number Description/Default Any real or integer number. Default unit is seconds. ! I Range 0 to the sum of the sweev time and sweev I delay (GDRVSWDE).
GDRVGTIM Gate Trigger to Marker Position for the Time Window Query Response GDRVGTIM? returns the last value entered for GDRVGTIM. If you want the current value for the gate trigger marker, make the marker active with MKACTV, and then use MKF?.
GDRVPRI Pulse Repetition Interval Enters the specified value as the pulse repetition interval. Syntax pulse r e p e t i t i o n i n t e r v a l 7 u s GDRVPR I d Item Number f+ Range Description/Default Any real or integer number. Default unit is seconds. Range is from the sweep delay (GDRVSWDE) to the sweep time plus the GDRVPRI is equivalent to ENTER $31 . Option Required: Option 105. Option 101 is recommended. Initial Value: 0. Related Commands: GDRVCLPAR, GDRVST.
GDRVPRI Pulse Repetition Interval Query Response GDRVPRI returns the current value for the pulse repetition interval.
GDRVPWID Pulse Width Enters the specified value as the pulse width. Syntax GDRVPWI D / .._._.: Item Number Description/Default Any real or integer number. Default unit is ps. RawRange is from the sweep delay (GDRVSWDE) plus the sweep time to the Equivalent Softkey: E#m WIDTH . Option Required: Option 105. Option 101 is recommended. Initial Value: 0. Related Commands: GDRVCLPAR, GDRVRBW. Example OUTPUT 718;"MOV GDRVPWID,lMS;" Sets the pulse width to 1 ms.
GDRVPWID Pulse Width Query Response GDRVPWID returns the current value for the pulse width.
GDRVRBW Couple Resolution Bandwidth to Pulse Width Couples or uncouples the resolution bandwidth to the specified pulse width. Syntax u n c o u p l e d , \ Equivalent Softkey: CPL RBW OM OFF. Option Required: Option 105. Option 101 is recommended. Preset Value: Uncoupled. Related Commands: GDRVPWID, GDRVVBW, GDRVST. Example OUTPUT 718;“MOV GDRVRBW,l;” Couples the resolution bandwidth to the pulse width.
GDRVRBW Couple Resolution Bandwidth to Pulse Width Query Response GDRVRBW returns a “1” if the resolution bandwidth is coupled to the pulse width, or a “0” if it is not coupled.
GDRVREFE Enter Reference Edge Allows you to enter the position (in time) for a reference edge. Syntax GDRVREFE ‘._._.’ XGDRVREFE / Item Number Description/Default Range Any real or integer number. Default unit is p.s. Range is from the sweep delay (GDRVSWDE) plus the sweep time to the sweep delay. I I I Equivalent Softkey: ENTER REF EDGE . Option Required: Option 105. Option 101 is recommended. Initial Value: 0 s. Related Commands: GDRVUTIL.
GDRVREFE Enter Reference Edge Query Response r e f e r e n c e / edge \ output t e r m i n a t i o n + Programming Commands 5-205
GDRVST Couple Sweep Time to Pulse Repetition Interval Couples or uncouples the sweep time to the pulse repetition interval Syntax uncoup I e d .._._..’ c o u p l e d / \ XGDRVST Equivalent Softkey: CPL SWP ON OFF. Option Required: Option 105. Option 101 is recommended. Preset Value: Uncoupled. Related Commands: GDRVPRI. Example OUTPUT 718;"MOV GDRVST,l;" Couples the sweep time to the pulse repetition interval.
GDRVST Couple Sweep Time to Pulse Repetition Interval Query Response GDRVST returns a “1” if the sweep time is coupled to the pulse repetition interval, or a “0” if it is not coupled.
GDRVSWAP Update the Time or Frequency Window Makes the window (either the time or frequency window) that is currently not the active window, the active window. Syntax Equivalent Softkey: GDRVSWAP is equivalent to UPDATE TIMEFREq , or pressing ml. Option Required: Option 105. Option 101 is recommended. Related Commands: GDRVUTIL. Example OUTPUT 718;"GDRVSWAP;" Description Whenever the window is made active, the trace and gate position are updated.
GDRVSWDE Delay Sweep for Time Window GDRVSWDE Delay Sweep for Time Window Allows you to specify the delay from the edge of the gate trigger until the sweep is started in the time window. Syntax Item Number Description/Default Any real or integer number. Default unit is second. R=t3e 1 ps to 65 ms. Equivalent Softkey: SWEEP DELAY . Option Required: Option 105. Option 101 is recommended. Initial Value: 1 ps. Related Commands: GDRVUTIL, GD.
GDRVSWDE Delay Sweep for Time Window Query Response GDRVSWDE? returns the last value entered into GDRVSWDE. To determine the current value of the sweep time delay, query the gate delay (GD) command.
GDRVSWP Sweep Time for the Time Window GDRVSWP Sweep Time for the Time Window Specifies the sweep time for the time domain window of the gate utility. Syntax /- s w e e p t i m e -\ / Description/Default Item Number Any real or integer number. Default unit is second. XGDRVSWP Range 0 to 65 ms. Option Required: Option 105. Option 101 is recommended. Initial Value: 0. Related Commands: GDRVUTIL, ST. Example OUTPUT 718 ; “MOV GDRVSWP, 1MS ; ‘I Sets the time o?ek.zy to 1 rns.
GDRVSWP Sweep Time for the Time Window Query Response GDRVSWP? returns the last value entered into GDRVSWP To determine the current value of the sweep time in the time window, query the sweep time (ST).
GDRVUTIL Gate Utility GDRVUTIL Gate Utility Turns on or off the gate utility. Syntax u t i l i t y r Off 7 0 ..___... / u t i l i t y /- on 7 Equivalent Softkey: GATE UTILITY . Option Required: Option 105. Option 101 is recommended. Example OUTPUT 718;"MOV GDRVUTIL,l;" Turns on the gate utility. Description When the gate utility is turned on, the spectrum analyzer screen displays two windows.
GDRVUTIL Gate Utility Restrictions Executing GDRVUTIL exits the following functions: windows display mode (WINON), N dB point measurement (NDBPNT), the FFT menu measurements (FFTAUTO, FFTCONTS, FFISNGLS), TO1 measurement (TOI), marker table (MKTBL), peak table (PKTBL), percent AM (PCTAM), peak zoom (PKZOOM), or power menu measurements (ACP, ACPE, CHP, and OBW). You should turn off the gate utility (set GDRVUTIL to 0) when you are done with the gate utilities.
GDRVVBW Couple Video Bandwidth to Gate Length GDRVVBW Couple Video Bandwidth to Gate Length Couples or uncouples the video bandwidth to the gate length. Syntax XGDRVVBW Equivalent Softkey: CPL VBU ON OFF. Option Required: Option 105. Option 101 is recommended. Preset Value: Uncoupled. Related Commands: GDRVGLEN. Example OUTPUT 718;"MOV GDRVVBW,l;" Couples the video bandwidth to the gate length.
GDRVVBW Couple Video Bandwidth to Gate Length Query Response GDRVVBW returns a “1” if the resolution bandwidth is coupled to the pulse width, or a “0” if it is not coupled.
GETPLOT Get Plot GETPLOT Get Plot Initiates output of the spectrum analyzer display to the active plotter port. GETPLOT is meant to be used within a downloadable program. Syntax XGETPLOT Item Number Description/Default Any real or integer number. R=u3e Number within the plotter Related Commands: FUNCDEF, GETPRNT, SNGLS, TS, PLTPRT. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
GETPLOT Get Plot Description The GETPLOT command transfers the trace data, graticule, and annotation of the spectrum analyzer screen to a plotter via the spectrum analyzer interface (softkey labels excluded). The data is transferred in ASCII, HPGL format. Before executing the downloadable program that contains GETPLOT, you should do one of the following: n Disconnect the computer from the spectrum analyzer.
GETPRNT Get Print GETPRNT Get Print Initiates output of the spectrum analyzer display to a printer. GETPRNT is meant to be used within a downloadable program. Syntax ( GETPRNT -k I -a--+ / I / / I I / * r BW 7 C D - . ...
GETPRNT Get Print Related Commands: FUNCDEF, GETPLOT, PRNPRT. Example for the HP-IB Interface This example illustrates how you can use a softkey to print the spectrum analyzer display, and then have the printer perform a page feed. This example assumes that the printer is at address 1 and the spectrum analyzer is at address 18. (This example is only valid for HP 9000 series 200 and 300 computers.
GL Gate Length GL Gate Length Sets the length of time the gate is open. Syntax ( GL / . . ..._..’ 24; / L J XGL Description/Default Item Number Any real or integer number. Default unit is seconds. Range 1 ps to 65.5 ms Equivalent Softkey: GATE LENGTH . Option Required: Option 105. Preset State: 1 ms. Related Commands: GATE, GATECTL, GC, GD. Example OUTPUT 718;"GL IUS;" Description GL applies only if GATECTL is set to EDGE.
GP Gate Polarity Sets the polarity (positive or negative) for the gate trigger. Syntax XGP Equivalent Softkey: EDGE POL POS NEG. Option Required: Option 105. Preset State: GP POS. Related Commands: GATE, GATECTL, GD, GL. Example OUTPUT 718;"GP POS;" Description GP applies only if GATECTL is set to EDGE. When used as a predefined variable, GP returns a “0” if GP has been set to NEG, a “1” if GP has been set to POS.
GR Graph GR Graph Graphs the given 9 coordinate while incrementing the x coordinate by 1. Syntax c GR Description/Default Item Number XGR Any valid integer. Range -22 to 233. Related Commands: CLRDSP, DA. Example This example graphs a diagonal line on the spectrum analyzer display. OUTPUT 718;"BLANK TRA;" OUTPUT 718;"PU;PA 0,O;GR;" Rxitions thepen. FOR I = 0 TO 400 I represents the Y value in graticule coordinates. OUTPUT 718;I DIV 2 Graphs the Y values, incrementing the X value by 1.
GRAT Graticule Turns on or off the graticule. Syntax Equivalent Softkey: GRIT OEf OFF. Preset State: GRAT ON. Related Commands: ANNOT. Example OUTPUT 718 ; "GRAT OFF ; ” lWn.s ofl the graticule. OUTPUT 718;"GRAT?;" Qu.tkes graticub status. ENTER 718;Grat$ Gets response from the spectrum analyze?: DISP Grat$ Risplays OFF on the computer screen.
HAVE Have HAVE Have Returns a “0” if the specified option or device is not installed. Syntax cu 125e Example OUTPUT 718; “HAVE HPIB; ” ENTER 718;A DISP A Queries whether Option 041 is installed. Recm~ves response from spectrum analyzer Disph ys response.
HAVE Have Description The parameters are: HP-IB interface, Option 021, or HP-IB and parallel interface, Option 041. HPIB HPIBA HP-IB interface, Option 021. HPIBB HP-IB and parallel interface, Option 041. RS232 RS-232 interface, Option 023, or RS-232 and parallel interface, Option 043. RS232A RS-232 interface, Option 023. RS232B RS-232 and parallel interface, Option 043. IO Either the HP-IB and parallel interface (Option 041) or RS-232 and parallel interface (Option 043).
HAVE Have Bit Position I Bit Status = 0 Bit Status = 1 0 Memory card reader is not installed. Memory card reader is installed. 1 Memory card is write protected. Memory card is not write protected. 2 Memory card is a random access card (RAM). Memory card is a read only memory card (ROM). 3 Memory card not inserted into memory card reader. Memory card is inserted into memory I card reader. You can use the BIT or BITF command to determine the status of the bits.
HD Hold Data Entry Disables data entry via the spectrum analyzer numeric keypad, knob, or step keys. The active function readout is blanked, and any active function is deactivated. Syntax ( HD XHD Equivalent Key: HOLD (for the HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963) or (HOLD) (for the HP 8590L or HP 8592L). Related Commands: Any active function. See the description below for a list of the active functions.
HN Harmonic Number HN Harmonic Number Returns the harmonic number of the current harmonic band in which the spectrum analyzer is tuning. Syntax c PreZefined function path only XHN Model Required: HP 8592L, HP 85933, HP 85953, or HP 85963. Related Commands: FS, HNLOCK, HNUNLK. Example OUTPUT 718*"HN'*" ENTER 718;kmb;; DISP Number Queries harmonic band of spectrum analyzer: Gets response from the spectrum analyzer Displays the result on computer screen.
HNLOCK Harmonic Number Lock Forces the spectrum analyzer to use only the selected harmonic band. Syntax selected Item Number Description/Default Any valid integer number. Range 0 to 4 (for HP 8592L, HP 85933, or HP 8596E), 0 to 3 (HP 85963 only), 0 to 1 (for HP 8595E). Equivalent Softkey: The HNLOCK command and the softkeys under the Band Luck menu are identical. Model Required: HP 8592L, HP 85933, HP 85953, or HP 85963.
HNLOCK Harmonic Number Lock Once HNLOCK is set, only frequencies and spans that fall within the frequency band of the current harmonic may be entered. The span is reduced automatically to accommodate a center frequency specified near the end of the band range. Note Before changing the frequency range to another harmonic, unlock the band with the harmonic unlock command, “HNLOCK OFF;” or “HNUNLK; “.
HNLOCK Harmonic Number Lock Query Response output ’ t e r m i n a t i o n --) a02 5-232 Programming Commands
HNUNLK Unlock Harmonic Number HNUNLK Unlock Harmonic Number Unlocks the harmonic band. Syntax HNUNLK XHNVNLK Equivalent Softkey: HNUNLK is equivalent to HNLOCK OFF and BIJD LDCK ON OFF (OFF is underlined). Model Required: HP 8592L, HP 85933, HP 85953, or HP 85963. Related Commands: CF, FA, FB, FOFFSET, FS, HN, HNLOCK, SP. Example OUTPUT 718;"HNUNLK;" Description The HNUNLK command allows you to select frequencies and spans outside the range of a single harmonic band.
IB Input B Provides a method for putting values into trace B. The spectrum analyzer expects 401 two-byte integers. The data values can represent the range of integer numbers. Syntax Description/Default Item Data byte Range &bit byte containing numeric or character data. Example 10 ASSIGN @a TO 718;FORMAT ON 20 ASSIGN BSa-bin TO 718;FORMAT OFF Llimensions an array called “‘Binary. ” 30 INTEGER Binary(l:401) 40 OUTPUT (PSa;"CF 300MZ;CLRW TRB;BLANK TRA;SP Zzkes a measurement sweep.
ID Identify ID Identify Returns the spectrum analyzer model number to the controller (for example, “HP8593E”). Syntax Equivalent Softkey: SHOW DPTIOlG . Related Commands: REV, SER. Example 10 20 30 40 50 ALLOCATE A$[501 Allocates string to hold model number: OUTPUT 718;"ID;" Gets m.oo!&numberz ENTER 718;A$ Transfers number to computer: DISP A$ Displ.
IF THEN ELSE ENDIF If Then Else Endif The IF/THEN/ELSE/ENDIF commands form a decision and branching construct.
IF TEEN ELSE ENDIF If Then Else Endif Example The following example uses the IF/THEN/ELSE/ENDIF command to pick a center frequency. 10 OUTPUT 718; “IP; ” Initializes spectrum analyzxx 20 OUTPUT 718;“TH -35DM;” Sets threshold level. 30 OUTPUT 718;“TS;MKPK HI;MA;” Finds highest peak. 40 OUTPUT 718;“IF MA,GT,TH THEN;” Compares peak to threshold. 50 OUTPUT 7 18 ; “CF 20MHZ ; ” Changes center frequency to 20 MHz if peak amplitude is greater than the threshold.
IF THEN ELSE ENDIF If Then Else Endif The “equal to” (EQ) operator is not recommended if value 1 or value 2 represents a real number. When checking for equality with real numbers, the difference between the numbers is useful. For example: OUTPUT 718;"SUB T,EST,V-ARA,V,ARB;" Pkices the di@?wn.ce of VARA and V-ARB into T-EST. VARA, VA@ and T-EST are userd&ned variables. Finds the absolute value of T-EST Does a comparison. OUTPUT 718;"ABS T,EST,T-EST;" OUTPUT 718;"IF T,EST,LT,.
INT Integer INT Integer Places the greatest integer that is less than or equal to the source value into the destination. Syntax 4 u s e r - d e f i n e d t r a c e M x I NT Item Description/Default Range User-deflned trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name. variable PredeEned variable A command that acts as a variable. Refer to ‘lbble 5-l.
INT Integer Example OUTPUT 718;"INT RL,3.75;" Resets the reference level wing the integer value of 3. Description When the number of items in the source is longer than the destination, the source is truncated to fit. When the source is shorter than the destination, the last element is repeated to fill the destination. When the spectrum analyzer is sweeping across more than one band, taking the integer value of the sweep time (ST) may yield a real number.
INZ Input Impedance INZ Input Impedance Specifies the value of input impedance expected at the active input port. Syntax Equivalent Softkey: fIJKIl’ Z 508 75Q . Preset Value: Returns impedance to the power-on value. Related Commands: AUNITS. Example OUTPUT 718;"INZ 75;" OUTPUT 718 ; "AUNITS V; ” Changes input impedance to 75 ohms. Changes amplitude units to volts. Description The actual impedance can be affected only by internal hardware.
IP Instrument Preset Performs an instrument preset. Syntax Equivalent Softkey: (PRESET_) is similar Example OUTPUT 718;"IP;" Description AMB Turns off A - B mode. AMBPL Turns off A - B plus display line mode. AMPCOR Turns off amplitude correction factors. ANLGPLUS Turns off the Analog+ display mode. ANNOT Turns on annotation. AT Sets attenuation to 10 dB. AUNITS Loads the amplitude units from a configuration location in spectrum analyzer memory. AUTO Couples RB, AT, SS, ST, and VB.
IP Instrument Preset GD GDRVGDEL Sets the gate delay to 1 ps. (Option 105 only.) GDRVGLEN Sets the gate length to 1 ps. (Option 105 only.) GDRVRBW Uncouples the resolution bandwidth and the pulse width. (Option 105 only.) Uncouples the sweep time and the pulse repetition interval. (Option 105 only.) GDRVST Sets the gate delay to 1 ,us. (Option 105 only.) GDRVVBW Uncouples the video bandwidth and the gate length. (Option 105 only.) GL Sets the gate length to 1 ms. (Option 105 only.
IP Instrument Preset MS1 Selects the spectrum analyzer memory as the mass storage device. NDB Sets the number of dB for the NDBPNT measurement to -3 dB. PD Puts pen down at current position. PKDLMODE Displays all the signal peaks in the peak table. PKSORT Sorts the signal peaks in the peak table by decreasing amplitude. PKTBL Turns off the peak table. PKZOOM Sets the final span for the peak zoom routine to 1 MHz. QPOFFSET Sets the QPOFFSET to 20. (Option 103 only.
IP Instrument Preset IP also clears all user graphics, all on-event algorithms, and turns off the windows display mode. (The on-event algorithms are ONCYCLE, ONDELAY, ONEOS, ONMKR, ONSRQ, ONSWP, and ONTIME.) Instrument preset automatically occurs when you turn on the spectrum analyzer. IP is a good starting point for many measurement processes. When IP is executed remotely, the spectrum analyzer does not necessarily execute a complete sweep, however.
KEYCLR Key Clear Clears softkeys 1 through 6 of menu 1. Syntax KEYCLR XKEYCLR Related Commands: DISPOSE, KEYDEF, KEYEXC, KEYLBL, SAVEMENU. Example 1 OUTPUT 718;"MENU 1;" Dis$h!ayswwnu1. OUTPUT 718;"KEYCLR;" Erases sojtkeys 1 through 6 of menu 1. Example 2 OUTPUT 718;"MENU 1;" OUTPUT 718;"SAVEMENU 101;" OUTPUT 718;"KEYCLR;" PAUSE OUTPUT 718;"MENU 101;" Displays ???xnu 1. Copies the softkey functions from menu 1 into menu 101. Erases the soflkey functions of wwnu 1. Lxsphys menu 101.
KEYCMD Key Command KEYCMD Key Command Allows you define the function and label of a softkey. The softkey label is updated whenever a softkey is pressed.
KEYCMD Key Command Example 1 This example defines 1. Softkey 1 has the label “QSAD” until it is pressed. When softkey 1 is pressed, the following changes occur: center frequency changes to 105.3 MHz, span changes to 300 and the label for 1 changes from “QSAD” to “KSAD.” If softkey 1 is pressed again, the center frequency changes to 100.1 MHz and the label changes back to “QSAD.
KEYCMD Key Command 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370 380 390 400 410 420 430 440 450 460 470 OUTPUT 718;"%,"; OUTPUT 718."(6". OUTPUT 718;"IF'C.OUNTRY.EQ.O THEN;"; OUTPUT 718;"KEYLBL l,%KSAD%;"; OUTPUT 718;"ELSE;"; OUTPUT 718;"KEYLBL l,%QSAD%;"; OUTPUT 718;"ENDIF;"; OUTPUT 718*"@-"9 ,, ! OUTPUT 718;"KEYCMD 2,"; OUTPUT 718;"X"; OUTPUT 718;"IF C-OUNTRY,EQ,l THEN;"; OUTPUT 718;“MOV CF,l05.
KEYCMD Key Command Softkey numbers: When specifying the softkey number, you should only use a number from 1 through 6, or 601 through 1200. Using other than the recommended softkey numbers can cause undesirable results. The softkey number corresponds to the menu number as follows: softkey number = (menu number - 1) x 6 + softkey position (The softkey position range is 1 through 6.
KEYDEF User-Defined Key Definition KEYDEF User-Defined Key Definition Assigns a label and user-defined function to a softkey.
KEYDEF User-Defined Key Definition Description/Default Item Range User-de&ted variable A variable deEned by VARDEF or ACTDEF commands. Any valid variable name. Predefined function Function that returns a value. Refer to lhble 5-l. Any valid predeflned function that returns a value within the softkey number range. Trace element An element of trace A, trace B, trace C, or a user-defined trace. Number Any valid integer. 1 to 6, 601 to 1200. Predefined variable A command that acts as a variable.
KEYDEF User-Defined Key Definition Example 2 To redefine the command string without changing the label, enter a single blank space for the command string parameter. If you want to delete the command string and the softkey label, enter two or more blank spaces for the softkey label parameter. OUTPUT 718;“KEYDEF 2,XIP;CF 300MHZ;%,%MY KEYILABELX;” &@zesso~?key,Z. OUTPUT 718;“KEYDEF 2, ,%MY KEYILABELI;” Removes the command string fM.ctions, but the sojtkey label remain.5 on screen.
KEYDEF User-Defined Key Definition Softkey numbers: When specifying the softkey number, you should only use a number from 1 through 6, or 601 through 1200. Using other than the recommended softkey numbers can cause undesirable results. The softkey number corresponds to the menu number as follows: softkey number = (menu number - 1) x 6 + softkey position (The softkey position range is 1 through 6.
KEYENH Key Enhance KEYENH Key Enhance Allows you to activate inverse video mode or underline part or all of the softkey label.
KEYENH Key Enhance Item User-defined Predefined variable function Description/Default Range A variable defined by VARDEF or ACTDEF commands. Any valid variable name. Function that returns a value. Refer to Table 5-1. Any valid predefined function that returns a value within the softkey number range Trace element An element of trace A, trace B, trace C, or a user-defined trace. Number Any valid integer. 1 to 6, 601 to 1200. Predefined variable A command that act as a variable.
KEYENH Key Enhance Example 2 Use the KEYENH command to turn on inverse video for the upper label line of softkey number 1. Ul$=CHR$ (IS) IJff$=CHR$(lS) OUTPUT 718;"VARDEF I,NV,O;" OUTPUT 718;"VARDEF M-OVENH,O 9. II OUTPUT 718;"KEYENH l,%MY KEY I";Ul$;"ON";Off$;" OFF%,@IF 0, EQ,I,NVO,QIF O,Eq,M,OVENHO;" Defines UL$ as the character to turn the underline on. Dc#n-e.s OFF$ as the character to turn oflinverse video and underlining. The value of I-NV acts as a inverse video condition.
KEYENH Key Enhance Example 4 Omitting Ul$ and Off$ turns on inverse video for the upper and lower softkey label lines. Ul$=CHR$ (16) Off$=CHR$(lS) &f&es UL$ as the character to turn the underline on. Lk@ws OFF$ as the character to turn o~$ inverse video and underlining. OUTPUT 718;“MOV I-NV,O;” OUTPUT 718;“MOV M,OVENH,l;” OUTPUT 718;“KEYENH l,%MY KEYION OFF%,@IF 0, EQ,I-NVQ,OIF MYKEYand ONOFFare O,EQ,M-OVENHO;” displayed in inverse video.
KEYENH Key Enhance Softkey numbers: When specifying the softkey number, you should only use a number from 1 through 6, or 601 through 1200. Using other than the recommended softkey numbers can cause undesirable results. The softkey number corresponds to the menu number as follows: softkey number = (menu number - 1) x 6 + softkey position (The softkey position range is 1 through 6.
KEYEXC Key Execute Executes the specified, previously defined softkey. Syntax key / number \ KEYEXC XKEYEXC Item Number Description/Default Any valid integer Range 1 to 6, 601 to 1200. Related Commands: DISPOSE, ERASE, FUNCDEF, KEYDEF, KEYLBL. Example OUTPUT 718;"FUNCDEF D-LP,@"; OUTPUT 718*"CF 300MHZ.". , t 9 OUTPUT 718;"SP IMHZ;"; OUTPUT 718;"@;" OUTPUT 718;"KEYDEF l,D,LP,%SHOW CAL%;" OUTPUT 718;"KEYEXC 1;" 5.
KEYLBL Key Label KEYLBL Key Label Relabels a softkey without changing its function. Syntax - k e v n u m b e r . del i m i t e r KEYLBL / User-defined variable A variable defined by VARDEF or ACTDEF commands. ?redefined Function that returns a value. Refer to %ble 5-l. function rrace element -‘t&C “mziDI;I qJC’“‘Y YmzilauL 1 c-z.11 Any valid variable name. An element of trace A, trace B, trace C, or a user-defined trace. 1 to 6, 601 to 1200. Yumber Any valid integer.
KEYLESL Key Label The “@” signifies the end of the function declaration. 50 OUTPUT 718;"KEYDEF l,D-LP,%SHOW CAL%;" Soflkey 1 is now called “‘SHOW CAL” and performs the function D-L2 60 OUTPUT 718;"KEYEXC 1;" Executes sojtkey 1. 70 OUTPUT 718;"KEYLBL l,%NEW NAME%;" Soflkey 1 is now labeled “NEW NAME”, but performs the same function. 80 END 40 OUTPUT 718;"@;" Description When specifying the softkey number, you should only use a number from 1 through 6, or 601 through 1200.
LB Label LB Label Writes text (label) at the current pen position. The text consists of alphanumeric characters specified in the character field. Syntax ,- text -\ 7 t e r m i n a t o r character LB character XLB Character Item Description/Default (text) Any valid character. See “LB” for additional characters available. Character (delimiter) Range Anv valid character declared as a delimiter bv the DT command. Prerequisite Command: DT. Related Commands: TEXT, TITLE.
LB Label Description Each text character is specified by 8 bits in an 8 bit data byte, which immediately follows the LB command. Additional characters can be displayed using CHR$(code) where code represents the ASCII code. (See line 50 of the example.) Refer to the following tables for additional characters and label functions available. LB displays the text at the current pen position. When using LB, the end of the text characters must be terminated.
LB Label ‘Ihble 5-6.
LB Label 1 ible 5-7. Label Functions Code Description Function ~Positions the pen back one character width. 8 back space 10 line feed Positions the pen position down one character height. vertical tab , Positions the pen up one character height. 12 form feed ‘Position the pen to the upper-left comer of the display. 13 carriage return Positions the pen at the far left side of the display. 14 inverse video on Turns on inverse video.
LF’ Base Band Instrument Preset LF Base Band Instrument Preset Performs an instrument preset into base band (band 0). Syntax ( LF XLF Model Required: HP 8592L, HP 85933, HP 85953, HP 85963. Related Commands: IP. Example OUTPUT 718;"LF;" Description Use LF instead of instrument preset (IP) if harmonic band 0 is desired. Using LF instead of IP reduces the wear on an internal spectrum analyzer switch (the RF switch).
LG Logarithmic Scale Specifies the vertical graticule divisions as logarithmic units, without changing the reference level. Syntax l o g a r i t h m i c Item Number scale 7 Description/Default I Any real or integer number. Default units are dB. I Range 0.1 to 20 dB. Equivalent Softkey: SCALE LOG LIN (when LOG is underlined). Preset State: 10 dB. Related Commands: LN. Example OUTPUT 718;"LG 1DB;" Description The vertical scale can be specified (in tenths) from 0.1 to 0.
LIMIDEL Delete Limit-Line Table Deletes all upper and lower segments in the current limit-line table. Syntax Equivalent Softkey: PURGE LIMITS . Related Commands: LIMIFT, LIMIHI, LIMILO, LIMIREL, LIMISEG, LIMISEGT, SEGDEL, SENTER, SENTERT. Example OUTPUT 718."LIMIDEL*" 9 # Description Use LIMIDEL before entering a new limit line. Note Use STOR, SAVET, or SAVRCLW if you want to save the current limit-line table. LIMIDEL does not affect stored limit-line data.
LIMIDISP Limit Line Display Controls when the limit line (or limit lines) are displayed. Syntax Equivalent Softkey: LMT DXSP Y N AUTO . Preset Value: AUTO. Related Commands: ANLGPLUS, LIMILINE, LIMITEST. Example OUTPUT 718; “LIMIDISP ON; ” Displays any portion of the limit lines that are currently within the spectrum analyzer screen boundaries. Description If a limit line is currently in spectrum analyzer memory, you can use LIMIDISP to control the display of the limit lines.
LIMIDISP Limit Line Display When used as a predefined variable, LIMIDISP returns a number from 0 to four, depending on the setting of the LIMIDISP parameter. The number corresponds to the LIMIDISP parameter as shown in the following table.
LIMIFAIL Limits Failed Returns a “0” ifthelastmeasurementsweep of trace AisequaIto or within the limit-line bounds. Syntax Pre’def ined function path only Related Commands: LIMIHI, LIMILINE, LIMILO, LIMISEG, LIMISEGT, LIMITEST, SENTER, SENTERT.
LIMIFAIL Limits lkiled Description LIMIFAIL returns one of the following values: 0 indicates that the measurement sweep was within the limit-line bounds. 1 indicates that the measurement sweep failed the lower limit. 2 indicates that the measurement sweep failed the upper limit. 3 indicates that the measurement sweep failed both the lower and upper limits. 4 indicates that no test was performed. A “4” is returned if LIMITEST is set to OFF. Query Response Programming Commands 5.
LIMIFT Select Frequency or Time Limit Line Selects how the limit-line segments are defined: according to frequency, or according to the sweep time setting of the spectrum analyzer. Syntax Equivalent Softkey: LIMIFT is equivalent to LIMITS FRIJ TIME. Related Commands: LIMIDEL, LIMILINE, LIMIMODE, LIMIREL, LIMISEG, LIMISEGT, SEGDEL, SENTER, SENTERT. Example OUTPUT 718;"LIMIFT TIME;" Ifthe current limit-line table is a frequency limit-line table, it is purged.
LIMIHI Upper Limit LIMIHI Upper Limit Allows you to specify a fixed trace as the upper limit line. Syntax LIMIHI / h u s e r - d e f i n e d t r a c e / XLlMlHl Related Commands: IP, LIMIDEL, LIMIFAIL, LIMILO, LIMISEG, LIMITEST, SENTER.
LIMILINE Limit Lines Outputs the current limit-line table definitions. Syntax LIMILINE Related Commands: LIMIFI’, LIMIREL, LIMIMODE, LIMIREL, LIMISEG, LIMISEGT, LIMITEST, SAVRCLW, SENTER, SENTERT.
LIMILINE Limit Lines Description LIMILINE is used to query the current limit line. Executing LIMILINE returns an ASCII string containing the commands needed to create the limit line. Use these commands (in the order given) to build a limit line: 1. Use LIMIDEL to clear the limit-line table. 2. Use LIMIFI’ to select a limit line that is either based on frequency or sweep time. 3.
LIMILINE Limit Lines number of r s e g m e n t s 7 LIMIREL LIMIDEL /frequency\ uPPer /value 7 / v lower a l u e \ SENTER SENTERT /frequency\ 5-278 Programming Commands /ompIitude\
LIMILO Lower Limit LIMILO Lower Limit Allows you to specify a fixed trace as the lower limit line. Syntax XLIMILO Related Commands: IF’, LIMIDEL, LIMIFAIL, LIMISEG, LIMITEST, SENTER. Example 10 20 OUTPUT 718;"TRDEF M,ASK,401;" OUTPUT 718;"MOV M~ASK[1,100],1000;" 30 40 50 60 OUTPUT 718;"MOV M~ASK[101,200],2000;" OUTPUT 718;"MOV M,ASK[201,300],3000;" OUTPUT 718;"MOV M~ASK[301,401],4000;" OUTPUT 718;"LIMILO M-ASK;" Specifies M-ASK as the lower limit line.
LIMIMIRROR Mirror Limit Line Reflects the current definition about the amplitude axis at the largest frequency (for a limit line based on frequency) or the largest sweep time (for a limit line based on the sweep time) in the definition. Syntax Related Commands: LIMILINE, LIMISEG, LIMISEGT, SENTER, SENTERT.
LIMIMODE Limit-Line Entry Mode LIMIMODE Limit-Line Entry Mode Determines whether the limit-line entries are treated as upper amplitude values, lower amplitude values, upper and lower amplitude values, or mid-amplitude and delta values. Syntax Related Commands: LIMILINE, LIMISEG, LIMISEGT, SEGDEL, SENTER, SENTERT.
LIMIMODE Limit-Line Entry Mode Description Use LIMIMODE in conjunction with LIMISEG, LIMISEGT, SENTER, or SENTERT. Specify LIMIMODE UPPER or LIMIMODE LOWER before using LIMISEG or LIMISEGT. Specify LIMIMODE UPLOW or LIMIMODE DELTA before using SENTER or SENTERT. The LIMIMODE command determines whether the limit-line table entries are to be treated separately (upper or lower) or together (upper and lower) when deleting a segment with SEGDEL (see “SEGDEL”).
LIMIREL Relative Limit Lines LIMIREL Relative Limit Lines Specifies whether the current limit lines are fixed or relative. Syntax OFF LIMIREL / ON Related Commands: LIMIDEL, LIMIFT, LIMILINE. Example OUTPUT 718;"LIMIFT FREQ;" OUTPUT 718;"LIMIREL ON;" Selects a limit line based on frequency. SpecQks that the limit line will be relative to the referencelevel and center-frequency settings.
LIMIREL Relative Limit Lines For limit lines that are based on the sweep time: Limit lines that are based on sweep time are always relative to the start time, and the horizontal position of the limit line is not affected by the setting of LIMIREL.
LIMISEG Enter Limit-Line Segment for Frequency LIMISEG Enter Limit-Line Segment for Frequency Adds new segments to the current frequency limit line in either the upper limit line or the lower limit line.
LIMISEG Enter Limit-Line Segment for Frequency Example 10 OUTPUT 718;"IP;SNGLS;CF300MHZ;SPlOOMHZ;RB 3MHZ;" 20 OUTPUT 718;"LIMIDEL;" 30 OUTPUT 718;"LIMIMODE UPPER;" 35 OUTPUT 718;"LIMIFT FRED;" 40 OUTPUT 718;"LIMISEG 250MHZ ,-GODB,FLAT;" 50 60 70 80 90 100 OUTPUT 718;"LIMISEG 290MHZ,-60DB,SLOPE;" OUTPUT 718;"LIMISEG 295MHZ,-15DB,FLAT;" OUTPUT 718;"LIMISEG 305MHZ,-15DB,SLOPE;" OUTPUT 718;"LIMISEG 3lOMHZ,-GODB,FLAT;" OUTPUT 718;"LIMISEG 910MHZ,-60DB,FLAT;" OUTPUT 718;"LIMIMODE LOWER;" 110 OUTPUT
LIMISEG Enter Limit-Line Segment for Frequency n POINT specifies a limit value for the coordinate point, and no other frequency points, so that a POINT segment specifies a limit value for a single frequency. For an upper limit line, a POINT segment is indicated by a line drawn from the coordinate point, to a point that is vertically off the top of screen. For a lower limit line, a POINT segment is indicated by a line drawn from the coordinate point, to a point that is vertically off the bottom of screen.
LIMISEGT Enter Limit-Line Segment for Sweep Time Adds new segments to the current sweep time limit line in either the upper limit line or the lower limit line. Syntax ,- t ime -\ LIMISEGT us \ / g-; / L b p r e d e f i n e d %user-defined % p r e d e f i n e d b ,- v a r i a b l e variable> F u n c t i o n trace element p--J I. , Y p r e d e f i n e d *user-defined Y p r e d e f i n e d Y trace Item Number v a r i a b l e -J d segment / type \ a m p I i t u d e .
LIMISEGT Enter Limit-Line Segment for Sweep Time Example OUTPUT 718;"LIMIDEL;" OUTPUT 718;"LIMIMODE UPPER;" OUTPUT 718;"LIMIFT TIME;" OUTPUT 718;"LIMISEGT OMS,-GODB,FLAT;" OUTPUT 718;"LIMISEGT GMS,-GODB,SLOPE;" OUTPUT 718;"LIMISEGT 8MS,-lSDB,FLAT;" OUTPUT 718;"LIMISEGT llMS,-20DB,SLOPE;" OUTPUT 718;"LIMISEGT 14MS,-GODB,FLAT;" OUTPUT 718;"LIMISEGT 20MS,-GODB,POINT;" OUTPUT 718;"LIMIMODE LOWER;" OUTPUT 718;"LIMISEGT OK,-75DB,FLAT;" OUTPUT 718;"LIMISEGT 20MS,-75DB,POINT;" OUTPUT 718;"LIMITEST 0N;TS;" OUTPUT 7
LIMISEGT Enter Limit-Line Segment for Sweep Time n POINT specifies a limit value for the coordinate point, and no other sweep time points, so that a POINT segment specifies an amplitude value for a single sweep time. For an upper limit line, a POINT segment is indicated by a line drawn from the coordinate point, to a point that is vertically off the top of the graticule area.
LIMITEST Enable Limit Line Testing LIMITEST Enable Limit Line ‘&sting Compares trace A with the current limit-line data. Syntax XLIMITEST Preset State: LIMITEST OFF. Related Commands: LIMIFAIL, LIMIHI, LIMILO, LIMISEG, LIMISEGT, SENTER, SENTERT. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
LIMITEST Enable Limit Line Testing Description A test is made of the data in TRA (trace A), and the result can be read, using LIMIFAIL, after each sweep.
LINFILL Line Fill LINFILL Line Fill Fills linear interpolated data into the specified trace data points of a destination trace.
LINFILL Line Fill Description/Default Item User-defined variable R-f& A variable deEned by VARDEF or ACTDEF commands. Predefined variable A command that acts as a variable. Refer to ‘lhble 5-1. Predefined Function that returns a value. Refer to ‘lhble 5-l. function Trace element An element of trace A, trace B, trace C, or a user-defined trace. Number Any valid integer number. Any valid variable name.
LN Linear Scale LN Linear Scale Specifies the vertical graticule divisions as linear units, without changing the reference level. Syntax ( LN Equivalent Softkey: SXLE LOG LIN (when LIN is underlined). Related Commands: LG, RL. Example OUTPUT 718*"LN*" OUTPUT 718;"LN;RL 30MV;" Selects linear mode. Description The LN command scales the amplitude (vertical graticule divisions) proportionally to the input voltage, without changing the reference level.
LOAD Load Loads a file from the memory card. Syntax r f i l e 7 del Imi ter c h a r a c t e r del i m i t e r LOAD n a m e f/ r t r a c e d e s t i n a t i o n u s e r - d e f i n e d \ t r a c e J Description/Default Item XLOAD R=t3e Any valid file name. Character Any valid character. Delimiter Matching characters marking the beginning and end of the list of - ) \ @ = / ^ $ % ; ! ’ : ” & spectrum analyzer commands. Equivalent Softkey: LOAII FILE.
LOAD Load File name: You must supply the file name of the file to be loaded. When specifying the file name, be sure to include the lowercase letter that indicates the data type, because the result of the LOAD operation is dependent on the data type. (For example, the “d” in “dM-YPROG” indicates the file type is for a downloadable program.) The lowercase letters correspond to the data type as shown in the following table.
LOG Logarithm ‘E&es the logarithm (base 10) of the source, multiplies the result by the scaling factor, then stores it in the destination.
LOG Logarithm Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF when using a user-defined variable. TS when using trace data. Related Commands: EXP. Example 1 Initializes spectrum analyzer Dt$nes a user-de$ned variable, called P-OWE& and sets it equal to 0. OUTPUT 718;"LOG P,OWER,S,lO;" P-OWER = 10x LOG(5) OUTPUT 718;"P,OWER?;" Returns value to computer: ENTER 718;N Assigns value to computer variable. DISP USING "D.DD,K";N;" dB" Displays value on the computer screen.
LOG Logarithm Description The scaling factor may be used to improve numerical computations when calculating logarithms of integer trace data. For example, the log of a trace value of 8000 is 3.9, which would be stored as the value 4 in a trace. The log of trace value of 1 is 0, so the log of a trace containing values from 1 to 8000 would be compressed to values 0, 1, 2, 3, 4. Computational accuracy can be improved by using the scaling factor to scale up the log values before they are stored.
LSPAN Last Span LSPAN Last Span Changes the spectrum analyzer’s span to the previous span setting. Syntax LSPAN Equivalent Softkey: LAST SPAN .
MDS Measurement Data Size Specifies measurement data size as byte or word. Syntax c Related Commands: MKA, TDF, TRA. Preset State: W. Example These commands transfer trace A in binary, 2 bytes per word. INTEGER TRACE-A (1:401) OUTPUT 718;"SNGLS;TS;" OUTPUT 718;"TDF B;MDS W;TRA?;" ENTER 7 18 USING 'I#, 40 1 ( W) II ; TRACE-A (* > PRINT TRACE-A(*) Declares variable, Trace-A. Activates single-sweep, updates trace A. Reads trace A in “word” form&. Fbmu~ts trace A output using data size of one word.
MDS Measurement Data Size For this data, the contents of the LSB would contain the binary representation for 120. Contents of the LSB 0 1 1 1 0 0 1 0 How data is represented with MDS B: When data is sent with MDS B, the trace data is converted into one byte as follows: H The trace element’s amplitude (in measurement units) is divided by 32. The binary representation of the result is placed into one byte.
MDU Measurement Data Units Returns values for the spectrum analyzer baseline and reference level. Syntax Related Commands: TDF. Example 10 OUTPUT 718;"IP;TDF M;" 20 OUTPUT 718;"RL -1ODM;" 9 , * 30 OUTPUT 718*"MDU'*" 40 ENTER 718;A,B,C,D,A$ 50 PRINT A,B,C,D,A$ 60 END Initializes the spectrum analyzer and formats the trace data in measurenxent units. Changes the refwertce level to -10 dBm. Queries the position of the spectrum analyzer baseline and reference level.
MDU Measurement Data Units Query Response base1 i n e reference bosel i n e reference QMDU Programming Commands 5-305
MEAN Trace Mean Returns the mean value of the given trace in measurement units. Syntax ,- s o u r c e -\ MEAN F PreZef ined function path only b u s e r - d e f i n e d Item t r a c e / Description/Default User-defined trace A trace defined by the TRDEF command Trace Range A segment of trace A, trace B, trace C, or a user-defined trace. Range Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
MEANTEI Trace Mean Above Threshold MEANTH Trace Mean Above Threshold Returns the mean value of the given trace above the threshold, in measurement units. Syntax ,-- source -, MEANTH b f / Pretef ined f u n c t i o n p a t h o n l y $ u s e r - d e f i n e d b Item trace t r a c e range / / Description/Default Range User-dellned trace A trace defined by the TRDEF command Trace Range A segment of trace A, trace B, trace C, or a user-defined trace. Any valid trace name.
MEANTH Trace Mean Above Threshold Description MEANTH returns the mean value of the trace above the threshold; MEAN returns the mean value of the trace, regardless of the threshold level. MEANTH returns a “0” if there is not a signal above the threshold. Use TH (threshold) to set the threshold level. Query Response output t e r m i n a t i o n --+ 5.
MEASOFF’ Measurement Off MEASOFF Measurement Off Turns off the current measurement, erases the display, and then displays the MEAS/USER menu. Syntax Equivalent Softkey: MEBS OFF . Related Commands: ACP, ACPE, ACPGRAPH, CHP, OBW. Example OUTPUT 718;"MEASOFF;" lbns ofl the current measurement.
MEASURE Measure Mode Determines what kind of measurements the spectrum analyzer makes: signal analysis, stimulus response, or signal normalization. Syntax XMEASURE Option Required: Option 010 or 011. Related Commands: Commands affecting amplitude, such as AUNITS, DL, INZ, LN, MKA, MKREAD, MKRL, RL, RLPOS, ROFFSET, TH. Preset State: MEASURE SA. Example Activate the tracking-generator source output. OUTPUT 718;"MEASURE SR;" OUTPUT 718;"SRCPWR -1ODM;" Sets spectrum anul~z43r to stimulus-response mode.
MEASURE Measure Mode During this relative-amplitude mode, the following parameters are in dB: Trace data (TRA, TRB, TRC). w Display line (DL). n Threshold (TH). n Marker amplitude (MKA). n “MEASURE NRM;” recouples the sweep time for accurate signal analysis measurements. If AMB ON or AMBPL ON and RLPOS are executed, MEASURE NRM activates the reference level position. See “RLPOS” for more information about changing the reference level position.
MEM Memory Available Returns the amount of spectrum analyzer memory available. Syntax f u n c t i o n p a t h o n l y XMEM Related Commands: ACTDEF, DISPOSE, ERASE, FUNCDEF, LOAD, ONDELAY, ONEOS, ONTIME, ONSRQ, ONSWP, TRCMEM, TRDEF, TRMATH, VARDEF. Example 10 OUTPUT 718*"MEM'*" Queries the amount of user-allotted memory available. 20 ENTER 718;iow-m;:h-memory Sends response from spectrum analyzer to the computer. 30 DISP How-much-memory Displays the amount of available memory.
MENU Menu MENU Menu Selects and displays the softkey menus on the spectrum analyzer screen. Syntax MENU Item Number Description/Default Range Any valid integer number. 1, 101 to 200. Related Commands: DISPOSE, ERASE, KEYDEF, KEYLBL, SAVEMENU. Example 1 OUTPUT 718;"MENU 1;" Displays menu 1 on the spectrum analyzer screen.
MENU Menu Description When using the KEYDEF, KEYENH, or KEYCMD commands, you need to specify the softkey number. The softkey number corresponds to the menu number as follows: softkey number = (menu number - 1) x 6 + softkey position (The softkey position range is 1 through 6.) For example: Menu 1 contains softkey numbers 1 through 6 Menu 101 contains softkey numbers 601 to 606 Menu 200 contains softkey numbers 1195 to 1200 Menu 1 can be accessed by pressing C-J, User IIenus .
MERGE Merge Two Traces MERGE Merge Two Traces Merges the source trace into the specified area of the destination trace.
MERGE Merge Two Traces Example OUTPUT 718;"MERGE TRC,l,200,TRA,200;" Merges trace A into trace C. The trace A elements 200 through 399 are merged into trace C elements 1 through 200. Description MERGE copies the trace data from the source trace, starting at the specified trace element, into the specified trace elements of the destination trace. MERGE differs from CONCAT because MERGE does not need the trace range of the source to be specified.
MF’ Marker Frequency Output MF Marker Frequency Output Returns the frequency (or time) of the on-screen active marker. Syntax XMF Related Commands: MA, MKA, MKCF, MKD, MKF, MKN, MKPK, MKREAD. Example Connect CAL OUT to the spectrum analyzer input. OUTPUT 718;"IP;SNGLS;" Initializes the spectrum analy~ activates singlesweep mode. OUTPUT 718;"FA 280MHZ;FB 320MHZ;TS;" Sets up the measurement range. Places marker on peak of calibrator signal.
MF Marker Frequency Output Example 2 OUTPUT 718;"TDF A;MDS B;MF;" Returns one byte representing the marker position. The byte can assume values 1 to 101. OUTPUT 718;"TDF A;MDS W;MF;" Returns two bytes in a binary word format that has a value from 1 to 401. If the trace data format is used with trace data format M, the result is the marker horizontal position value, from 1 to 401, in ASCII.
MIN Minimum MIN Minimum Compares source 1 and 2, point by point, and stores the lesser of the two in the destination. Syntax - d e s t inot i o n % u s e r - d e f i n e d b t r a c e range b p r e d e f i n e d u s e r - d e f i n e d Item t r a c e v a r i a b l e / / I variable/ Description/Default Range User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
MIN Minimum Example 10 20 30 40 OUTPUT 718;"IP;" OUTPUT 718*"SNGLS*" OUTPUT 718;"VARDEi M,INIMUM,O;" OUTPUT 718;"TS;MKPK HI;"; 50 OUTPUT 718;"MIN M-INIMUM,MKA,-20;"; 60 OUTPUT 718;"M,INIMUM?;" 70 ENTER 718;Number 80 DISP Number 90 END Initializes spectrum analyzer: Activates the single-sweep mode. &y%.es vam’able with an initial value of 0. Sweeps trace A and places the marker at the highest peak. Compares the marker amplitude to -20 dBm. Stores the lesser of the two in MINIMUM.
MINH Minimum Hold MINH Minimum Hold Updates trace C with the minimum level detected. Syntax MINH Equivalent Softkey: MII? HOLD C . Related Commands: BLANK, CLRW, MXMH, VAVG, VIEW. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718;"CLRW TRC;CONTS;" OUTPUT 718;"MINH TRC;" Clears trace C and begin taking data. Updates trace C with the minimum level detected.
MINPOS Minimum Position Returns a value, which is the x-axis position (in display units) of the minimum amplitude value in trace A, trace B, trace C, or user-defined trace. Syntax MI NPOS b u s e r - d e f i n e d L trace t r a c e range I / XMINPOS Description/Default Item User-defined trace A trace defined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Range Any valid trace name.
MIRROR Mirror Image MIRROR Mirror Image Displays the mirror image of the trace. Syntax r d e s t i n a t i o n t r a c e M I RROR b u s e r - d e f i n e d b t r a c e - s o u r c e range / / t r a c e user-defined Item t r a c e trace Description/Default Range User-defined trace A trace defined by the TRDEF command. Any valid trace name. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Prerequisite Commands: TRDEF when using a user-defined trace.
MIRROR Mirror Image Description The MIRROR command stores the mirror image (with respect to the frequency axis) of a source trace in a destination trace. When the source is longer than the destination, the source is truncated to fit. When the source is shorter than the destination, the last element is repeated to fill the destination.
MKA Marker Amplitude MKA Marker Amplitude Specifies the amplitude of the active marker in the current amplitude units when marker type is of fixed or amplitude type. When queried, MKA returns the marker amplitude independent of marker type. Syntax ompl i t u d e MKA XMKA Description/Default Item Number Any real or integer number. Unit is current amplitude type. R-fxe Amplitude range of spectrum analyzer. Step Increment: by 1 dB. Related Commands: AUNITS, AUTO, MA, MKD, MKN, MKTYPE, TDF.
MKA Marker Amplitude Example OUTPUT 718;"TDF P;AUNITS DBM;MKA?;" This returns the amplitude value of the marker (amplitude unit is dBm). If the trace data format is used with trace data format A, the result depends on the setting of the MDS command. Example OUTPUT 718;"TDF A;MDS B;MKA?;" OUTPUT 718;"TDF A;MDS H;MKA?;" Returns one byte representing the marker vertical position (-32,768 to 32,767) divided by 32 and then AhDed with 255.
MKACT Activate Marker MKACT Activate Marker Specifies the active marker. Syntax marker Item Range Description/Default I Number Any valid integer. Default value is 1. 1 to 4. Equivalent Softkey: SELECT I 2 3 4 . Related Commands: MA, MKA, MKF. Example OUTPUT 7 18 ; "MKACT 4 ; ‘I Marker 4 becomes marker 1. Description There can be four different markers, but only one marker can be active at any time.
MKACTV Marker As the Active Function Makes the current active marker the active function. Syntax MKACTV Equivalent Softkey: MKACTV is equivalent to turning on a marker with MAItKER ON OFF (ON is underlined). Related Commands: MKACT, MKN, MKTYPE. Example OUTPUT 7 18 - “MKACT 2 - ” OUTPUT 7 18 ; “MKACTV ; ’ Makes marker number 2 the active marker: Makes marker number 2 the active fin&ion.
MKBW Marker Bandwidth MKBW Marker Bandwidth Returns the bandwidth at the specified power level relative to an on-screen marker (if present) or the signal peak (if no on-screen marker is present). Syntax Pre’def i ned f u n c t i o n p a t h o n l y Item Number Description/Default Any valid negative integer. Range 0 to the amplitude of the noise floor. Example OUTPUT 718.
MKCF Marker to Center Frequency Sets the center frequency equal to the marker frequency and moves the marker to the center of the screen. Syntax MKCF Equivalent Softkey: NARKHH -> CF. Related Commands: CF, MKF. Example This example provides a quick way to center the desired frequency on the spectrum analyzer screen. 10 OUTPUT 718;"IP;SP 1MHZ;SNGLS;" 20 INPUT "ENTER IN DESIRED STATION FREQUENCY, IN MHZ”, Freq 30 OUTPUT 718.
MKCONT Marker Continue MKCONT Marker Continue Resumes the sweep after execution of a MKSTOP command. Syntax MKCONT Related Commands: MKSTOl? Example 10 OUTPUT 718."IP*TS*" 20 OUTPUT 718;"MK;K I&' 30 OUTPUT 718;"MKSTOP;" 40 OUTPUT 718; "MKCONT;" 50 END Initializw spectrum aruzljgxx Creates an active marker: Stops sweep at marker: Resumessweep.
MKD Marker Delta Activates the delta marker. Syntax / f r e q u e n c y value \ XMKD Item Number Description/Default Any real or integer number. Default unit is Hz, default value is value of the active marker. Range Start frequency to stop frequency of spectrum analyzer. Equivalent Softkey: MARXXR h . Step Increment: by l/10 of the frequency span. Related Commands: AUTO, MA, MKCF, MKF, MKN, MKSP, MKSS, MKPK.
MKD Marker Delta Description The MKD command computes the frequency and amplitude difference of the active marker and a special marker, called the delta or differential marker. These values are displayed in the display readout. The differential value of the frequency is equal to the active marker frequency minus the delta marker frequency. The differential value of the amplitude is equal to the active marker amplitude minus the delta marker amplitude.
MKDLMODE Marker Delta Display Line Mode When the marker table is turned on, MKDLMODE selects if the marker amplitude values are shown as relative to the reference level (normal mode) or relative to the display line (delta mode). Syntax norma I XMKDLMODE Equivalent Softkey: TABLE ADL NRM . Preset State: 0 (normal mode). Related Commands: DL, MKTBL. Example OUTPUT 718;"MOV MKTBL,l;" OUTPUT 718;"DL -20;" OUTPUT 718;"MOV MKDLMODE,l;" Turns on the marker table. Sets the display line.
MKDLMODE Marker Delta, Display Line Mode Query Response de t a OMKDLMODE Programming Commands 5-335
MKF Marker Frequency Specifies the frequency value of the active marker. Syntax \ HZ / KHZ MHZ GHZ &-; +F--) . . .
MKF Marker Frequency Example OUTPUT 718;"TDF P;MKREAD FRQ;MKF?;" OUTPUT 718;"TDF P;MKREAD FRQ;MKF?;" OUTPUT 718;"TDF P;MKREAD PER;MKF?;" OUTPUT 718;"TDF P;MKREAD SWT;MKF?;" OUTPUT 718;"TDF P;MKREAD IST;MKF?;" OUTPUT 718;"TDF P;MKREAD FFT;MKF?;" This returns a frequency value (in Hz) if not in zero-span. This returns a time value (in seconds) if in mospan. This returns the time value (in seconds) of l/(mrker frequen4.d. This returns the marker time value (in seconds).
MKFC Marker Counter Turns on or off the marker frequency counter. Syntax Equivalent Softkey: MK lCW?T ON OFF . Model Required: HP 85913, HP 85933, HP 85943, HP 85953, HP 85963, or HP 85901, with Option 013. Related Commands: MKFCR, MKN. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Not available with the marker table (MKTBL).
MKFCR Marker Counter Resolution MKFCR Marker Counter Resolution Sets the resolution of the marker frequency counter. Syntax ‘. -.: j- r e s o l u t i o n -\ HZ XMKFCR Number Range Description/Default Item Any real or integer number. Default unit is Hz. 0 Hz to 100 kHz. Equivalent Softkey: CNT RES AUXI NAN . Model Required: HP 85913, HP 85933, HP 85943, HP 85953, HP 85963, or HP 8590L with Option 013. Preset State: Marker counter resolution is set to AUTO.
MKFCR Marker Counter Resolution Description Executing either “MKFCR 0;” or “MKFCR AUTO; n auto-couples the marker counter resolution to the frequency span.
MKMIN Marker Minimum MKMIN Marker Minimum Moves the active marker to the minimum value detected. Syntax Related Commands: MKPK, SMOOTH, TH, VAVG.
MKN Marker Normal Activates and moves the marker to the specified frequency. Syntax MKN Item Number Description/Default Any real or integer number. Default unit is Hz. Default value is the center frequency of the spectrum analyzer. Equivalent Softkey: WWER NORMAL . Step Increment: by l/10 of the frequency span. Related Commands: AUTO, DEMOD, MKA, MKD, MKF, MKPK. 5-342 Programming Commands R=ae Start frequency to stop frequency of spectrum analyzer.
MKN Marker Normal Example 10 INPUT "ENTER IN THE START FREQUENCY, IN MHZ",Start-freq 20 INPUT "ENTER IN THE STOP FREQUENCY, IN MHZ",Stop-freq 30 OUTPUT 718;"IP;FA ";Start-freq;"MHZ" Initial&s spectrum analyzer and changes the start frequency. 40 OUTPUT 718;"FB ";Stop-freq;"MHZ" Changes the stop frequency. 50 OUTPUT 718; “MKN EK;” Enables the front-panel knob.
MKNOISE Marker Noise Displays the average noise level at the marker. Syntax Restrictions: Not available with the marker table (MKTBL). Equivalent Softkey: MK HfXSE ON OFF . Related Commands: MKA, MKF, MKMIN, MKN.
MKNOISE Marker Noise Description The marker value is normalized to a l-Hz bandwidth. Use “MKA?; ” to read the noise marker value. The noise marker averages 32 trace data values about the location of the marker on the frequency or time scale. The 32 values averaged, except for the first 15 or last 14 values in the trace, commence with the 16th point to the left of the marker, and end with the 15th point to the right of the marker.
MKOFF Marker Off Turns off either the active marker or all the markers. Syntax Equivalent Softkey: IURKEB ALL OFF . Related Commands: MKA, MKACT, MKACTV, MKCF, MKD, MKF, MKN, MKPK. Example OUTPUT 718;"MKOFF ALL;" Turn.s oflall the on-screen markers. Description If the ALL parameter is omitted, only the active marker is turned off.
MKP Marker Position MKP Marker Position Places the active marker at the given x-coordinate. Syntax x c o o r d i n a t e p r e d e f i n e d b u s e r - d e f i n e d % p r e d e f i n e d b v a r i a b l e v a r i a b l e / f u n c t i o n / t r a c e e l e m e n t J XMKP Item Number User-defined variable Description/Default Range Any valid integer. -401 to 401. A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
MKP Marker Position Query Response o u t p u t t e r m i n a t i o n 5-348 Programming Commands ---)
MKPAUSE Marker Pause MKPAUSE Marker Pause Pauses the sweep at the active marker for the duration of the delay period. Syntax Item Number Range Description/Default Any real or integer number. 2msto 100s. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Not available with negative peak detection. Equivalent Softkey: MK PAUSE ON OFF. Step Decrement: Time value divided by 2. Step Increment: Time value multiplied by 2.
MKPAUSE Marker Pause Query Response output t e r m i n a t i o n 5-350 Programming Commands +
MKPK Marker Peak MKPK Marker Peak Positions the active marker on a signal peak. Syntax MKPK Equivalent Softkey: NEXT PEAK , NEXT PK RIGHT, I?EXT PK LEFT, and Related Commands: MKCF, MKF, MKOFF, MKPX, TH. [PEAK SEARCH]. Example 10 20 30 40 OUTPUT 718;"IP;" OUTPUT 718;"SNGLS;TS;MKPK HI;" OUTPUT 718;"MKA?;" ENTER 718;A 50 DISP A 60 END Initializes the spectrum analyzer: Places active marker on highest peak.
MKPX Marker Peak Excursion Specifies the minimum signal excursion for the spectrum analyzer’s internal peak-identification routine. Syntax 7 ompl itude v a l u e 7 DE Item Number Description/Default Any real or integer number. Default unit is dB. R-f3e Oto 100dB. Equivalent Softkey: PEAK EXCUWN . Preset State: 6 dB. Step Increment: by 1 dB. Related Commands: MKPK, PEAKS.
MKPX Marker Peak Excursion Query Response Programming Commands 5-353
MKREAD Marker Readout Selects the type of active trace information displayed by the spectrum analyzer marker readout. Syntax ( M K R E A D ‘r XMKREAD Equivalent Softkey: I4K HEAl F T I P provides the marker readouts in the frequency, sweep time, inverse sweep time, and period. The fast Fourier transform readout is not available with the softkey, however. Related Commands: FFT, MKF, MKTYPE.
MKRRAD Marker Readout MKREAD Type Non-Zero Span Zero Swn Non-Zero Span Delta Zero Span Delta FRQ Reads frequency Reads delta frequency Reads time Reads delta time SWT Reads time since the start of sweep Reads delta time between end points Waveform measurements of detected modulation Waveform measurements of detected modulation IST N/A N/A N/A Computes frequency corresponding to delta of markers.
MKRL Marker to Reference Level Sets the reference level to the amplitude value of the active marker. Syntax MKRL Equivalent Softkey: #ARKER -2 REF LVL . Related Commands: MKOF'F', RL. Example 10 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;" 20 OUTPUT 718;"TS;MKPK HI;MKRL;TS;" 30 OUTPUT 718;"RL?;" 40 ENTER 718 USING "K";Ref-level Initializes spectrum an&y- changes center frequency and span. Places a marker on trace peak, sets the reference level to the amplitude of the active markq updates the sweep.
MKSP Marker to Span MKSP Marker to Span Sets the start and stop frequencies to the values of the delta markers. Syntax MKSP Equivalent Softkey: MKl3 B -> SPAN. Related Commands: MKD, SI? Example 10 20 30 40 50 OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT 60 END 718;"IP;" 718*"MKMIN-" 718;"MKD;"' 718;"MKPK HI;" 718;"MKSP;" Initializes spectrum analyzer Places a marker at the minimum amplitude of trace. Activates marker delta. Places marker at highest amplitude of trace.
MKSS Marker to Step Size Sets the center-frequency step-size to the marker frequency. Syntax MKSS Equivalent Softkey: MARKER -2 CF STEP . Related Commands: CF, MKA, MKCF, MKD, MKF, SS. Example This example measures a harmonic of the CAL OUT signal. 10 DISP "CONNECT THE CAL OUT TO THE INPUT" 20 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;TS;" 30 OUTPUT 718;"MKPK HI;MKSS;MKD;CF UP;TS;MKPK HI;" 40 OUTPUT 718;"MKA?;" 50 ENTER 718;Delta,amp , 9 * 60 OUTPUT 718."MKF'.
MKSTOP Marker Stop MKSTOP Marker Stop Stops the sweep at the active marker. Syntax Related Commands: MKCONT. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example 10 OUTPUT 718;"IP;TS;" 20 OUTPUT 718;"MKPK HI;" 30 OUTPUT 718;"MKSTOP;" 40 OUTPUT 718;"MKCONT;" 50 END Initializes spectrum analyzer Creates an active marker: Stops sweep at markex Resumes sweep.
MKTBL Marker ‘Ihble Turns on or off the marker table. Syntax t a b l e 7 o f f - Equivalent Softkey: ?4K TABLE ON OFF . Preset State: 0 (marker table is off). Related Commands: DL, MKDLMODE. Example OUTPUT 718;“MOV MKTBL,l;” Turns on the marker table. Description When the marker table is turned on, the spectrum analyzer screen displays two windows. The upper window displays the traces and the graticule, and the lower window displays the marker table.
MKTBL Marker ‘able Restrictions Turning on the marker table turns off following functions: windows display mode (WINON), N dB point measurement (NDBPNT), the FFT menu measurements (FFTAUTO, FFTCONTS, FFTSNGLS), gate utility functions (GDRVUTIL), TO1 measurement (TOI), peak table (PKTBL), percent AM (PCTAM), peak zoom (PKZOOM), and power menu measurements (ACP, ACPE, CHP, and OBW). Marker noise (MKNOISE) and marker counter (MKFC) are not available with the marker table.
MKTRACE Marker Trace Moves the active marker to a corresponding position in trace A, trace B, or trace C. Syntax XMKTRACE Equivalent Softkey: HK TRACE hUTi ABC. Example 10 OUTPUT 718;"IP;" 20 OUTPUT 718 *“MKMIN*” 30 OUTPUT 718;"MKTRAbE TRB;" 40 OUTPUT 718;"BLANK TRA;CLRW TRB;" 50 END Query Response 5-362 Programming Commands Initializes spectrum analyzer Finds the lowest amplitude of trace.
MKTRACK Marker Track MKTRACK Marker Track Moves the signal on which the active marker is located, to the center of the spectrum analyzer display and keeps the signal peak at center screen. Syntax OFF / ON XMKTRACK Equivalent Softkey: MF TRACK ON OFF . Related Commands: MKA, MKCF, MKF’. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
MKTYPE Marker Type Changes the type of the current active marker. Syntax / Equivalent Softkey: The functions of MKTYPE AMP and MaRKER AMPTD are equivalent. Preset State: MKTYPE PSN. Related Commands: MKA, MKBW. Example OUTPUT 718;"MKTYPE AMP;MKA -5;" Fbsitiom the marker at -5 dBm. Description The marker types are as follows: PSN allows markers to be positioned according to the horizontal position on the display. The marker type is set to PSN after an instrument preset.
ML Mixer Level ML Mixer Level Specifies the maximum signal level that is applied to the input mixer for a signal that is equal to or below the reference level. Syntax Item Number Description/Default Any real or integer number. Default unit is dBm. R-f+ -10 to -60 dBm. Equivalent Softkey: HAX MXR LEVEL . Preset State: -10 dBm. Step Increment: by 10 dBm. Related Commands: AT, ROFFSET.
MOD Modulo MOD Modulo Stores the remainder from the division of source 1 by source 2 in the destination. Syntax - d e s t inot i o n h u s e r - d e f i n e d b trace b p r e d e f i n e d buser-defined t r a c e range v a r i a b l e / / I variable/ XMOO Item Description/Default Range User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
MOD Modulo Example 10 OUTPUT 718;"VARDEF S_ONE,l5;" 20 OUTPUT 718;"VARDEF S_TW0,4;" 30 OUTPUT 718;"VARDEF D,EST,O;" 40 OUTPUT 718;"MOD D,EST,S-ONE,S-TWO;" 50 OUTPUT 718;"D_EST?;" 60 ENTER 718;Number 70 DISP Number 80 END Places 15 into S-ONE. Places 4 into S-TWO. D-EST holds the result. Moves the result to the computer: Puts the spectrum analyzer response in the computer variable, Number: Displays a 3.
MODE Mode MODE Mode Returns a “0” if the mode of operation is spectrum analysis. A number other than “0” is returned if the operating mode is other than spectrum analysis. Syntax MODE Example OUTPUT 7 18 ; “MODE? ; ” Description All spectrum analyzers have the spectrum analyzer mode of operation.
MOV Move Copies the source values into the destination. Syntax 7 d e s t i n a t i o n Item Description/Default Range User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name. variable Predehned variable A command that acts as a variable. Refer to ‘fable 5-l. Predeflned function Function that returns a value. Refer to Table 5-l.
MOV Move Example 10 CLEAR 718 20 OUTPUT718.“IP-” 30 OUTPUT7181”FA’lOOMHZ;FB 1100MHZ;” 40 OUTPUT 718;“TS;MKPK HI;” 50 OUTPUT 718; “DL ON; ” 60 OUTPUT 718;“MOV DL,MKA;” Clears the HP-IB bus and spectrum analyzxx Initializes spectrum analyzer Sets up the measurement range. Places a marker at the highest peak. Turns on display line. Sets the display-line value equal to the marker amplitude by storing the value of the marker amplitude variable, MKA, in the display line variable, DL.
MPY Multiply Multiplies the sources, point by point, and places the results in the destination.
MPY Multiply Example OUTPUT 718 ; "MPY CF , CF ,2 ; I' Doubles the centerfrequency. Description Traces, user-defined traces, and trace ranges are multiplied as 16-bit integers. Negative numbers are represented in two’s complement format. ,Single variables and numbers are treated as floating point numbers and must be within the real number range as defined in Table 5-l. When the source is longer than the destination, the source is truncated to fit.
MS1 Mass Storage Is Allows you to specify the current mass storage device as the spectrum analyzer memory or a memory card. Syntax Related Commands: CAT, SAVRCLN. Example OUTPUT 718 ; “MS1 CARD ; ‘I Selects the memory card as the current wmss storage dewice. Description If you specify INT, the current mass storage device is set to spectrum analyzer memory. If you specify CARD, the current mass storage device is set to the memory card.
MXM Maximum MXM M2lXhU.In Compares source 1 and source 2, point by point, sending the greater value of each comparison to the destination. Syntax 7 d e s t i n a t i o n - predefined variable I I I I J ----- 1 L&xl. User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable defined by VARDEF or ACTDEF commands. Any valid variable name. variable Predeflned variable A command that acts as a variable. Refer to Table 5-l.
MXM Maximum Example 10 OUTPUT 718;"IP;" 20 OUTPUT 718;"CF 300MHZ;SNGLS;" 30 OUTPUT 718;"TS;VIEW TRA;" 40 OUTPUT 718;"MXM TRB,TRA,4000;" 50 OUTPUT 718;"BLANK TRA;VIEW TRB;" 60 END Initializes spectrum analyzer Changes the centerfrequency and activate singlesweep mode. Updates trace. Displays and stores the results of trace A. Moves elements of trace A that exceed 4OUO trace data points (above center screen) to trace B Displays result.
MXMH Maximum Hold MXMH Maximum Hold Updates each trace element with the maximum level detected. Syntax MXMH Equivalent Softkeys: l4A% fiOLD A and MAX HOLD B . Related Commands: BLANK, CLRW, MINH, VAVG, VIEW. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718;"MXMH TRA;" Description MXMH updates the specified trace (either trace A or trace B) with a new value from a detector only if the new value is larger than the previous trace data value.
M4 Marker Zoom Activates a single marker on the trace and enables the knob to change the position of the marker. When changing the frequency span, M4 keeps the marker at center frequency. Syntax XM4 Description/Default Item Number Any real or integer number. Step Decrement: Span divided by 2. Step Increment: Span multiplied by 2.
M4 Marker Zoom Description Used with a marker on the signal peak or at a position of interest, M4 keeps the marker at center screen while the frequency span is decreased.
NDB Number of dB Specifies the distance (in dB) from the signal peak for the N dB points measurement (NDBPNT). Syntax dB f r o m XNDB Description/Default Item Number Rw!e Any negative real or negative integer number. Default unit is dB. - 1 to -80 dB. Preset State: -3 dB. Related Commands: MKBW, MKPX, NDB, NDBPNT, NDBPNTR, TH. Restrictions: Not available for the windows display mode.
NDBPNT N dB Points NDBPNT N dB Points Turns on or off the N dB points function. Syntax XNDBPNT Equivalent Softkey: # d3 PTS ON OFF. Related Commands: MKBW, MKPX, NDB, NDBPNTR, TH. Example This example finds the shape factor of a signal. OUTPUT 718;"MOV NDBPNT,l;" OUTPUT 718;"NDB -6DB;" OUTPUT 718.
OUTPUT 718;“MOV NDBPNT,O;” Turns off the N dB points memr-t. Description Setting NDBPNT to 1 turns on the N dB points measurement. Setting NDBPNT to 0 turns off the N dB points measurement. When the NdB points function is turned on, the spectrum analyzer finds the bandwidth, at the number of dB down specified by the NDB command, of the highest on-screen signal.
NDBPNTR N dB Points Bandwidth NDBPNTR N dB Points Bandwidth Returns the bandwidth measured by the N dB points measurement (NDBPT). Syntax NDBPNTR Related Commands: MKPX, NDB, NDBPNT, TH. Example OUTPUT 718;"MOV NDBPNT,l;" OUTPUT 718;"NDB -6DB;" OUTPUT 718;"NDBPNTR?;" ENTER 718;Six Turns on the N dB points measurement. Sets the N dB points measurement to mmsure 6 dB below the signal’s peak. Queries NDBPNTR. NDBPNTR contains the measurement results of the N dB points measurement.
NRL Normalized Reference Level Sets the normalized reference level. Syntax I t e m Number Description/Default I Range Any real or integer number. Default unit is dBm. Preset State: 0 dB. Related Commands: MEASURE, RL, RLPOS.
NRL Normalized Reference Level Description This function is a trace-offset function that enables you to offset the displayed trace without introducing hardware-switching errors into the stimulus-response measurement. The input attenuator and IF step gains are not affected when using NRL. In absolute power mode (dBm), reference level affects the gain and RF attenuation settings of the instrument, which affects the measurement or dynamic range.
OA Output Active Function Value Sends the value of the active function to the controller. Syntax Example 10 OUTPUT 718;"ST 3SC;OA;" 20 ENTER 718;Number 30 DISP Number 40 END Query Response 5-388 Programming Commands Changes the sweep time, activates the OA command. Gets the response from the spectrum analyzer LIispkqys “3” on the computer screen.
OBW Occupied Bandwidth OBW Occupied Bandwidth Performs the occupied bandwidth measurement using the value for occupied bandwidth percent (OBWPCT). For example, if OBWPCT is set to 99 percent, OBW determines the 99 percent power bandwidth. Syntax OBW Equivalent Softkey: OCCUPIED BANDWDTH . Related Commands: ACPPAR, ACPSNGLM, ACPCONTM, ACPSP, OBWPCT.
OBW Occupied Bandwidth OBW Measurement Results units Description Variable or Trace HZ OBWBW A variable that contains the bandwidth measured by OBW. OBWLOWER A variable that contains the relative lower frequency limit of the occupied Hz bandwidth. The lower frequency limit is relative to the center frequency of the spectrum analyzer. The lower frequency limit is equal to the frequency of the lower occupied bandwidth edge minus the center frequency of the spectrum analyzer.
OBWPCT Occupied Bandwidth Percent OBWPCT Occupied Bandwidth Percent Specifies the percent of total power that is to be used in calculating the occupied bandwidth (OBW). Syntax % p e r c e n t / \ f+ Item Number Description/Default R-k3 Any real or integer number. 1% to 99.99%. Equivalent Softkey: OCC l3W % POWER. Initial Value: 99. Preset State: Last value entered. Related Commands: OBW. Example OUTPUT 718;“MOV OBWPCT,SO;” OUTPUT 718; “OBW; ” Sets the occupied bandwidth percent to 50%.
OL Output Learn String Transmits information to the controller that describes the state of the spectrum analyzer when the OL command is executed. Syntax Related Commands: RCLS, SAVES. Example 10 DIM Learn-String$ [202] 20 OUTPUT 718 ; “OL ; ” 30 ENTER 718 USING ‘I# ,202A”; LEARN-STRINGS 40 DISP “CHANGE ANALYZER TO ANOTHER STATE, THEN CONTINUE TO RESTORE FIRST STATE;” 50 PAUSE 60 OUTPUT 718; LEARN-STRING$ Allocates rn-ewmy space for the Learnd3Ping. Asks for first state.
ONCYCLE On Cycle ONCYCLE On Cycle Executes the list of analyzer commands periodically. Syntax u s e r - d e f i n e d v a r i a b l e f corrmands t o / b e e x e c u t e d \ XONCYCLE Description/Default Item Number User-defined variable Range A valid number. 0 to 2,147,483 seconds. A variable defined by VARDEF or ACTDEF commands. Any valid variable name. Delimiter Matching characters marking the beginning and end of the list of - ) \ @ = / ^ $ % ; ! ’ : ” & spectrum analyzer commands.
ONCYCLE On Cycle Description The ONCYCLE command performs the list of spectrum analyzer commands periodically. In contrast, the ONDELAY command performs the list of spectrum analyzer commands once after the elapsed time interval. After the ONCYCLE function has been created, the first execution of the spectrum analyzer commands does not occur until the time value has elapsed. Limit the number of characters (between the delimiters) in the list of spectrum analyzer commands to a maximum of 2047 characters.
ONDELAY On Delay ONDELAY On Delay Executes the list of analyzer commands after the time value has elapsed. Syntax time del i m i t e r u s e r - d e f i n e d v a r i a b l e / comnonds t o / b e e x e c u t e d \ XONDELAY Description/Default Item Number User-defined variable Range A valid number. 0 to 2,147,483 seconds A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
ONDELAY On Delay Description The ONDELAY command performs the list of spectrum analyzer commands once after the elapsed time interval; the ONCYCLE command performs the list of spectrum analyzer commands periodically. Limit the number of characters (between the delimiters) in the list of spectrum analyzer commands to a maximum of 2047 characters. Clearing the ONDEIAY definition: IP clears the ONDELAY definition. You can use the DISPOSE command to clear the ONDELAY definition also.
ONEOS On End of Sweep ONEOS On End of Sweep Executes the contents of the data field after the end of the sweep. Syntax I r s t r i n g d a t a A - b l o c k l - b l o c k a n a l y z e r f i e l d d a t a d a t a f i e l d f i e l d comnond Item 7 character 6% E O I Description/Default Range Delimiter Matching characters marking the beginning and end of the list of - 1 \ @ = I ^ $ % ; ! ’ : spectrum analyzer commands. ”& Analyzer command Any spectrum analyzer command except TS.
ONEOS On End of Sweep Description Restrictions: The list of analyzer commands should not include a take sweep (TS). Limit the number of characters (between the delimiters) in the list of spectrum analyzer commands to a maximum of 2047 characters. The #A, msb length, LSB length, and character data form a A-block data field. The A-block data field is used when the length of the character data is known. The #I, character data, and EOI (END) form and I-block data field.
ONMKR On Marker ONMKR On Marker Performs the list of spectrum analyzer commands when the sweep reaches the marker position. Syntax conmands t o / b e e x e c u t e d a n a l y z e r Item \ comnand Description/Default Rui!e Delimiter Matching characters marking the beginning and end of the list of - ( \ @ - / ^ $ % ; ! ’ : ” & spectrum analyzer commands. Analyzer command Any spectrum analyzer command. Related Commands: CAT, DISPOSE, ERASE, IP, ONCYCLE, ONDELAY, ONEOS, ONSRQ, ONSWP, ONTIME.
ONMKR On Marker Query Response -+( #A msb length a n a l y z e r 43 output termination 5-366 Programming Commands comnand
ONMKRU On Marker Update ONMKRU On Marker Update Executes the Iistofspectrum analyzer commands whenever the value or the units of the active marker are changed. Syntax corrmands t o - b e e x e c u t e d de I imt t e r analyzer - comnond del i m i t e r Related Commands: DISPOSE,IP. Example The following example uses ONMKRU to display the marker's amplitude in watts.
ONMKRU On Marker Update 330 OUTPUT QSa; "SNGLS;TS;" 340 OUTPUT QSa;"MKN;" 350 ! 360 END Takes a sweep. Activates a mm1 wmrkm Description ONMKRU executes the specified user-defined function whenever the value or units of a marker are changed, While ONMKR executes the function when the marker is encountered, ONMKRU executes the function at the end of the sweep (when the marker data is updated), when the marker is moved, or if the units are changed with AUNITS.
ONPWRUP On Power Up ONPWRUP On Power Up Executes the list of spectrum analyzer commands once on power up. Syntax / c o m m a n d s t o / b e e x e c u t e d \ Related Commands: CAT, DISPOSE, ERASE, ONDELAY, ONEOS, ONMKR, ONSWP, ONTIME Example 10 OUTPUT 718;"0NPWRUP! SPlOMZ; CF300MZ;!;" Sets the spectrum analyzer span to 10 MH.. and the center frequency to 3OOMHizuponinstrumentpowwup.
ONSRQ On Service Request Executes the list of analyzer commands whenever a service request occurs. Syntax commands to - b e e x e c u t e d 7 d e l i m i t e r d e l i m i t e r XONSRO Item Analyzer Description/Default Rmife Matching characters marking the beginning and end of the list of - 1 \ @ = / ^ $ % ; ! ’ : spectrum analyzer commands. ” & Delimiter command Any spectrum analyzer command. Related Commands: CAT, DISPOSE, ERASE, IP, ONDELAY, ONEOS, ONMKR, ONSWP, ONTIME, SRQ.
ONSRQ On Service Request Query Response < #A a n a l y z e r comnand OONSRO Programming Commands 5403
ONSWP On Sweep Executes the list of spectrum analyzer commands at the beginning of the sweep. Syntax / r r s t r i n g / d a t a A - b l o c k f i e l d d a t a 7 f i e l d a n a l y z e r cormand / l - b l o c k d a t a f i e l d character Item Delimiter Analyzer & EOI Description/Default Range Matching characters marking the beginning and end of the list of - 1 \ @ = / ^ $ % ; ! ’ : spectrum analyzer commands. ” & command Any spectrum analyzer command except TS.
ONSWP On Sweep Description The list of analyzer commands should not include a take sweep (TS). Limit the number of characters (between the delimiters) in the list of spectrum analyzer commands to a maximum of 2047 characters. The #A, msb length, lsb length, and character data form an A-block data field. The A-block data field is used when the length of the character data is known. To use the A-block data format, #A must precede the msb length and lsb length.
ONTIME On Time Description Limit the number of characters (between the delimiters) in the list of spectrum analyzer commands to a maximum of 2047 characters. Clearing the ONTIME definition: IP clears the ONTIME definition. You can use the DISPOSE command to clear the ONTIME definition also. Query Response /- ,- h o u r s d i g i t , yeor -1 d i g i t m o n t h -, ‘-\ /- m i n u t e s d i g i t msb - day \ d i g i t d i g i t #A - d i g i t .
OP Output Parameter Returns parameter values Pl and P2, which represent the x and y coordinates of the lower-left and upper-right spectrum analyzer display. Syntax C OP Example 10 DIM A$[201 30 OUTPUT 718 ,* “OP’* 9* ” 40 ENTER 718;A$ 50 DISP A$ 60 END Allocates memory space for result. Gets the lower-kfl and the upper-right coordinates of the spectrum analyzer display. Moves result to the computex Dkplays the result.
OUTPUT Output to Remote Port or Parallel Port OUTPUT Output to Remote Port or Parallel Port Allows the spectrum analyzer to send data to other devices via remote or parallel ports. Syntax ,-address.-, OUTPUT predefined user-defined trace N’ variable variable I element - / f / - output doto predefined variable user-defined trace \ / variable element del imi ter delimiter data byte I & EOI xoutput Description/Default Item Rw3e Number An integer number. 0 to 30 (remote port).
OUTPUT Output to Remote Port or Parallel Port Prerequisite Commands: ACTDEF or VARDEF when using a user-defined variable. Related Commands: ENTER, RELHPIB. Example This example assumes that the plotter is at address 5 and the spectrum analyzer is at address 18. (The program is only valid for HP 9000 Series 200 and 300 computers.) The following example uses the spectrum analyzer to send the ASCII code for OP; (output parameter) to the plotter.
OUTPUT Output to Remote Port or Parallel Port Description Use OUTPUT to send data or instructions to an HP-IB device using the following output formats. Outputs in free-field ASCII format with no terminator. K B Outputs in a free-field format with no terminator, but in a single &bit bytes. KC Outputs in free-field ASCII with a carriage return and line feed terminator. KL Outputs in free-field ASCII with a line feed and an EOI terminator.
PA Plot Absolute Moves the pen to a vector location on the spectrum analyzer screen relative to the reference coordinates (0,O) in display units. Syntax x coordinate / \ Y coordinate \ / number XPA Description/Default Item Number R=vze Within screen or graticule coordinates. Any valid integer. Related Commands: CLRDSP, DSPLY, TEXT, PD, PLOT, PR, PRINT, PU.
PA Plot Absolute 400, ATTEN 1 0 200 471, 233 dG I SThRT FREQ 3 . 2 5 0 I STOP FREQ GHz I CF STEP aulp M A N I FREQ OFFSET I Band Lock R o,o Figure 5-8. Display Units The coordinates of the lower left screen corner of the screen are -4O,-22 and the upper right screen corner of the screen are 471,233. For the graticule area, the coordinates of the lower left corner of the graticule are 0,O and the coordinates of the upper right graticule area are 400,200.
PARSTAT Parallel Status Reports the status of the printer connected to the parallel port. (Option 024, 041, 043). Syntax cu124e Related Commands: PRINT, GETPRINT Range Description/Default Item 0 - 32 (Option 024) Any valid integer. Number 0 - 128 (Option 041, 1043) I I Example OUTPUT 718; “PARSTAT; ” ENTER 718;A PRINT “A” Description ‘Ihble 5-9.
PARSTAT Parallel Status ‘Ihble 5-9.
PCTAM Percent AM Turns on or off the percent AM measurement. Syntax Equivalent Softkey: $! AM ON OFF. Related Commands: MKPX, PCTAMR, TH. Example OUTPUT 718;"MOV PCTAM,l;" OUTPUT 718;"PCTAMR?;" ENTER 718;Percent PRINT "Percent AM is ",Percent OUTPUT 718;"MOV PCTAM,O;" Turns on the percent AM rneasurmt. Queries PCTAMR. FCTAMR contains the results of the percent AMmeasurement. Stores the value of PCTMR in the variable Brcent. Prints the results. Turns ofl the percent AM measurement.
PCIAM Percent AM the PCTAM command (for example, "MOV PCTAM, 1; ‘I). If you use the MOV command, no text is displayed in the active function area during command execution.
PCTAMR Percent AM Response Returns the percent AM measured by the percent AM measurement (PCTAM). Syntax PCTAh4R Related Commands: MKPX, PCTAM, TH. Example OUTPUT 718;"MOV PCTAM,l;" OUTPUT 718;"PCTAMR?;" ENTER 718;Percent PRINT "Percent AM is ",Percent OUTPUT 718;"MOV PCTAM,O;" Turn-s on the percent AMmeasurement. Queries PCTAMR. PCTMR contains the results of the percent AM?neasurement. Stores the value of PCTMR in the vam’able I%rcnt. Prints the results. Turns ofl the percent AM mmsur~t.
PD Pen Down PD Pen Down Instructs the spectrum analyzer to plot vectors on the spectrum analyzer screen until a PU command is received. Syntax ( PD XPD Related Commands: DSPLY, PA, PLOT, PR, PU, TEXT. Example OUTPUT 718;"IP;BLANK TRA;" OUTPUT 718;"ANNOT 0FF;GRAT OFF;" OUTPUT 718;"PU;" OUTPUT 718;"PA 100,lOO;PD 100,150;" OUTPUT 718;"150,150,150,100,100,100;" Initializes the spectrum analyzer and blanks trace A. Clears the spectrum analyzer screen. R?n up.
PDA Probability Distribution of Amplitude Sums the probability distribution of amplitude in the destination trace with the amplitude distribution function of the source trace. Syntax predefined variable XPDA Description/Default Item User-defined trace Number User-defined variable PredeEned variable A trace dellned by the TRDEF command. Rwte Any valid trace name. Any real or integer number. Real number range. A variable deEned by VARDEF or ACTDEF commands. Any valid variable name.
PDA Probability Distribution of Amplitude Example OUTPUT 718;"IP;SNGLS;" OUTPUT 718;"VB 1OKHZ;HD;TS;" OUTPUT 718;"MOV TRB,O;" OUTPUT 718;"PDA TRB,TRA,l;" OUTPUT 718;"MPY TRB,TRB,S;" OUTPUT 718;"VIEW TRB;" Initializes spectrum analyzer and activates the singlesweep m4de. Changes video bandwidth, updates trace. &places trace B data with all zeros. Determines the distribution of trace A and sums results into trace B Multiplies values in trace B by 5 to make the results more visible. Displays the result.
PDF Probability Distribution of Frequency Increments an element of the destination trace whenever the corresponding element of the source trace exceeds a threshold. This is useful for constructing a frequency probability density function. Syntax - d e s t i n a t i o n 7 PDF user-defined user-defined trace Description/Default Item User-defined trace trace A trace defined by the TRDEF command. Range Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace.
PDF Probability Distribution of Frequency Example This example finds the portions of the frequency band where no signals above -50 dBm are observedin an hour time frame. 10 OUTPUT 718;"IP;"; 20 OUTPUT 718;"SP 1OOMZ;CF 300MZ;” 3 0 OUTPUT 718;"TH -50 DM;TS;" 40 50 60 70 OUTPUT 718;"VIEW TRB;CLRW TRA;MOV TRB,O;" OUTPUT 718*"ST'*" ENTER 718;Sweepitime Sup-retrace = Sweep-time+.1 80 Num,sweeps = 3600/Swp,retrace 90 FOR I = 1 TO Num-sweeps 100 OUTPUT 718;"TS;PDF TRB,TRA;" Initializes spectrum anal~.z.
PEAKS Peaks Sorts signal peaks by frequency or amplitude, stores the results in the destination trace, and returns the number of peaks found. Syntax 7 destination % u s e r - d e f i n e d t r a c e I sorting r method function Description/Default Item User-defied trace A trace defined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. path only R-59 Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace.
PEAKS Peaks Example Connect CAL OUT to the spectrum analyzer input. OUTPUT 718."IP*" OUTPUT 718;"CF'300MHZ;SP 1500MHZ;RB 30KHZ;SNGLS;" OUTPUT 718;"TH -60DM;MKPX 10DB;TS;" OUTPUT 718;"PEAKS TRB,TRA,FRQ?;" ENTER 718;Number DISP Number FOR I=1 TO Number OUTPUT 718;"MKP TRB[";I;"]"; OUTPUT 718;"MKA?;" ENTER 718;A OUTPUT 718*"MKF'*" *9 ENTER 718;; PRINT A,B NEXT I Initializes spectrum analyzer Changes the center frequency, span, bandwidth. Actiuatessinglesweep mode.
PEAKS Peaks 47 R E F .0 PEAK 1LY” ne dBm ATTEN 1 0 MKR 608 MHz - 4 2 . 2 3 dBm dB ................................................................................................... 2, 1 ............................. ..................................................................... MARKER 6 0 8 YHz - 4 2 . 2 3 dBm .................................................. ............................ ....................................... ............................ .............................
PEAKS Peaks Query Response Programming Commands 5427
PKDLMODE Peak Table Delta Display Line Mode Selects the signal peaks that are displayed in the peak table. The signal peaks can be selected as follows: all the signal peaks, only the signal peaks that are above the display line, or only the peaks that are below the display line. Syntax peaks below r DL ? - 1 .._,_..’ 01 I / peaks / \ 0 peaks above r DL I 1 XPKDLMODE Equivalent Softkey: PK MODE <>DL NRM . Preset State: 0 (display all the signal peaks). Related Commands: DL, PKSORT, PKTBL.
PKDLMODE Peak ‘lhble Delta Display Line Mode Query Response peaks below peaks above QPKDLMODE Programming Commands 5-429
PKPOS Peak Position Returns a value, which is the index of the maximum value in trace A, trace B, trace C, or user-defined trace. Syntax PKPOS function path only XPKPOS Description/Default Item User-defined trace A trace deEned by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Range Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data. Related Commands: MINPOS, MXM.
PKRES Peak Result PKRES Peak Result PKRES returns the x-axis coordinates of the peaks in the peak table. Syntax Item Number Description/Default An integer number. Range 1 to 10. Related Commands: DL, PKSORT, PKTBL, TDF.
PKRES Peak Result Description PKRES is an array that contains 10 elements. Each element of the PKRES array contains the x-axis coordinate of a signal peak, if a signal peak was found. If a signal peak was not found, the PKRES element contains a 0. The order in which the signal peaks are placed in the PKRES array depends on how the signal peaks were sorted (see “PKSORT” for more information). You must do the following before using PKRES: 1. Set the trace data format to TDF A, TDF B, TDF I, or TDF M only.
PKSORT Peak Sort PKSORT Peak Sort Selects how the signal peaks listed in the peak table are sorted: by decreasing amplitude or by ascending frequency. Syntax decreasing amp I i tude Equivalent Softkey: PK SORT FRQ A#P . Preset State: 0 (sort by decreasing amplitude). Related Commands: DL, PKSORT, PKTBL. Example OUTPUT 718;"MOV PKTBL,l;" OUTPUT 718;"MOV PKSORT,O;" Twn.s on the peak table. Sorts the peaks by &creasing amplitude.
PKSORT Peak Sort PKTBL Peak ‘Ihble Turns on or off the peak table. Syntax table /- off 7 0 . . . .._... / table I- 0” 7 Equivalent Softkey: PK TABLE ON OFF . Preset State: 0 (Off). Related Commands: DL, PKRES, PKSORT, PKDLMODE. Example OUTPUT 718;"MOV PKTBL,l;" Twns on the peak table. Description When the peak table is turned on, the spectrum analyzer screen displays two windows.
PKTBL Peak ‘Ihble Query Response table Programming Commands 5-435
PKZMOK Peak Zoom Okay Returns a “1” if the peak zoom routine (PKZOOM) found a valid signal, otherwise a “0” is returned. Syntax Related Commands: PKZOOM. Example OUTPUT 718;"PKZOOM IMHZ;" OUTPUT 718;"PKZMOK?;" ENTER 718;Peak-zoom-ok IF Peak-zoom-ok = 0 THEN PRINT "Signal Not Found" ELSE Query Response 5-436 Programming Commands Sets thejinal frequency span to 1 MHZ. Queries the value of PKZMOK. zf PKZMOK is equal to 0, the PKZOOM routine did not .find a signal.
PKZOOM Peak Zoom PKZOOM Peak Zoom Automatically tunes the spectrum analyzer to the signal with the highest amplitude level while narrowing the frequency span to the specified frequency span. . _. Syntax PKZOCM final frequency span / \ HZ -G--+ / / I ..’ ..’ ..’ I / XPKZOOM Item Number Description/Default ! Any real or integer number. Default unit is Hz. Minimum frequency span depends on model, maximum frequency span is Equivalent Softkey: PEAK ZOOM. Preset State: 1 MHz.
PKZOOM Peak Zoom Description PKZOOM finds the highest displayed signal and narrows the frequency span to the specified value. PKZOOM ignores the spectrum analyzer’s local oscillator (LO) feedthrough signal. PKZOOM sets the reference level to the signal’s amplitude, sets the center frequency step size to the signal’s frequency, and if the signal is within a preselected band, performs the preselector peak routine (HP 8592L, HP 85933, HP 85953, or HP 85963 only).
PLOT Plot PLOT Plot Initiates a plotter output of the screen data to the remote interface. With the appropriate HP-IB commands, the HP-IB can be configured to route the data to an external plotter. Syntax PLOT Description/Default Item Number Any real or integer number. Range Number within the plotter coordinates. Related Commands: GETPLOT, PRINT, SNGLS, TS. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
PLOT Plot Description The PLOT command transfers the trace data, graticule, and annotation of the spectrum analyzer screen to a plotter via the spectrum analyzer interface (softkey labels excluded). The data is transferred in ASCII, HPGL format. The example routes the data to an external plotter; however, the controller can read the data into a string if desired. When using the PLOT command, the scaling points (Plx, Ply; P2x, P2y) can be specified.
PWPRT Plot Port PLTPRT Plot Port Selects which port to output plotter data from the analyzer. (Option 041 or Option 043) Syntax PLTPRT cu122e Related Commands: PLOT, GETPLOT, PARSTAT, PRNPRT Example OUTPUT 718;"PLTPFtT 3;" Routes the plot i@ommtion to the serial port for Option 043.
POWERON Power-On State Selects the state of the spectrum analyzer when the spectrum analyzer is turned on: the IP state (same state as an instrument preset command) or last state (the state the spectrum analyzer was in when the spectrum analyzer was turned off). Syntax XPOWERON Equivalent Softkey: POWER ON IP LAST. Example OUTPUT 718; “POWERON LAST; ” Description POWERON LAST restores the last state of the spectrum analyzer.
PP Preselector Peak PP Preselector Peak Peaks the preselector. Syntax ( P P XPF Equivalent Softkey: PRESEL PEAK . Restrictions: Not compatible with Analog+ display mode. See “ANLGPLUS” for more information. Model Required: HP 8592L, HP 85933, HP 85953, or HP 85963. Related Commands: MKA, MKCF, MKD, MKF, MKN, MKPK. Example OUTPUT 718;"IP;CF 3GHZ;SP SOOKHZ;" OUTPUT 718;"TS;MKPK HI;MKCF;PP;" Initializes spectrum analyzq changes center frequency, span. Baks the highest on-screen signal.
PR Plot Relative Moves the pen to a new plot location on the spectrum analyzer screen relative to the current coordinates in display units. Syntax x coordinate / \ Y. coordinate / \ number XPR Item Number Description/Default Any valid integer. Range Dependent on the current pen position. Related Commands: DSPLY, PA, PLOT, PRINT, PU, TEXT. Example OUTPUT 718; “IP; ” Initializes spectrum aruzlym OUTPUT 7 18 ; “BLANK TRA ; ANNOT OFF ; ” Clears the display. OUTPUT 718;“GRAT OFF;” Turns off graticule.
PRJZAMPG External Preamplifier Gain PREAMPG External Preamplifier Gain Subtracts a positive or negative preamplifier gain value from the displayed signal. Syntax 7 amplitude value 7 XPREAMPC Example OUTPUT 718; “PREAMPG IODB; ” Description Unlike using ROFFSET, PREAMPG can change the attenuation depending on entered. the preamplifier gain A preamplifier gain offset is used for measurements that require an external preamplifier or long cables.
PREFX Prefix Specifies or changes the prefix used in save and recall operations. Syntax I- p r e f i x del i m i t e r PREFX 7 character Description/Default Item delimiter Range 0 to 6 characters long, A through Z and the underscore (the underscore cannot be the lirst character of the preti). Character Any valid character. Delimiter Matching characters marking the beginning and end of the list of - ( \ @ = / ^ $ % ; ! ’ : ” & spectrum analyzer commands. Equivalent Softkey: Change Prefix .
PRINT. Print PRINT Print Initiates a output of the screen data to the remote interface. With appropriate HP-IB commands, the HP-IB can be configured to route the data to an external printer. Syntax PRINT I+@sP +a--+ . . _. xprint Programming Commands 5.
PRINT Print Related Commands: GETPRNT, PLOT. Example for the HP-IB Interface The printer usually resides at address 1 and the plotter at address 5. (The program is only valid for HP 9000 Series 200 and 300 computers and HP Vectra personal computer with an HP raster graphics printer, such as the HP Thinkjet.) This example illustrates how an external controller can initiate the sending of print data to an external printer. OUTPUT 718.
PRNTADRS Print Address PRNTADRS Print Address Allows you to set the HP-IB address of the printer. Syntax printer r address Item Number Description/Default R-awe Any valid integer number. 0 to 30 Equivalent Softkey: PfsXm AIXJRESS . Option Required: Option 02 1. Example 10 OUTPUT 718;"VARDEF L,OC,l;MOV L,OC,l2;" 20 OUTPUT 718;"PRNTADRS 1;" . 300 OUTPUT 718;"OUTPUT PRNTADRS,F3.0,L,OC;" Dtf~nes a variable called L-OC, and then moves 12 into L-OC. Sets the HP-IB address of the printer to 1.
PRNPRT Print Port Selects which port to output printer data from the analyzer. (Option 041 or Option 043) Syntax PRNPRT Related Commands: PRINT, GETPRINT, PARSTAT, PLTPRT Example OUTPUT 718 ; "PRNPRT 3 ; ‘I Routes the print in$ormution to the serial port for Option 043.
PSTATE Protect State PSTATE Protect State Protects all of the spectrum analyzer’s user state and trace registers from being changed, except when ERASE MEM ALL is pressed. Caution The spectrum analyzer user states are not protected when EM% ME34 ALL is pressed. Syntax Equivalent Softkey: SAV LOCK OK OFF . Related Commands: ERASE, RCLS, SAVES.
PU Pen Up Instructs the spectrum analyzer not to plot vectors on the spectrum analyzer screen until a PD command is received. Syntax ( PU Related Commands: DSPLY, PA, PD, PLOT, PR, TEXT. Example OUTPUT 718;"IP;BLANK TRA;" OUTPUT 718;"ANNOT 0FF;GRAT OFF;" OUTPUT 718;"PU;" OUTPUT 718;"PA 100,lOO;PD 100,150;" OUTPUT 718;"150,150,150,100,100,100;" Initializes spectrum anulyzeq blanks trace A. Turns oflannotation, graticule. Prevents initial vector from king drawn. Rxitions pen, pen down.
PURGE Purge File PURGE Purge. File Deletes the specified file from the current mass storage device. Syntax character del i m i ter XPURGE Description/Default Item Range Delimiter Matching characters marking the beginning and end of the list of - 1 \ @ = / ^ $ % ; ! ’ : ” & spectrum analyzer commands. Character Any valid character. Any valid filename. Related Commands: MSI. Example OUTPUT 718; “MS1 CARD;" OUTPUT 718;"PURGE %dMYFILE%;" Selects the memoq card as the mass storage device.
PWRBW Power Bandwidth Computes the bandwidth around the trace center, which includes signals whose total power is a specified percentage of the total trace signal power. Syntax PWRBW predefined Item variable Description/Default User-defmed trace A trace defined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. User-defined variable Predeflned variable Predefined function A variable defined by VARDEF or ACTDEF commands.
PWRBW Power Bandwidth Example DISP "CONNECT CAL OUT TO INPUT" OUTPUT 718;“IP;" OUTPUT 718;"SNGLS;" OUTPUT 718;"CF 300MHZ;SP 1MHZ;RB 300KHZ;" OUTPUT 718;"MXMH TRA;TS;TS;TS;TS;" OUTPUT 718;"PWRBW TRA, 99.0;" ENTER 718;P DISP "THE POWER BANDWIDTH AT 99 PERCENT IS";P/l.OE+3;"kHz" LXsplays a user prompt. Initializes spectrum analyzex Activates single-sweep mode. Changes centerfrequency, span, and bandwidth. Activates the maximum hold of trace A, sweep 4 times. Returns the 99% power bandwidth.
PWRUPTIME Power Up Time Returns the number of milliseconds that have elapsed since the spectrum analyzer was turned on. Syntax Example OUTPUT 718;"PWRUPTIME;" ENTER 718;A A = A/1000 PRINT "Minutes elapsed ",A/60 Executes PWRUPTIME. Places the result of PWRUPTIME into A. Changes the milliseconds to seconds. Prints the number of minutes that have elapsed since the spectrum analyzer was turned on.
RB Resolution Bandwidth RB Resolution Bandwidth Specifies the resolution bandwidth. Syntax XRB Item Number Description/Default Range Any real or integer number. Default unit is Hz. If Option 130 is installed, 30 Hz to 3 MHz, otherwise 1 kHz to 3 MHz. Equivalent Softkey: RES BU AUTO MAN . Preset State: 3 MHz. Step Increment: In a 1, 3, 10. Related Commands: AUTO, SP, ST, VB, VBR. Example OUTPUT 718;"RB IKHZ;" Sets the resolution bandwidth to 1 kHz.
RR Resolution Bandwidth Description The coupling between sweep time and resolution bandwidth is terminated by this command. Execute RB AUTO to reestablish coupling. (Also see “AUTO.
RCLS Recall State RCLS Recall State Recalls spectrum analyzer state data from the specified state register in spectrum analyzer memory. Syntax state r r e g i s t e r Item Number Description/Default Range 1 to 9 Any real or integer number. Equivalent Softkey: INTEHMAL -> STATE . Related Commands: LOAD, POWERON, RCLT, SAVES. Example OUTPUT 718 ; “IP ; CF 300MHZ ; SP 1MHZ ; I’ OUTPUT 718 ; “SAVES 3 ; ” OUTPUT 718.s “IP ,* ” OUTPUT 7 18, * “RCLS 3 ,* ” Changes centerfreqwnc2(, span.
RCLT Recall Trace Recalls previously saved trace data, amplitude factors, or limit-line data from the specified trace register in spectrum analyzer memory. Trace data is recalled with instrument state, date, and screen title. Syntax RCLT user-defined trace trace range I XRCLl Item Description/Default User-defined trace A trace defined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Number Any valid integer. Range Any valid trace name.
RCEI’ Recall Trace Description The state and trace data are recalled when the trace destination is trace A, trace B, or trace C. When using a user-defined trace or a trace range for the trace destination, only the trace data is recalled. When recalling frequency-amplitude correction data, you need to specify AMPCOR as the destination. When recalling limit line table data, specify LIMILINE as the destination.
RELHPIB Release HP-IB Releases spectrum analyzer control of the HP-IB. Syntax Option Required: Option 021. Related Commands: ENTER, OUTPUT. Example OUTPUT 718 ; "RELHPIB ; ‘I The spectrum analyzer releases control of HP-IB so that another dewice can control the bus. Description The RELHPIB command causes the device that is acting as the controller on the HP-IB (for example, the spectrum analyzer) to relinquish control of the bus.
REPEAT UNTIL Repeat Until REPEAT UNTIL Repeat Until The REPEAT and UNTIL commands form a looping construct. Syntax UNTIL / % p r e d e f i n e d buuser-defined L Item trace v a r i a b l e I vorioblel element / Description/Default Analyzer command Any valid complete spectrum analyzer command. User-defined A variable defined by VARDEF or ACTDEF commands. variable Predefined variable R=u3e Any valid variable name. A command that acts as a variable. Refer to ‘lbble 5-1. Real number range.
REPEAT UNTIL Repeat Until Example The following program lowers any off-screen signal. Initializes spectrum anal~zfx 10 OUTPUT 718;"IP;" 20 OUTPUT 718;"SNGLS;TS;MKPK HI;" Activates single-sweep mode, takes sweep, places 30 OUTPUT 718;"IF MA,GT,RL THEN;" 40 50 60 OUTPUT 718;"REPEAT;" OUTPUT 718;"RL UP;TS;MKPK HI;" OUTPUT 718;"UNTIL MA,LE,RL;" 70 OUTPUT 718;"ENDIF;" 80 OUTPUT 718."CONTS-" s 3 70 END marker on signal peak.
RRSETRL Reset Reference Level RESETRL Reset Reference Level Resets the reference level to its instrument preset level. Syntax Related Commands: AUNITS, IP, ML, RL, RLPOS.
RETURN Return Stops the operation of a user-defined command and returns program operation to the point where the user-defined function was called. Syntax RETURN Related Commands: ABORT. FUNCDEF. IF (IFflHEN/ELSE/ENDIF), REPEAT (REPEAT/UNTIL). ’ ’ ’ Example 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 OUTPUT 718.
RJW Revision REV Revision Returns the date code of the firmware revision date in YYMMDD format (for example, 860910 indicates 10 September 1986). Syntax function path only XRE” Equivalent Softkey: SHOW QPTIONS displays the firmware revision date. Related Commands: ID, SER, TIMEDATE. Example OUTPUT 718 ; "REV ; I’ ENTER 718;A DISP A Gets the firmware revision date of spectrum analgz-ez Puts the spectrum analyzer response in the computer variable, A.
RL Reference Level Specifies the amplitude value of the reference level. Syntax - ompl itude v a l u e 7 RL XRL Description/Default Item Number Range Any real or integer number. Default unit is the current amplitude unit. Amplitude range of the spectrum analyzer. Equivalent Softkey: REF LYL . Preset State: 0 dBm. Step Increment: by 10 dBm. Related Commands: AT, MKRL, ML, RESETRL, RLPOS.
RL Reference Level Description The reference level and input attenuator are coupled to prevent gain compression. Signals with peaks at or below the reference level are not affected by gain compression. Caution Signal levels above +30 dBm will damage the spectrum analyzer. RL may affect the attenuation value.
RLPOS Reference-Level Position Selects the position of the reference level. Syntax RLPOS XRLPOS Number Range Description/Default Item Any real or integer number. 0 to 8. Step Increment: 1. Related Commands: IP, MEASURE, NRL, RL. Preset State: RLPOS 8. Example OUTPUT 718;"IP;" OUTPUT 718;"MEASURE NRM;" OUTPUT 718;"AMBPL ON;" OUTPUT 718;"RLPOS 7;" Initializes spectrum analyzer Changes the measurement mode to normalized. Activates trace normalization.
RMS Root Mean Square Value RMS Root Mean Square Value Returns the root mean square value of the trace in measurement units. Syntax RMS b u s e r - d e f i n e d Item t r a c e I Description/Default Range User-defined trace A trace defmed by the TRDEF command. Any valid trace name. Trace range A segment of trace A; trace B, trace C, or a user-defined trace. Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data. Related Commands: MEAN, PDA, PDF, STDEV, VARIANCE.
ROFFSET Reference Level Offset Offsets all amplitude readouts without affecting the trace. Syntax ROFFSET Item Number Description/Default Any real or integer number. Default unit is dB. I Range -200 dB to + 200 dB. Equivalent Softkey: REF LVL OFFSET . Preset State: 0 dB. Related Commands: AT, RL.
RQS Service Request Mask RQS Service Request Mask Sets a bit mask for service requests (see “SRQ”). Syntax m a s k f o r s e r v i c e XRQS Item Number Description/Default Any valid integer. Range 0 to 62. Related Commands: SRQ, STB. Example OUTPUT 718;"RQS 12;" Sends a mask bit for hardware broken and end of sweep.
RQS Service Request Mask Each bit in the status byte is defined as follows: 1 Indicates that the units key was pressed. SRQ 102 appears on the spectrum analyzer screen. If you activate the units key bit, it will remain active until you activate “EE” and press a units key. (See “EE.“) 2 Indicates end of sweep. SRQ 104 appears on the spectrum analyzer screen. If you send any RQS value that contains mask value 4, another sweep will be taken. 3 Indicates broken hardware.
SAVEMENU Save Menu SAVEMENU Save Menu Saves menu 1 under the specified menu number. Syntax Description/Default Item Number Any valid integer. R-f@ 1, 101 to 200. Example OUTPUT 718;"MENU 1;" OUTPUT 718;"SAVEMENU 101;" OUTPUT 718;"KEYCLR;" PAUSE OUTPUT 718;"MENU 101;" Laplays rrlenu 1. Copies the key functions from menu 1 into menu 101. Erases the key functions of menu 1. Displays ?T?Enu 101.
SAVES Save State Saves the currently displayed instrument state in spectrum analyzer memory. Syntax state r r e g i s t e r SAVES XSAVES Item Number Description/Default Any valid integer. Range 1 to 8. Equivalent Softkey: STATE -> INTRNL . Related Commands: OL, PSTATE, RCLS, SAVET, STOR. Example OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;" OUTPUT 718."SAVES 1." 3 8 Initializes spectrum analyze?; changes center frequencvp span. Saves spectrum analyzer state in register 1.
!&WET Save Trace SAVET Save Trace Saves the selected trace data and state information, amplitude correction factors, or limit-line tables in spectrum analyzer memory. Syntax trace r r e g i s t e r SAVET XSAVET Item Description/Default Rwe User-defined trace A trace defined by the TRDEF command with a length of 401 elements. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Number Any valid integer. Any valid trace name. 0 to TRCMEM - 1.
SAVET Save Trace Description The trace data is saved in the specified register if the state registers have not been locked by PSTATE ON (see “SAVES”). Use AMPCOR to save amplitude correction factors, LIMILINE to save limit-line tables. The TS and VIEW commands should be executed prior to saving trace data. The SAVET command saves trace data, amplitude correction factors, or limit-line tables in spectrum analyzer memory. See “STOR” or “SAVRCLN” to save data on a RAM card. 5.
SAVRCLF Save or Recall Flag SAVRCLF Save or Recall Flag Indicates a save or recall operation. Syntax SAVRCLF Related Commands: MSI, PREFX, RCLS, RCLT, SAVES, SAVET, SAVRCLN, SAVRCLW. Example This example allows trace A to be saved on a RAM card. Spec@ies a save operation. Spec4Jie.s the source as trace A. Specifies the card as the mass storage device.
SAVRCLN Save or Recall Number Specifies the number to append to the prefix for a save or recall operation, and initiates the transfer of data. Syntax number to SAVRCLN XSAVRCLN Description/Default Item Number Range Dependent on mass storage device. Any valid integer. Related Commands: MSI, PREFX, RCLS, SAVES, SAVRCLF, SAVRCLW. Example This example allows trace A to be saved on a RAM card.
SAVRCLN Save or Recall Number Description SAVRCLN is used to save or recall data from spectrum analyzer memory or from a RAM card. SAVRCLN is useful if you want to write a program that allows the spectrum analyzer operator to save data in spectrum analyzer memory or on a RAM card. The SAVRCLN command uses the SAVRCLF flag information, SAVRCLW information, prefix, and mass storage device when transferring data.
SAVRCLW Save or Recall Data Specifies the data to be transferred: trace A, trace B, trace C, program, amplitude correction factors, limit line, or state. Syntax SAVRCLW XSAVRCLW Related Commands: MSI, PREFX, RCLS, RCLT, SAVES, SAVET, SAVRCLF, SAVRCLN. Example This example allows the current spectrum analyzer state to be saved on a RAM card. SpecQies a save operation. OUTPUT 718;"SAVRCLF SAVE;" OUTPUT 718;"SAVRCLW STATE;" Spec(jies the source as the current spectrum analyzer state.
SEGDEL Segment Delete SEGDEL Segment Delete Deletes the specified segment from the limit-line tables. Syntax segment 7 number SEGDEL Related Commands: LIMIMODE, LIMISEG, LIMISEGT, SENTER, SENTERT. Example 1 This example uses LIMIMODE for entering segments into the upper limit-line table, then entering a segment into the lower limit-line table (upper and lower limit lines are treated as separate tables).
SEGDEL Segment Delete Example 2 With the addition of line 60, the upper and lower limit-line tables are no longer treated as separate tables, but as one table. The segment is deleted from the upper and lower limit-line tables (for the given frequency).
SENTER Segment Entry for Frequency Limit Lines SENTER Segment Entry for Frequency Limit Lines Enters the limit-line data in the upper and lower limit-line table or the mid and delta table for limit lines based on frequency. Syntax ,- f r e q u e n c y SENTER -\ HZ KHZ ~.b(-E--) . . qF-) . . WpT-) . .
SENTER Segment Entry for Frequency Limit Lines Item User-defined Range Description/Default Number variable Any real or integer number. Default unit is dBm. Varies with FOFFSET and ROFFSET. A variable defined by VARDEF or ACTDEF commands. Any valid variable name. Predelined variable A command that acts as a variable. Refer to Table 5-1. Trace element An element of trace A, trace B, trace C, or a user-defined trace. Related Commands: LIMIMODE, LIMIREL, LIMISEG, SEGDEL, SENTERT.
SENTER Segment Entry for Frequency Limit Lines n POINT specifies a limit value for the coordinate point, and no other frequency points, so that a POINT segment specifies a limit value for a single frequency. For an upper limit-line, a POINT segment is indicated by a line drawn from the coordinate point, vertically off the top of screen. For a lower limit-line, a POINT segment is indicated by a line drawn from the coordinate point, vertically off the bottom of screen.
SENTERT Segment Entry for Sweep Time Limit Lines Enters the limit-line data in either the upper and lower limit-line table or the mid and delta table for limit lines based on sweep time.
SENTERT Segment Entry for Sweep Time Limit Lines Item Uumber Description/Default Range Any real or integer number. For amplitude, the default unit is dBm. For sweep time, the default unit is seconds. User-defined variable A variable defined by VARDEF or ACTDEF commands. A command that acts as a variable. Refer to ‘Ikble ?redefined variable 5-1. Trace element An element of trace A, trace B, trace C, or a user-defined trace. The range for the amplitude varies with ROFFSET.
SENTERT Segment Entry for Sweep Time Limit Lines Note If the current limit line table contains lines based on frequency (as opposed to a limit line based on the sweep time), executing SENTERT will clear the current frequency limit line table. The three segment types are FLAT, SLOPE, and POINT.
SER Serial Number SER Serial Number Returns the serial number suffix of the spectrum analyzer. Syntax f u n c t i o n p a t h o n l y XSER Related Commands: ID, REV. Example DIM Serial$[24] OUTPUT 718;"SER;" ENTER 718; Serials DISP Serial$ m.emory space for a string. Gets the serial number from the spectrum analyzer: Puts the spectrum analyzer response in the computer variable. Displays the serial number on the computer screen.
SETDATE Set Date Allows you to set the date of the real-time clock of the spectrum analyzer. Syntax f d a t e (YYMMDD) XSETDATE Item Number Description/Default A number in the YYMMDD format. R-t+ Valid year, month, and Equivalent Softkey: SET DATE . Related Commands: SETTIME, TIMEDATE, TIMEDSP. Example OUTPUT 718;"SETDATE 890212;" Sets the date to Fidmu.zry 12, 1989.
SETTIME Set Time SETTIME Set Time Allows you to set the time of the real-time clock of the spectrum analyzer. Syntax r t ime (HHMMSS) XSETTIME Item Number Description/Default A number in the HHMMSS (24 hour) format. R=ae 0 to 235959. Equivalent Softkey: SET TIME. Related Commands: SETDATE, TIMEDATE, TIMEDSI? Example OUTPUT 718;"SETTIME 135501;" Sets the time to 1:55:01 PM.
SMOOTH Smooth Trace Smoothes the trace according to the number of points specified for the running average. Syntax b u s e r - d e f i n e d b t r a c e h p r e d e f i n e d buser-defined b p r e d e f i n e d L t r a c e trace / r a n g e v a r i a b l e / / variable) f u n c t i o n e l e m e n t / / XSMOOTH Item Description/Default User-defined trace A trace deflned by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
SMOOTH Smooth Trace Example 10 OUTPUT 718;"IP;" 20 OUTPUT 718;"SNGLS;TS;" 30 OUTPUT 718;"VIEW TRA;" 40 OUTPUT 718;"SMOOTH TRA,lO;" 50 OUTPUT 718;"VIEW TRA;" 60 END Initializes spectrum analyzer: Activates single-sweep mode, takes a sweep. Stores results of trace A. Smoothes trace A. Displays the result. Description Each point value is replaced with the average of the values (in measurement units) of the given number of points centered on it.
SNGLS Single Sweep Sets the spectrum analyzer to single-sweep mode. Syntax SNGLS Equivalent Keys: CsGLSWP) or SlJEEP COI?T SGL (SGL is underlined). Related Commands: CLRW, CONTS, TM, TS. Example OUTPUT 718;"SNGLS;" Description Each time TS (take sweep) is sent, one sweep is initiated, as long as the trigger and data entry conditions are met.
SP Span SP Span Changes the total displayed frequency range symmetrically about the center frequency. Syntax / f r e q u e n c y s p a n \ HZ f+ \ \ Description/Default Item Number Any real or integer number. Default unit is Hz. R-f3e Frequency span of the spectrum analyzer. Equivalent Softkey: SPAN . Step Increment: 1, 2, 5, 10 sequence (up to the stop frequency of the spectrum analyzer). Related Commands: CF, FA, FB, FOFFSET, FS, HNLOCK, HNUNLK, RB, ST, VB.
SP Span Description The frequency span readout refers to the displayed frequency range. Dividing the readout by 10 yields the frequency span per division. If resolution and video bandwidths are coupled to the span width, the bandwidths change with the span width to provide a predetermined level of resolution and noise averaging. Likewise, the sweep time changes to maintain a calibrated display, if coupled. All of these functions are normally coupled, unless RB, VB, or ST have been executed.
SPEAKER Speaker SPEAKER Speaker Turns on or off the internal speaker. Syntax XSPEAKER Option Required: Option 102, Option 103, or Option 301. Preset State: SPEAKER ON. Related Commands: DEMOD, FMGAIN, SQLCH.
SPZOOM Span Zoom Places a marker on the highest on-screen signal (if an on-screen marker is not present), turns on the signal track function, and activates the span function. Syntax Equivalent Softkey: SPAN ZOOM. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718;"IP;CF 300MZ;TS;" OUTPUT 718;"SPZOOM;" Description If a marker is present before SPZOOM is executed, SPZOOM turns on the signal track function and activates the span function.
SQLCH Squelch SQLCH Squelch Sets the squelch threshold by setting the squelch level. Syntax s q u e l c h t h r e s h o l d Description/Default Item Number Any valid integer. R=u3e 0 to 100. Equivalent Softkey: S@XLCH . Option Required: Option 102, 103, or 301. Preset Value: 0. Related Commands: DEMOD, FMGAIN, SPEAKER. Example OUTPUT 718;"SQLCH 100;" Description SQLCH mutes weak signals and passes strong signals.
SQR Square Root Places the square root of the source into the destination. Syntax 7 d e s t i n a t i o n SQR Y u s e r - d e f i n e d Y t r a c e trace r a n g e Y p r e d e f i n e d v a r i a b l e *user-defined v a r i a b l e / / / Description/Default Item User-defined trace A trace defined by the TRDEF command. User-defined A variable defined by VARDEF or ACTDEF commands. variable name. Predeflned variable A command that acts as a variable. Refer to Table 5-l.
SQR Square Root Example OUTPUT 718 ; "SQR SP, lE8 ; ‘I Changes the span to 10 kHz. Description If the source is negative, the square root of the absolute value will be returned. When the source is longer than the destination, the source is truncated to fit. When the source is shorter than the destination, the last element is repeated to fill the destination.
SRCALC Source Leveling Control Selects internal or external leveling for use with the built-in tracking generator. Syntax Option Required: Option 010 or 011. Preset State: SRCALC INT. Related Commands: CF, FA, FB, FS, HNLOCK, SI? Example OUTPUT 718;"SRCALC XTAL;" Description For the HP 8590L or HP 85913: Option 010 or 011 for the HP 859OL and HP 85913 provide internal (INT), crystal (XTAL), and meter (MTR) leveling. n SRCALC INT activates internal leveling. n SRCALC XTAL activates external leveling.
SRCALC Source Leveling Control Fbr the HP 85933, HP 8594E, HP 8595E, and HP 85963 only: The functions of SRCALC and ALC INT EXT are identical. When used as a predefined variable, SRCALC returns a number from 0 to 2. The value that is returned by SRCALC depends on the SRCALC parameter, as shown in the following table.
SRCAT Source Attenuator Attenuates the source output level. Syntax /- a t t e n u a t i o n XSRCAT Description/Default Item Range Number (HP 85913 only) Any real or integer number, specified in multiples of 10 dB. 0 to 60 dB. Number (HP 8593E, HP 85943, HP 8595E, or HP 8596E only) Any real or integer number, specified in multiples of 8 dB. 0 to 56 dB. Equivalent Softkey: SBC ATM MAM AUTO . Option Required: Option 010 or 011 installed in an HP 85913.
SRCAT Source Attenuator Description The SRCAT command attenuates the output level of the source. Use SRCAT to attenuate the power level of the source manually, from 0 to 60 dB in 10 dB steps for an HP 85913, from 0 to 56 dB in 8 dB steps for an HP 85933, HP 85943, HP 85953, or HP 85963. “SRCAT AUTO;” automatically adjusts the attenuator to yield the source amplitude level specified by the SRCPWR command.
SRCNORM Source Normalization Subtracts trace B from trace A, adds the display line value to the difference, and sends the result to trace A during every sweep of the spectrum analyzer. Syntax OFF / ON XSRCNORM Equivalent Softkey: IK%MLIZE 04 OFF . Preset State: SRCNORM OFF. Related Commands: AMB, CONTS, CLRW, DL, MXMH, SNGLS, TS, VAVG, VIEW.
SRCNORM Source Normalization Description The SRCNORM command subtracts trace B from trace A, point by point, adds the display line value to the difference, and sends the difference to trace A. The SRCNORM function remains in effect until it is turned off by executing “SRCNORM OFF; ,,. A common use of trace subtraction is to normalize one trace with respect to another. For example, traces are frequently subtracted to normalize the spectrum analyzer response when a tracking generator is used.
SRCPOFS Source Power Offset Offsets the source power level readout. Syntax XSRCPOFS Description/Default Item Number Range Any real or integer number. Option Required: Option 010 or 011. Equivalent Softkey: $QlC PWR OFFSET . Related Commands: SRCPWR, SRCPSWP Step Increment: Determined by SRCPSTP Preset State: 0 dB. Example Use SRCPOFS to offset the power-level readout for the tracking-generator source.
SRCPSTP Source Power-Level Step Size SRCPSTP Source Power-Level Step Size Selects the source-power step size. Syntax I- s t e p s i z e XSRCPSTP Number Range Description/Default Item Any real or integer number. Option Required: Option 010 or 011. Equivalent Softkey: SRC PWR STP SIZE. Step Increment: 0.1 dB. Related Commands: SRCPWR, SRCPOFS, SRCPSWP Preset State: SRCPSTP AUTO (one major vertical ‘scale division).
SRCPSTP Source Power-Level Step Size Query Response 5-512 Programming Commands
SRCPSWP Source Power Sweep SRCPSWP Source Power Sweep Selects the sweep range of the source output, Syntax /- sweep --\ ( SRCPSWP > DB I I I I I . . . . . . . . . . . . .._._............. .’ J XSRCPSWP Description/Default Item Number R-w Any real or integer number. Option Required: Option 010 or 011. ’ Equivalent Softkey: PWR SWP ON OFF . Step Increment: Determined by SRCPSTP. Related Commands: SRCPSWP, SRCPOFS, SRCPSTP Preset State: SRCPSWP OFF.
SRCPSWP Source Power Sweep Note Power is swept from low to high. The minimum sweep time is limited to 20 ms when performing a source power sweep, even if the spectrum analyzer has an Option 101 installed in it.
SRCPWR Source Power SRCPWR Source Power Selects the source power level. Syntax /- Power \ XSRCPWR Item Number Description/Default Range Any real or integer number. Default unit is the current amplitude unit. Actual range is hardware dependent. Option Required: Option 010 or 011. Equivalent Softkey: SRC PWR ON OFF . Step Increment: Set by SRCPSTI? Related Commands: SRCAT, SRCPSTP, SRCPSWP. Preset State: -10 dBm. Example Use SRCPWR to turn on the source and adjust its power level.
SRCPWR Source Power Query Response 5-516 Programming Commands
SRCTK Source Tracking SRCTK Source Tracking Adjusts the tracking of the source output with the spectrum analyzer sweep. Syntax SRCTK I t Number e Description/Default m Any real or integer number. tinge 0 to 16,383. Option Required: Option 010 or 011. Equivalent Softkey: Ml? TM ADJUST . Step Increment: 1. Related Commands: Commands that change bandwidth, such as RB, VB, ST, and commands that change frequency, such as SP, CF, FA, FB, SP, FS, SRCTKPK.
SRCTK Source Tracking Query Response PO1 5-518 Programming Commands
SRCTKPK Source Tracking Peak SRCTKPK Source Tracking Peak Automatically adjusts the tracking of source output with spectrum-analyzer sweep. Syntax Option Required: Option 010 or 011. Equivalent Softkey: TRM!KING PEAK . Related Commands: Commands that change bandwidth, such as RB, VB, ST, and commands that change frequency, such as SP, CF, FA, FB, SP, FS, SRCTK. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
SRQ Force Service Request The SRQ command is used by an external controller to simulate interrupts from the spectrum analyzer. Syntax service SRQ XSRQ Description/Default Item Number Any valid integer. mt3e 2 to 126. Related Commands: CLS, EE, RQS, STB. Example OUTPUT 718;"RQS 8;SRQ 8;" Note Sets bit mask for a hardware broken semrice request, genmates a hardware broken interrupt. A program can respond to the interrupt in the same way it would under a true service request condition.
SRQ Force Service Request ‘Ihble 5-9. Spectrum Analyzer Status Byte Bit Number Decimal Equivalent Spectrum Analyzer State Description 32 Set when an illegal command is present. SRQ 140 appears on the spectrum analyzer screen. 16 Set when any command is completed. It is triggered by EOI at the end of a command string or the completion of a print or plot. 8 Indicates hardware broken condition. SRQ 110 appears on the spectrum analyzer screen. 4 Indicates end of sweep.
SRQ Force Service Request Interface Differences As implemented on the HP-IB interface, an spectrum analyzer service request asserts the SRQ control line on the HP-IB. On the RS-232 interface, the spectrum analyzer does not have a way of signaling the interrupt condition to a controller. In this case, the controller must operate in a polled mode if it requires interrupt information (see “Polled Mode of Operation” below for a discussion of the polled mode).
SRQ Force Service Request This displays the octal equivalent of the status byte binary number: SRq 140 The octal equivalent is based on the whole binary number: 01100000 (binary) = 140 (octal) One simple way to determine the octal equivalent of the binary number is to partition the binary number three bits at a time from the least significant bit, and treat each part as a single binary number: binary octal 0 1 1 0 0 0 0 0 1 4 0 The decimal equivalent of the octal number is determined as follows: 140
ss Center Frequency Step Size Specifies center frequency step size. Syntax UP AUTO Description/Default Item Number Any real or integer number. Default unit is Hz. Range Frequency range of the spectrum analyzer. Equivalent Softkey: CF SW AUTO NAN . Preset State: 100 MHz. Step Increment: 1, 2, 5, 10 sequence. Prerequisite Commands: ACTDEF or VARDEF when using a user-defined variable. Related Commands: AUTO, CF, FOFFSET, SP.
SS Center Frequency Step Size Example 10 CLEAR 718 20 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;TS;" 30 OUTPUT 718;"MKPK HI;MKRL;TS;MKF?;" 40 ENTER 718 USING "K";Mk,freq 50 OUTPUT 718;"MKA?;" 60 ENTER 718 USING "K";Mk-amp 70 OUTPUT 718;"SS ";Mk-freq;"HZ" Clears the HP-B Initializes the spectrum an&yactivatessingle-sweep mode, changes the center frequency, span, takes sweep.
ST Sweep Time Specifies the time in which the spectrum analyzer sweeps the displayed frequency range. Syntax Description/Default Item Number Any real or integer number. Default unit is seconds. Rw& Within the sweep time range of the spectrum analyzer. Equivalent Softkey: SWF TfME AUTO MAN . Sweep Time Range in Zero Span: 15 ms to 100s. Sweep Time Range in Zero Span, Option 101 only: 20 ,us to 100s. Sweep Time Range in Non-zero Span: 20 ms to 100 s. Step Increment: 2, 3, 5, 7.5, 10, 15 sequence.
ST Sweep Time Query Response Programming Commands 5-527
STB Status Byte Query Returns to the controller the decimal equivalent of the status byte. Syntax Pre$ef i ned f u n c t i o n p a t h o n l y XSTB Related Commands: RQS, SRQ, Example 10 20 30 40 50 60 OUTPUT718;"IP;" OUTPUT 718;"SNGLS;" OUTPUT 718*"CLS-" 9 , OUTPUT 718*"TS*" # , OUTPUT 718."STB'." ENTER 718;ktatui:Byte 70 PRINT Status-byte 80 END Initializes spectrum anal2/zer Activates single-sweep mode. Clears the status bits. i’bkes sweep. Returns the status bits.
STDEV Standard Deviation of Trace Amplitudes STDEV Standard Deviation of Trace Amplitudes Returns the standard deviation of the trace amplitude in measurement units. Syntax f u n c t i o n 9 u s e r - d e f i n e d t r a c e p a t h o n l y I XSTDEV Description/Default Item RanBe Any valid trace name. User-defined trace A trace deEned by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
STDEV Standard Deviation of Trace Amplitudes Description The formula to calculate the standard deviation is as follows: J ,gz - XiY n - l n represents the number of data points. 4 represents a data point. 5 represents the mean of data.
STOR Store STOR Store Stores data on a RAM card.
STOR Store Item Description/Default Ranee User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined variable A variable deflned by VARDEF or ACTDEF commands. Any valid variable name. zharacter (file name) Any valid character. Characters form the Ele type and file name. File type (lowercase a, c, d, i, 1, s, or t) should precede the file name.
STOR Store Description The STOR command stores the source data on the RAM card under the specified file name and data type. Data type: Use the data type as the first character of the file name in order to catalog the file by the file type. For example, use tFUNCX instead of FUNCX to catalog it by traces. If the file type is not specified as the first character of the file name, the file is stored as an ASCII file.
SUB Subtract Subtracts source 2 from source 1, point by point, and sends the difference to the destination. Syntax - d e s t i n a t i o n / b u s e r - d e f i n e d b t r a c e b p r e d e f i n e d u s e r - d e f i n e d Item t r a c e range v a r i a b l e / / / v a r i a b l e Description/Default Bange User-dehned trace A trace defined by the TRDEF command. Any valid trace name. User-de&red A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
SUB Subtract Example OUTPUT 718;"SUB TRA,TRB,TRC;" Subtracts trace Cfrom trace B and places the result in trace A. Description When the source is longer than the destination, the source is truncated to fit. When the source is shorter than the destination, the last element is repeated to fill the destination.
SUM Sum of Trace Amplitudes Returns the sum of the amplitudes of the trace elements in measurement units. Syntax f u n c t i o n k u s e r - d e f i n e d b Item t r a c e t r a c e r a n g e p a t h o n l y / / Description/Default User-defined trace A trace defined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. tinge Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
SUMSQR Sum of Squared Trace Amplitudes SUMSQR Sum of Squared Trace Amplitudes Returns the sum of the squares of the amplitude of each trace element in measurement units. Syntax f u n c t i o n p a t h o n l y h u s e r - d e f i n e d L Item t r a c e t r a c e r a n g e I J Description/Default User-defined trace A trace defined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Range Any valid trace name.
SWPCPL Sweep Couple Selects either a stimulus-response (SR) or spectrum-analyzer (SA) auto-coupled sweep time. Syntax Equivalent Softkey: SWP GPLG SR SA . Option Required: Option 010 or 011. Preset State: SWPCPL SA. Related Commands: SRCPWR.
SYNCMODE Synchronize Mode Selects the horizontal and vertical synchronizing constants, (the synchronization) rate for both the internal monitor of the spectrum analyzer and the video signal that is output to the MONITOR OUTPUT connector. Syntax XSYNCMODE Equivalent Softkey: SYK! EflZM NTSC , DEFAULT SYNC , SYNC EfEtpr PAL. Related Commands: CRTHPOS, CRTVPOS, IP. Example OUTPUT 718;"SYNCMODE NTSC15;" OUTPUT 718;"IP;" Selects the NTSC format for the spectrum analyzer monitor and monitor output.
SYNCMODE Synchronize Mode The following parameters for SYNCMODE are described: NORMAL Restores the previous values for the horizontal and vertical synchronizing constants of the spectrum analyzer display if SYNCMODE NTSC15 or SYNCMODE PAL15 was previously executed. The previous values for the horizontal and vertical position are the positions that were set by CRTHPOS and CRTVPOS. SYNCMODE NORMAL is equivalent to SYNC MRM NTSC (with NRM underlined).
TA Transfer A Returns trace A amplitude values from the spectrum analyzer to the controller. Syntax ( TA Related Commands: MDS, TB, TDF. Example This example stores the TA results in array A. DIM A(4011 OUTPUT 718;"IP;" OUTPUT 718;"SNGLS;CF 300MHZ;SP 2MHZ;TS;" OUTPUT 718;"TDF P;TA;" FOR N = 1 TO 401 ENTER 718;A(N) NEXT N FOR N = 1 TO 401 PRINT A(N) NEXT N I&SW memory area for array. Initializes analyzer Activates single-sweep mo& changes center frequency and span, takes sweep.
TB Transfer B TB Transfer B Transfers trace B amplitude values from the spectrum analyzer to the controller. Syntax Related Commands: MDS, TA, TDF. Example DIM A(4011 OUTPUT 718;"IP;" OUTPUT 718;"SNGLS;CF 300MHZ;SP 2MHZ;TS;" OUTPUT 718;"TDF P;TB;" FOR N = 1 TO 401 ENTER 718;A(N) NEXT N FOR N = 1 TO 401 PRINT A(N) NEXT N &serves memory area for array. Initializes analyz4x Activates single-sweep mode, changes center frequency and span, takes sweep.
TDF Trace Data Format Formats trace information for return to the controller. Syntax XTDF Related Commands: MDS, MKA, TA, TB, TRA. Example DIM A(4011 OUTPUT 718;"IP;" OUTPUT 718;"BLANK TRA;CLRW TRB;" OUTPUT 718;"SNGLS;CF 300MHZ;SP 2MHZ;TS;" OUTPUT 718*"TDF P-TB-" , # FOR N = 1 lo 401 ENTER 718;A(N) NEXT N FOR N = 1 TO 401 PRINT A(N) NEXT N Holds trace data. Initializes armlym Views trace I3 Activates single-sweep mode, changes centerfrequency and span. Rwm4zts trace data.
Trace Data Transfers with TDF P Description Example AUNITS Setting TDF P;AIJNITS W;‘L4; Transfers 401 real values, in watts, with each value separated by a carriage return and a line feed. TDF P;AUNITS DBM;TA; Transfers 401 real values, in dBm, with each value separated by a carriage return and a line feed. dBmV TDF P;AUNITS DBMV;TA; Transfers 401 real values, in dBmV, with each value separated by a carriage return and a line feed.
TDF Trace Data Format Example of how data is returned: For the same trace A data that is used in the TDF P description, querying trace A with the TDF A format and MDS set to binary (MDS B) would return the ASCII character codes for the following: #A(401 div 256)(401 mod 256)(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div 32 is repeated 398 times) Notice that #A is followed by the two bytes that contain the number of trace elements.
TDF Trace Data Format Example of how data is returned: For the same trace A data that is used in the TDF P description, querying trace A with the TDF A format and MDS set to binary (MDS B) would return the ASCII character codes for the following: #A(401 div 256)(401 mod 256)(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div 32 is repeated 398 times) Notice that #A is followed by the two bytes that contain the number of trace elements.
TDF Trace Data Format !IDFB Description: TDF B enables the binary format. With the binary format, the marker or trace data is transferred as bytes. Of all the trace data formats, TDF B transfers trace data the fastest. The setting of the MDS command determines whether the trace data is transferred as one or two 8-bit bytes. Restrictions: The TDF B format cannot be used to send data back to the spectrum analyzer (you must use the A-block format to send data back to the spectrum analyzer).
TDF Trace Data Format Refer to Chapter 3, “Different Formats for Trace Data Transfers,” for more information about transferring trace data.
TEXT Text TEXT lkxt Writes text on the spectrum analyzer screen at the current pen position. Syntax t e x t t o b e /- d i s p l a y e d d e l i m i t e r 7 c h a r a c t e r de i m i t e r XTEXT Item Range Description/Default Delimiter Matching characters marking the beginning and end of the list of - 1 \ @ = / ^ 8 % ; ! ’ : ” & analyzer commands. Character Any valid character. See “LB” for additional characters available. Related Commands: DSPLY, LB, PA, PD, PU, PR.
TH Threshold Clips signal responses below the threshold level. Syntax TH XTH Description/Default Item Number Any real or integer number. Default unit is dBm. RwIe Range dependent on RL setting. Equivalent Softkey: TRRESIILD ON OFF . Preset State: Clip off, positioned one division above bottom graticule line. Step Increment: One division. Related Commands: AUTO, DL, MEANTH, MKPK, PEAKS, RL. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information.
TIMEDATE Time Date TIMEDATE Time Date Allows you to set the time and date for the spectrum analyzer real-time clock in the YYMMDDHHMMSS format. Syntax t i m e and dote (YYMMDDHHMMSS T IMEDATE f/ XTIMEQATE Item Number Description/Default A number representing the date and time in the YYMMDDHHMMSS (24 hour) format. Range A valid date and time. Related Commands: SETDATE, SETTIME, TIMEDSP. Example OUTPUT 718;"TIMEDATE 881231135501;" Sets the analyzer time and date to 1:55:01 on 31 December 1988.
TIMEDSP Time Display Enables the display of the time and date on the spectrum analyzer screen. Syntax OFF / ON XT IMEDSP Equivalent Softkey: TIHERATE 01 OFF . Related Commands: ANNOT, SETDATE, SETTIME, TIMEDATE.
TITLE Title TITLE Title Activates the screen title mode. The title is displayed above the top graticule and is left justified. Syntax r t i t l e t o b e dlsplayed 7 c h a r a c t e r T I T L E del i m i t e r XTITLE Delimiter Description/Default Range Matching characters marking the beginning and end of the list of - 1 \ @ = / ^ $ % ; ! ’ : ” & analyzer commands. Character Any valid character. See “LB” for additional characters available. Up to 53 characters.
TM Trigger Mode Selects a trigger mode: free, line, video, TV, or external. Syntax XTM Equivalent Softkeys: The keys accessed by L‘TRIG). Related Commands: DL. Example OUTPUT 718;"TM EXT;" Activates the extol trigger mode. Description The conditions of the four trigger modes are as follows: FREE allows the next sweep to start as soon as possible after the last sweep. The functions of TM FREE and FIZZ RUN are identical.
TM Trigger Mode Query Response QTM Programming Commands 5-555
TO1 Third-Order Intermodulation Measurement Turns on or off the third-order inter-modulation (TOI) measurement. Syntax Equivalent Softkey: TO1 ClN OFF . Related Commands: AUNITS, MKPX, TH, TOIR. Example OUTPUT 718*"MOV TO1, 1." , , OUTPUT 718*"TOIR'." f -, ENTER 718;Toi PRINT 'Third-order intermodulation is ",Toi OUTPUT 718;"MOV TOI,O;" Tums on the third-order intemnodul&ion measurement. Queries TOIR. TOIR contains the results of the third-order intermdulation measurement.
TO1 Third-Order Intermodulation Measurement 4. Measures the levels of the four signals (tone A, tone B, distortion A, and distortion B) and calculates the third-order intermodulation intercept.
TOIR Third-Order Intermodulation Response Returns the intercept point for the highest third-order intermodulation product measured by the third-order intermodulation measurement (TOI). Syntax TOIR XTOIR Related Commands: AUNITS, MKPX, TH, TOI. Example OUTPUT 718;"MOV TOI,l;" OUTPUT 718*"TOIR'*" 8 -# ENTER 718;Toi PRINT "Third-order intermodulation is ",Toi OUTPUT 718;"MOV TOI,O;" Turns on the third-order intermodul&ion nwasurmt. Queries TOIR.
TRA/TRB/TRC Trace Data Input and Output TRA/TRB/TRC Trace Data Input and Output The TRA/TRB/TRC commands provide a method for returning or storing 16-bit trace values. Syntax data b y t e / & EOI XTRA Use the same syntax for TRB and TRC as shown for TRA, just substitute TRB or TRC for TRA. Item Number Msb length Lsb length Data byte Data byte & EOI 1 Description/Default Range nteger number range Any real or integer number.
TRA/TRB/TRC Trace Data Input and Output Sends the trace data to the computer: Activates continuous sweep mode 120 ENTER 718;Trace-a(*) 130 OUTPUT 718;"CONTS;" 140 END Description Trace data that is input in the A-block or the I-block format is treated as measurement units independent of trace data format (TDF). Enter words in measurement units only. The output format is specified according to TDF and MDS. The command may be used to input integer data to traces. See “Saving Trace Data” in Chapter 3.
TRCMEM Trace Memory TRCMEM Trace Memory Returns a nonnegative integer that indicates the total number of trace registers available for SAVET and RCLT. syntax function path only Related Commands: ACTDEF, DISPOSE, FUNCDEF, RCLT, SAVET, TRDEF Example OUTPUT 718;"TRCMEM?;" ENTER 718;Number DISP Number Gets the total number of trace registers.
TRDEF Trace Define Creates a user-defined trace. Syntax TROEF character b p r e d e f i n e d v a r i a b l e huuser-defined voriobl 4 p r e d e f i n e d f u n c t i o n G Item Character User-defined variable trace element Description/Default A I / Range Any valid character. 2 to 11 characters long, A through Z and the underscore (the underscore should be used as the second character of the label). A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
TRDEF Trace Define Description The TRDEF command defines a trace and the number of points the trace will contain. Each trace element consists of 16 bits and stores the trace amplitude in measurement units. See the description for the TDF M format that is described in “Different Formats for Trace Data Transfers” in Chapter 3 for more information about measurement units. Query Response The query response returns the number of trace elements in the trace.
TRDSP Trace Display Turns on or off the display of trace A, B, or C without clearing the trace (measurements can still be taken). Syntax Related Commands: TRPRST, TRSTAT. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718;"TRDSP TRA,OFF;" Description TRDSP OFF reduces the time duration between sweeps.
TRGRPH Trace Graph TRGRPH Trace Graph Displays a compressed trace on the spectrum analyzer display. Syntax e x p a n d i n g d i s p l a y u s e r - d e f i n e d Description/Default Item Number t r a c e 0 to 4000 for the z coordinate, 0 to 8000 for the y coordinate. Any valid integer. 0 to 100. Number (expanding factor) Any valid integer. User-defined trace Range A trace defined by the TRDEF command. Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace.
TRGRPH Trace Graph Description The x and y coordinates specify the position of the first trace element. Each horizontal division represents 40 x coordinates. Each vertical division represents 1000 9 coordinates. The display address is inoperative; it is specified for backward compatibility only. The trace can be expanded according to the scale determined by the expanding factor.
TRMATH Trace Math TRMATH Trace Math Executes a list of spectrum analyzer commands at the end of each sweep. Syntax / s t r i n g A - b l o c k l - b l o c k d a t a d a t a d a t a f i e l d character f i e l d f i e l d -1 character & EOI Description/Default Item Range Delimiter Matching characters marking the beginning and end of the list of - ) \ @ = / ^ $ % ; ! ’ : ” & analyzer commands. Analyzer Command Any spectrum analyzer command except TS.
TRMATH Trace Math Example The program below halves the amplitude of trace A and moves it to trace B. OUTPUT 718;"CLRW TRA;VIEW TRB;" Displays trace B OUTPUT 718;"DISPOSE TRMATH;" Disposes of existing TRiUATH commands. OUTPUT 718;"TRMATH! DIV TRB,TRA,2! ;" LXwio!.es trace A by 2 and moves it into trace B Description The TRMATH command executes the list of spectrum analyzer commands at the end of each sweep. Any spectrum analyzer command except TS is allowed within the list of commands.
TRPRST Trace Preset TRPRST Trace Preset Sets the trace operations to their preset values. Syntax Related Commands: AMB, BLANK, CLRDSP, CLRW, DISPOSE, DL, IP, TH.
TRSTAT Trace Status Returns the status of traces A, B, and C: clear write, blank, view, minimum hold, or maximum hold. Syntax XTRSTAT Related Commands: BLANK, CLRW, DET, MINH, TRDSP, VIEW. Example This example returns the measurement state of traces A, B, and C. DIM States$[40] OUTPUT 718;"TRSTAT?;" ENTER 718 USING I'-K";States$ PRINT States$ Declares arra2/ for results. Returns the status results to the computer: Prints out status of traces.
TS ‘Ihke Sweep TS Thke Sweep Starts and completes one full sweep before the next command is executed. Syntax XTS Related Commands: SNGLS, TM. Example OUTPUT 718;"SNGLS;TS;" Activates the single-sweep mode, and performs a take sweep. Description A take sweep is required for each sweep in the single-sweep mode. TS prevents further input from the interface bus until the sweep is completed to allow synchronization with other instruments.
TVLINE TV Line Selects which horizontal line of video to trigger on. Syntax I ine XTVL INE Number Range Description/Default Item Any valid integer number. Default value is 17. Equivalent Softkey: TV LIXIZ t . Options Required: Options 101 and 102, or Option 301. Preset Value: 17. Related Commands: HAVE, TVSFRM, TVSTND. Example OUTPUT 718;"TVLINE 20;" Query Response o u t p u t t e r m i n a t i o n 5-572 Programming Commands + 1 to 1012.
TVSFRM TV Frame TVSFRM TV Frame Selects the type of video frame to trigger on. Syntax Options Required: Options 101 and 102, or Option 301. Related Commands: HAVE, TVLINE, TVSYNC. Example OUTPUT 718;"TVSFRM BOTH;" Description The ODD and EVEN trigger are for interlaced formats, and VERTICAL is for noninterlaced display formats. The functions of TVSFRM ODD, TVSFRM EVEN, and TVSFRM BOTH are identical to TV TRIG ODD FLD , TV TRIG EVEN FLD , and TV TRfG VERT INT , respectively.
TVSFRM TV Frame Query Response OTVSFRM 5-574 Programming Commands
TVSTND TV Standard TVSTND TV Standard Selects the triggering for NTSC, PAL, PAL-M, and SECAM-L formats. Syntax XTVSTND Equivalent Softkey: TV Standard. Options Required: Options 101 and 102, or Option 301. Related Commands: TM, TVLINE, TVSYNC. Example OUTPUT 718;"TVSTND PAL;" Description TVSTND sets corrections for TVLINE for each standard format.
TVSTND TV Standard Query Response QTVSTND 5.
TVSYNC TV Sync TVSYNC TV Sync Selects the polarity of video modulation to trigger on. syntax Equivalent Softkey: TV SYNC NEG POS . Options Required: Options 101 and 102, or Option 301. Preset Value: TVSYNC NEG. Related Commands: HAVE, TVLINE, TVSFRM, TVSTND. Example OUTPUT 718; “TVSYNC POS; ” Description TVSYNC allows you to trigger on the negative or positive modulation video format. TVSTND changes the triggering polarity for the selected video format.
TWNDOW Trace Window Creates a window trace array for the fast Fourier transform (FFT) function. Syntax 7 d e s t i n a t i o n r w i n d o w TWNDDW b u s e r - d e f i n e d b t r a c e t r a c e r a n g e Item / / Description/Default User-defined trace A trace defined by the TRDEF command. Trace Range A segment of trace A, trace B, trace C, or a user-defined trace Range Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
UP up UP UP Increases the value of the active function by the applicable step size. Syntax ( UP Related Commands: See the list of active functions listed in the description for UP Example OUTPUT 718;"IP;MKN;RB 1OKHZ;MKPK NH;UP;" Increases the resolution bandwidth to 30 kHz because MKPK NH does not change the active function. Description Before executing UP, be sure that the function to be decreased is the active function.
USTATE User State Query Response USTATE? returns the user state to the computer. Also returned are instructions required by the spectrum analyzer when the user state information is transmitted to the spectrum analyzer. The contents of user memory can be restored by executing USTATE followed by the A-block data retrieved by a previous “USTATE?;” command. < #A msb l e n g t h Isb l e n g t h c h a r a c t e r I I QUSTATE Programming Commands 5.
VARDEF Variable Definition Creates a user-defined variable and assigns it a value. Syntax v a r i a b l e name / \ 7 initial VARDEF value 7 c number c b predefined variable d buser-defined variable/ * predefined function / b trace element / XVARDEF Item Description/Default Rwte Character Any valid character. Number Any real or integer number. Real number range. User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable name.
VARDEF Variable Definition Example OUTPUT 718;"VARDEF V-AR,O;" DISP "ENTER THE VALUE OF THE VARIABLE USING THE ANALYZER KEYS" OUTPUT 718;"V,AR EP;" OUTPUT 718;"V,AR?;" ENTER 718;N PRINT N OUTPUT 718;"IP;" OUTPUT 718."V # - AR'." *, Lk$nes variable called V-AR and assigns it a value of 0. The value of VAR is changed by using the front-panel controls. Returns entered value of V-AR to the computer: LGpluys value on the computer screen.
VARIANCE Variance of Trace Amplitudes Returns the amplitude variance of the specified trace, in measurement units. Syntax . . VAR I ANCE Item Description/Default User-defined trace A trace delined by the TRDEF command. Trace range A segment of trace A, trace B, trace C, or a user-defined trace. Range Any valid trace name. Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data. Related Commands: MEAN, RMS, STDEV.
VARIANCE Variance of Trace Amplitudes Query Response Programming Commands 5-585
VAVG Video Average Enables the video-averaging function, which averages trace points to smooth the displayed trace. Syntax X”A”G Item Number Description/Default Rwse 1 to 16384. Any valid integer. Default is 100. Equivalent Softkey: VID AVE ON OFF . Related Commands: AUTO, CLRAVG, IP, SMOOTH. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718."VAVG 150." , 3 Video averages the trace.
VB Video Bandwidth VB Video Bandwidth Specifies the video bandwidth, which is a post-detection, low-pass filter. Syntax ,- f r e q u e n c y -\ ( VB 1 Item Number ‘. P ;’ 3-6 ‘I . ...__..’ Description/Default Range 30 Hz to 3 MHz. Any real or integer number. Default unit is Hz. Equivalent Softkey: VID l3W AUTO NAN. Preset State: 1 MHz. Step Increment: In a 1, 3, 10 sequence. Related Commands: AUTO, RB, SP, ST, VBR. Example OUTPUT 718;"VB 10KHZ;" Changes the video bandwidth to 10 kHz.
VB Video Bandwidth Query Response output t e r m i n a t i o n 5-588 Programming Commands +
VBR Video Bandwidth Ratio VBR Video Bandwidth Ratio The VBR parameter is multiplied by the resolution bandwidth to determine the automatic setting of video bandwidth. Syntax Description/Default Item Number Any valid real number. hnge 0 to 3000000 Equivalent Softkey: VWW/RBW RATIO . Preset State: 0.300. Step Increment: 1, 3, 10 sequence. Related Commands: AUTO, RB, SP, VB.
VIEW View Trace Displays trace A, trace B, or trace C, and stops taking new data into the viewed trace. Syntax Equivalent Softkey: VIEW A , VIEW B , and VIEW C . Related Commands: BLANK, CLRW, MINH, MXMH. Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more information. Example OUTPUT 718;"VIEW TRA;" Description In the VIEW mode the trace is not updated. When VIEW is executed, the contents of the trace are stored in display memory.
WAIT Wait WAIT Wait Suspends all spectrum analyzer operation for the specified time duration. /-wait t i m e \ WAIT . ../ + / p r e d e f i n e d % u s e r - d e f i n e d h p r e d e f i n e d b Item Number t r a c e v a r i a b l e v a r i a b l e 2 f u n c t i o n J element J Description/Default Any real or integer number. Default unit is seconds. Rule 1 ms to 1000 8. Example Use WAIT to suspend spectrum analyzer operation.
WINNEXT Window Next When using the windows display mode, you can use WINNEXT to select the upper or lower window as the active window. Syntax Equivalent Front-Panel Key (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): @EQ. Related Commands: WINON, WINOFF. Example OUTPUT 718~"WINON~" OUTPUT 718;"WINNE;T;" Turns on the windows display mode. Selects the window that is currently not active to be the active window.
WINOFF Window Off WINOFF Window Off Turns off the windows display mode. Syntax WI NOFF Equivalent Softkey (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): WINROWS OFF. Related Commands: WINON. Example OUTPUT 718;"WINON;" OUTPUT 718; “WINNEXT; ” OUTPUT 718; “WINOFF; ” Turns on the windows display mode. Selects the window that is currently not active to be the active window. Turns ofl the windows display mode.
WINON Window ON Displays the two windows on the spectrum analyzer display. Syntax WINON Equivalent Front-Panel Key (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): (ONJ. Related Commands: WINOFF, WINNEXT, WINZOOM. Example OUTPUT 718;"WINON;" Description WINON activates the windows display mode and the zone marker. Windows display mode: When the windows display mode is first activated, there will be two windows displayed on the spectrum analyzer display.
WINON Window ON ‘Ihble 5-11. Programming Commands That Exit The Windows Display Mode Description Command ACP Measures adjacent channel power. CAL Performs the calibration routines. CHP Measures channel power. CNF Performs the confidence test. DISPOSE ALL or ERASE Disposes of the contents of user memory. FFTAUTO, FFTCONTS, FFTSNGL! Initiates a FFT measurement. GDVRUTIL Accesses the time-Sate functions. IP Performs an instrument preset.
WINZOOM Window Zoom When using the windows display mode, you can use WINZOOM to either expand the size of the active window so that it fills the entire spectrum analyzer display, or display both the upper and lower windows on the spectrum analyzer display. Syntax Equivalent Front-Panel Key (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): (ZOOM). Related Commands: WINNEXT, WINON. Example OUTPUT 718;"WINON;" OUTPUT 718;"WINZOOM;" Turns on the windows display rmde.
XCH Exchange XCH Exchange Exchanges the contents of sources 1 and 2. Syntax u s e r - d e f i n e d v a r i a b l e XXCH Item Description/Default Range User-defined trace A trace defined by the TRDEF command. Any valid trace name. User-defined A variable deEned by VARDEF or ACTDEF commands. Any valid variable name. variable Predeflned variable A command that acts as a variable. Refer to Table 5-l. Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
XCH Exchange Example OUTPUT 718;"XCH TRA,TRB;" Exchanges the contents of trace A with trace B Description When the source is longer than the destination, the source is truncated to fit. When the source is shorter than the destination, the last element is repeated to fill the destination.
ZMKCNTR Zone Marker at Center Frequency ZMKCNTR Zone Marker at Center Frequency Positions the zone marker at the specified frequency. Syntax zone m a r k e r f r e q u e n c y \ HZ / / I .: ..’ ... / / XZMKCNTR Item Number Description/Default Any real or integer number. Default unit is Hz. Range Frequency range of the spectrum analyzer. Equivalent Softkey (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): ZONE CENTER .
ZMKCNTR Zone Marker at Center Frequency Query Response m a r k e r / ZO”e f r e q u e n c y \ o u t p u t t e r m i n a t i o n I 5.
ZMKPKNL Zone Marker for Next Left Peak ZMKPKNL Zone Marker for Next Left Peak Places the zone marker at the next signal peak that is left of the zone marker’s current position. Syntax XZMKPKNL Equivalent Softkey (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): ZONE PK LEFT, Related Commands: MKPX, WINON, ZMKCNTR, ZMKSPAN, ZMKPKNR. Example OUTPUT 718;"WINON;" OUTPUT 718;"ZMKPKNL;" Turns on the windows display mode.
ZMKPKNR Zone Marker for Next Right Peak Places the zone marker at the next peak to the right of the zone marker’s current position. Syntax XZMKPKNR Equivalent Softkey (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): ZOIJE PK RfGHT . Related Commands: MKPX, WINON, ZMKCNTR, ZMKSPAN, ZMKPKNL. Example OUTPUT 718;"WINON;" OUTPUT 718;"ZMKPKNR;" Turns on the windows display wmd.e.
ZMKSPAN Zone Marker Span ZMKSPAN Zone Marker Span Changes the width of the zone marker. Syntax XZMKSPAN I Number Item Description/Default Any real or integer number. Default unit is Hz. ! Range 0 to maximum frequency span of the I Equivalent Softkey (HP 85913, HP 85933, HP 85943, HP 85953, or HP 85963 only): ZOESE SPAN. Default value: l/10 of the spectrum analyzer’s frequency span. Related Commands: SP, WINON, ZMKCNTR.
ZMKSPAN Zone Marker Span Query Response t e r m i n a t i o n ---* QZMKSPAN 5.
Spectrum Analyzer Error Messages Error Messages The spectrum analyzer can generate various messages that appear on its screen during operation to indicate a problem. There are three types of messages: hardware error messages (H), user-created error messages (U), and informational messages (M). H Hardware error messages indicate the spectrum analyzer hardware is probably broken. Refer to Chapter 8 in the HP 8590 E-Series and L-Series Spectrum Analyzers User’s Guide for more information.
The preamplifier gain is set by using EXT?BNAL PkRAMPG . This message also sets SRQ 110. UJ) CAL: DATA NOT STORED CAL AMP NEEDED The correction factors are corrupt and cannot be stored. You need to perform the CAL FREQ & AMPTD routine before trying to store the correction factors. This message also sets SRQ 110. (U) CAL: FM SPAN SENS FAIL The spectrum analyzer could not set up span sensitivity of the FM coil. (H) CAL: GAIN FAIL Indicates the signal amplitude is too low during the CAL AMPTD routine.
calibration signal still cannot be found, press L-1, -37, (Hz) and perform the CAL FREQ or CAL FREQ 8~ AMPTD self-calibration routines. This message also sets SRQ 110. (U) and U-U CAL: SPAN SENS FAIL The self-calibration span sensitivity routine failed. This message also sets SRQ 110. (H) CAL: USING DEFAUIX DA’IA Indicates that the calibration data is corrupt and the default correction factors are being used. Interruption of the self-calibration routines or an error can cause this problem.
Hewlett-Packard and is available for use with the HP 8590 Series spectrum analyzer. An example of a personality is the HP 85716A CATV system monitor personality. (U) FAIL:- _ _ An error was discovered during the power-up check. The 4-digit by lo-digit code indicates the type of error. Error codes are described in the spectrum analyzer’s service guide. (H) File type incompatible Indicates that the selected file is not a display image file. The file name for a display image file is always preceded by an “i.
completed. See the description for INVALID CARD above for more information about the possible causes of this message. (U) and (H) INVALID CARD: DATA ERROR Indicates the data could not be retrieved from the memory card. (U) and (H) INVALID CARD: DIRECI?ORY Indicates the memory card has not been formatted. (U) INVALID CARD: NO CARD Indicates a memory card has not been inserted.
INVALID KEYLBL: _ - - Indicates that the specified key label contains too many characters. A key label is limited to 8 printable characters per label line. (U) INVALID KEYNAME:- - - The specified key name is not allowed. (The key name may have conflicted with a spectrum analyzer programming command.) lb avoid this problem, use an underscore as the second character in the key name, or avoid beginning the key name with the following pairs of letters: LB, OA, OL, TA, TB, TR, MA, MF, TS, OT, and DR.
INVALID TRACENAME: - - - Indicates the specified trace could not be saved because the trace name is not allowed. ‘lb avoid this problem, use an underscore as the second character in the trace name, or avoid beginning the trace name with the following pairs of letters: LB, OA, OL, TA, TB, TR, MA, MF, TS, OT, and DR. (U) INVALID VALUE PARAMETER: - - - The specified value parameter is invalid. (U) INVALID VARDEF: - - - The specified variable name is not allowed.
OVEN COLD Indicates that the spectrum analyzer has been powered up for less than 5 minutes. (The actual temperature of the precision frequency oven is not measured.) (Option 004 only.) (M) PARAMETER ERROR: - - - The specified parameter is not recognized by the spectrum analyzer. See the appropriate programming command description to determine the correct parameters. (U) PASSCODE NEEDED Indicates that the function cannot be accessed without the pass code.
Signal not found Indicates the PEAK ZOOM routine did not find a valid signal. (U) Signals do not fit expected % AM pattern Indicates that the % AM routine cannot perform the percent AM measurement because the on-screen signals do not have the characteristics of a carrier with two sidebands.
Trace A is not available Indicates that trace A is in the store-blank mode and cannot be used for limit-line testing. Use CLEAR WRfTE A or VIEW A to change trace A from the store-blank mode to the clear write mode, and then turn on limit-line testing. (U) UNDF KEY The softkey number is not recognized by the spectrum analyzer. (U) USING DEFAUIXS self cal needed Indicates that the current correction factors are the default correction factors and that the CAL FREQ & AMPTD routine needs to be performed.
B HP-IB and Parallel Option 041 This appendix tells you how to connect a computer to your HP 8590 Series Option 041 spectrum analyzer with the Hewlett-Packard Interface Bus (HP-IB). Your spectrum analyzer has an HP-IB connector on the rear panel, as shown in Figure B-l. ‘0 0 PARALLEL @c-j@ @ 0 0 n n OPTION 041 cu133e Figure B-l. HP-IB Connector The HP-IB system utilizes a party-line bus structure. Devices such as the spectrum analyzer are connected on the party line with HP-IB cables.
C RS-232 and Parallel Option 043 What You’ll Learn in This Appendix This appendix explains how to connect a computer to your HP 8590 Series Option 043 spectrum analyzer using the RS-232 interface. It contains information pertaining to RS-232 signals, cable connections, and baud rate. Introducing the RS-232 Interface Your spectrum analyzer has an RS-232 connector on the rear panel, as shown in Figure C-l. lo PARALLEL 0 SERIAL .oJ 10. V v OPTION 043 cu134e Figure C-l.
n n n n Clear to send (CTS)-Input signal indicates that the external controller is ready to receive data. Data terminal ready (DTR)-Output signal from the spectrum analyzer. When the input buffer is full, this line goes false. Data set ready (DSR)-Is not available. Data carrier detect (DCD)-Input to the spectrum analyzer. If DCD is true, the spectrum analyzer will receive data from the controller. If false, no data will be input. The data will be ignored.
Person0 Analyzer computer TxD 2 > > 2 RxD 3 TxD RxD 3 1 DCD RTS 4 ;a; ,” s 4 DTR no 9 GND 7 DCD 8 DTR 2 0 connection RI cu135e Figure C-2. HP 245426 25-pin to g-pin Full Handshaking Connection Personal Analyzer Computer DCD 1 < < 7 RTS RxD 2 TxD 3 DTR 4 GND 5 5 GND RTS 7 1 I:: ,” RI 9 DCD z 4 DTR no 9 RI connection cu136e Figure C-3.
Personal Computer Analyzer RxD 2 < < 3 TxD TxD 3 > > 2 RxD GND 5 < < 5 GND 7 RTS 6 CTS 1 DCD Figure C-5. O-pin to g-pin S-Wire Connection Connecting a ThinkJet Printer lb connect an HP ThinkJet printer to the spectrum analyzer, use the information in Figure C-6, ‘lhble C-l, ‘Iable C-2, and ‘Ihble C-3. Be sure to turn the printer off and then back on u$er changing the printer settings. See the ThinkJet Printer Manual for more information.
able G2. Setting of RS-232 Switches 1 Switch 1 Setting 1 Comments 1 Number 1 I I IUD 1 1 DTR. I ‘Ihble C-3. Setting the Baud Rate Baud Setting for Setting for Switch 5 Rate Switch 4 1200 up 2400 up 9600 down up down down Connecting a LaserJet Printer ‘lb connect an HP LaserJet printer to the spectrum analyzer, use the information in Figure C-7.
Connecting a Modem To connect a modem to the spectrum analyzer, use the information in Figure C-8. The connection is for a Hayes 1200 Modem and the spectrum analyzer. Modem Allalyzer TxD 2 < < 3 TxD RrD 3 > > 2 RxD RTS 4 > 7 RTS CTS 5 < \ > 8 CTS 6 DSR DSR 6 < > GND 7 < < 5 GND DCD 8 > > 1 DCD DTR 2 0 < RI no 22 4 DTR < connection 9 RI cu140e Figure C-8. 25-pin to g-pin Modem Connection System Settings Select 1200 baud for both the modem and the spectrum analyzer.
Setting the Spectrum Analyzer Baud Rate The baud rates of the spectrum analyzer and the personal computer must be the same. For example, to set the spectrum analyzer to 9600 baud, use the following procedure: 1. Press the @5EiZJ Mars 1 of 3 . 2. Press the BAUD RATE softkey. 3. Press these keys: 9600,1Hz). lb set the baud rate to 1200 baud, press these keys: 1200, (KJ. Note Some of the programs in this manual use 1200 baud for proper operation.
Index A A2, 5-9 A3, 5-9 A4, 5-9 A-block format, 3-24 ABORT, 5-29 executing ABORT in a DLP, 5-30 ABS, 5-31 absolute value, 5-31 access the DLP editor, 4-16 ACP, 5-33 ACPBW, 5-35 ACPCONTM, 5-37 ACPE, 5-38 ACPGR, 5-40 ACPGRAPH, 5-42 ACP manual or auto, 5-44 ACPMK, 5-43 ACPPAR, 5-44 ACPSNGLM, 5-46 ACPSP, 5-47 ACTDEF, 5-49 activate marker, 5-327 active function, 5-54, 5-228 decreasing value with DN, 5-137 active function definition, 5-49 active functions, 5-54 ACTVF, 5-54 ADD, 5-55 address changing the HP-IB add
B Bl, 5-9 B2, 5-9 B3, 5-9 B4, 5-9 back space label function, 5-266 Band Lock softkey. See HNLOCK base band instrument preset, 5-267 BASIC INPUT command, 2-6, 2-7 REAL command, 2-8 BAUDRATE, 5-76 baud rate of spectrum analyzer, 5-76 BAUD RATE softkey. See BAUDRATE B format, 3-22 binary, 5-523 BIT, 5-78 bit checking, 5-78 BITF, 5-80 bit flag, 5-80 BL, 5-9 BLANK, 5-82 BLANK A, BLANK B, BLANK C softkey. See BLANK blanking part of the display. See CLRBOX blank trace, 5-82 B * C softkey.
CNTLI, 5-110 CNT RES AUTO MAN softkey. See MKFCR COMB, 5-111 comb generator control COMB, 5-l 11 COMB GEN ON OFF softkey. See COMB combining two traces, 5-114 COM command, 2-3 command complete, 5-522 command mnemonic, 5-2 commands, 2-2 command terminators, 5-2 commenting programming lines, 2-10 compatible commands, 5-9-10 COMPRESS, 5- 112 compress trace, 5-l 12 COMPUTE ACPGRAPH softkey.
demodulation, 5-128 DET, 5-129 detection mode, 5-129 DETECTOR PK SP NG, DETECTOR SMP PK softkey. See DET determining available analyzer memory, 4-12 determining if a function is active, 5-54 determining the amount of memory needed for a DLP, 4-12 determining the amount of space on a RAM card, 4-12 determining the trace status, 5-570 digit, 5-3 display, 5- 143 display address, 5- 124 DISPLAY CNTL I softkey.
XCH, 5-598 excursion marker peak excursion, 5-352 executing a DLP, 4-9 executing a DLP with a softkey, 4-9 executing a DLP within a program, 4-9 EXP, 5-153 exponent, 5-153 external keyboard, 4-15 external keyboard installation, 4-15 external preamplifier gain, 5-445 EXTERNAL softkey.
FUNCDEF command avoiding problems, 4-3 functional index, 5-1, 5-11-28 function keys on the external keyboard, 4-16 G GATE, 5-186 gate control, 5-187 GATECTL, 5-187 GATE CTL EDGE LVL softkey. See GATECTL gate delay, 5-189, 5-191 GATE DELAY softkey. See GD, GDRVGDEL gate length, 5-193 GATE LENGTH softkey. See GDRVGLEN, GL GATE ON OFF softkey.
END command, 2-2 ENTER, 3-9 LOCAL command, 2-2 REAL command, 2-6 USING command, 3-9 HP-IB interface, l-2 HP-IB interface bus, B-l HP Vectra personal computer HP-IB interface, l-7 RS-232 interface, l-9 I IB, 5-234 I-block format, 3-25 ID, 5-235 identify, 5-235 IF THEN ELSE ENDIF, 5-236 if the spectrum analyzer is not responding, 4-21 illegal spectrum analyzer command, 5-522 impedance INZ, 5-241 impedance units, 5-4 increasing the value UP, 5-579 informational messages, A-l input B, 5-234 input impedance, 5-2
limits failed, 5-272 mirror limit line, 5-280 relative limit lines, 5-283 limits failed, 5-272 linear scale, 5-295 line-feed, 3-9 line feed label function, 5-266 line fill, 5-293 line number TVLINE, 5-572 LINE softkey. See TM line trigger mode, 5-554 LINFILL, 5-293 LMT DISP Y N AUTO softkey. See LIMIDISP LN, 5-295 LOAD, 5-296 LOAD FILE softkey.
range, 3-26 measure mode, 5-310 measuring harmonic distortion HP-IB, 3-15-17 RS-232, 3-18-19 MEM, 5-312 memory determining the amount needed for a DLP, 4-12 memory available, 5-3 12 memory card determining information with HAVE, 5-226 MENU, 5-313 MERGE, 5-315 merge two traces, 5-315 MF, 5-317 M format, 3-26-27 MIN, 5-319 MINH, 5-321 MIN HOLD C softkey.
NRL, 5-384 NTSC triggering, 5-575 number, 5-3 number of dB, 5-380 0 01, 5-10 02, 5-10 03, 5-10 04, 5-10 OA, 5-386 OBW, 5-387 OBWPCT, 5-389 OCC BW % POWER softkey. See OBWPCT OCCUPIED BANDWDTH softkey. See OBW occupied bandwidth, 5-387 occupied bandwidth percent, 5-389 octal to binary, 5-523 OL, 3-11, 5-390 on cycle, 5-391 ONCYCLE, 5-391 on delay, 5-393 ONDELAY, 5-393 on end of sweep, 5-395 ONEOS, 5-395 ON key.
PK MODE oDL NRM softkey. See PKDLMODE PKPOS, 5-430 PKRES, 5-431 PKSORT, 5-433 PK SORT FRQ AMP softkey. See PKSORT PK TABLE ON OFF softkey.
PWRUPTIME, 5-456 It Rl, 5-10 R2, 5-10 R3, 5-10 R4, 5-10 RAM card, 5-481, 5-533 storing DLPs on a RAM card, 4-10 random-access memory card, 5-481, 5-533 ratio setting the video bandwidth ratio, 5-589 RB, 5-457 RC, 5-10 RCLS, 5-459 RCLT, 5-460 reading trace data, 3-2 read-only memory card, 5-481, 5-533 real number range, 5-3 recalling with a prefix, 5-446 recall state, 5-459 recall trace, 5-460 recommended path, 5-2 records, 3-9 redrawing the analyzer display, 5-125 reference level, 5-468 marker to reference
SEGDEL, 5-483 segment delete, 5-483 segment entry for frequency limit lines, 5-485 segment entry for sweep time limit lines, 5-488 select frequency or time limit line, 5-274 selecting a trace window for FFT, 5-578 selecting polarity TVSYNC, 5-577 selecting the type of video frame, 5-573 selecting triggering for the TV standard formats, 5-575 SENTER, 5-485 SENTERT, 5-488 SER, 5-491 serial number, 5-491 service request mask, 5-473 set date, 5-492 SETDATE, 5-492 SET DATE softkey.
marker step size, 5-358 STOP FREQ softkey. See FB stop frequency, 5-158 STOR, 5-531 store, 5-531 storing DLPs on a RAM card, 4-10 SUB, 5-534 subtract, 5-534 SUM, 5-536 sum of squared trace amplitudes, 5-537 sum of trace amplitudes, 5-536 SUMSQR, 5-537 sv, 5-10 SWEEP CONT SGL softkey. See CONT, SNGLS Sweep Couple, 5-538 SWEEP DELAY softkey. See GDRVSWDE sweep time, 5-526 marker readout, 5-354 sweep time for the time window, 5-211 SWEEP TIME softkey. See GDRVSWP SWPCPL, 5-538 SWP CPLG SR SA softkey.
transfer A, 5-542 transfer B, 5-543 transferring trace A data, 5-542 transferring trace B data, 5-543 transfer trace B to trace C, 5-84 TRA/TRB/TRC, 5-559 TRB, 5-559 TRC, 5-559 TRCMEM, 5-561 TRDEF, 5-562 TRDSP, 5-564 TRGRPH, 5-565 triggering the spectrum analyzer, 5-554 trigger mode, 5-554 TRIG key. See TM TRIG MKR ON OFF softkey. See GDRVTIM TRMATH, 5-567 TRPRST, 5-569 TRSTAT, 5-570 TS, 2-2, 2-3, 5-571 turning off markers MKOFF, 5-346 TV frame, 5-573 TV line, 5-572 TVLINE, 5-572 TV LINE # softkey.
window next, 5-592 window off, 5-593 window on, 5-594 windows commands WINNEXT, 5-592 WINOFF, 5-593 WINON, 5-594 WINZOOM, 5-596 ZMKCNTR, 5-599 ZMKPKNL, 5-601 ZMKPKNR, 5-602 ZMKSPAN, 5-603 WINDOWS OFF softkey. See WINOFF window zoom, 5-596 WINNEXT, 5-592 WINOFF, 5-593 WINON, 5-594 WINZOOM, 5-596 writing your first program, 2-2 Index-l 6 X XCH, 5-597 Z ZMKCNTR, 5-599 ZMKPKNL, 5-601 ZMKPKNR, 5-602 ZMKSPAN, 5-603 ZONE CENTER softkey.