Manual Comandos Spectrum
Manual Comandos Spectrum
This manual may contain references to HP or Hewlett-Packard. Please note that Hewlett-
Packard'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.
For example, model number HP8648A is now model number Agilent 8648A.
We’ve added this manual to the Agilent website in an effort to help you support your
product. This manual provides the best information we could find. It may be incomplete
or contain dated information, and the scan quality may not be ideal. If we find a better
copy in the future, we will add it to the Agilent website.
Agilent no longer sells or supports this product. You will find any other available
product information on the Agilent Test & Measurement website:
www.tm.agilent.com
Search for the model number of this product, and the resulting product page will guide
you to any available information. Our service centers may be able to perform calibration
if no repair parts are needed, but no other support from Agilent is available.
Programmer’s Guide
HEWLETT
Did PACKARD
Regulatory Information
The Calibration Guide shipped with your instrument contains the regulatory information.
Warranty
This Hewlett-Packard instrument product is warranted against defects in material and
workmanship for a period of one year from date of shipment. During the warranty period,
Hewlett-Packard Company will, at its option, either repair or replace products which prove to
be defective.
For warranty service or repair, this product must be returned to a service facility designated by
Hewlett-Packard. Buyer shall prepay shipping charges to Hewlett-Packard and Hewlett-Packard
shall pay shipping charges to return the product to Buyer. However, Buyer shall pay all
shipping charges, duties, and taxes for products returned to Hewlett-Packard from another
country.
Hewlett-Packard warrants that its software and firmware designated by Hewlett-Packard for
use with an instrument will execute its programming instructions when properly installed on
that instrument. Hewlett-Packard does not warrant that the operation of the instrument, or
software, or firmware will be uninterrupted or error-free.
LIMITATION OF WARRANTY
The foregoing warranty shall not apply to defects resulting from improper or inadequate
maintenance by Buyer, Buyer-supplied software or interfacing, unauthorized modification or
misuse, operation outside of the environmental specifications for the product, or improper
site preparation or maintenance.
NO OTHER WARRANTY IS EXPRESSED OR IMPLIED. HEWLETT-PACKARD SPECIFICALLY
DISCLAIMS THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE.
EXCLUSIVE REMEDIES
THE REMEDIES PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES.
HEWLETT-PACKARD SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT,
OR ANY OTHER LEGAL THEORY.
...
III
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.
Instruction The instruction documentation symbol. The product is marked with this
Manual symbol when it is necessary for the user to refer to the instruction in the
manual.
iv
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 The power cord is connected to internal capacitors that may remain live
for 10 seconds after disconnecting the plug from its power supply.
Warning These servicing instructions are for use by qualified personnel only.
To avoid electrical shock, do not perform any servicing unless you are
qualified to do so.
V
How to Use This Guide
vi
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 Tells you how to make measurements with your spectrum analyzer.
n Describes the spectrum analyzer features.
n Tells you what to do in case of a failure.
HP 8590 E-Series and L.-Series Spectrum Analyzer Quick Reference Guide
w Describes how to make a simple measurement with your spectrum analyzer.
n Briefly describes the spectrum analyzer functions.
w Lists all the programming commands.
vii
Contents
1. Preparing for Use
What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . l-l
Connecting Your Spectrum Analyzer to a Computer . . . . . . . . . . . . . l-l
Configuring Your Computer System . . . . . . . . . . . . . . . . . . . . . l-l
Connecting the Computer to the Spectrum Analyzer . . . . . . . . . . . . . l-2
For the HP-IB Interface . . . . . . . . . . . . . . . . . . . . . . . . . l-2
For the RS-232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . l-2
The Test Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-2
HP-IB Connections for the HP 9000 Series 200 Technical Computers . . . . . . . l-3
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-3
Interconnection Instructions . . . . . . . . . . . . . . . . . . . . . . . . l-3
Test Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-4
HP-IB Connections for the HP 9000 Series 300 Technical Computers . . . . . . . 1-5
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Interconnection Instructions . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Test Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-6
HP-IB Connections for the HP Vectra Personal Computer . . . . . . . . . . . . l-7
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-7
Interconnection Instructions . . . . . . . . . . . . . . . . . . . . . . . . l-7
Test Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
RS-232 Connections for the HP Vectra or IBM PC/AT Personal Computer . . . . l-9
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-9
Interconnection Instructions . . . . . . . . . . . . . . . . . . . . . . . . l-9
Test Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-10
Printing or Plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-11
Printing Using an HP-IB Interface . . . . . . . . . . . . . . . . . . . . . . l-11
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-11
Interconnection and Printing Instructions . . . . . . . . . . . . . . . . . . l-11
Plotting Using an HP-IB Interface . . . . . . . . . . . . . . . . . . . . . . 1-14
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
Interconnection and Plotting Instructions . . . . . . . . . . . . . . . . . . 1-14
Printing Using an RS-232 Interface . . . . . . . . . . . . . . . . . . . . . 1-16
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
Interconnection and Printing Instructions . . . . . . . . . . . . . . . . . . 1-16
Plotting Using an RS-232 Interface . . . . . . . . . . . . . . . . . . . . . 1-18
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
Interconnection and Plotting Instructions . . . . . . . . . . . . . . . . . . 1-18
Printing after Plotting or Plotting after Printing . . . . . . . . . . . . . . . 1-19
Printing Using a Parallel Interface . . . . . . . . . . . . . . . . . . . . . l-20
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-20
Interconnection and Printing Instructions . . . . . . . . . . . . . . . . . . l-20
Plotting to an HP LaserJet Printer . . . . . . . . . . . . . . . . . . . . . l-22
Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-22
Interconnection and Plotting Instructions . . . . . . . . . . . . . . . . . . l-22
Printing after Plotting or Plotting after Printing . . . . . . . . . . . . . . . l-23
If There Is a Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . l-24
Contents-l
2. Writing a Program
What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . 2-l
Writing Your First Program . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Composing the Program . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 2-2
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 2-3
Modifying the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 2-4
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 2-5
Enhancing the Program with Variables . . . . . . . . . . . . . . . . . . . . 2-6
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 2-6
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 2-7
Getting Information from the Spectrum Analyzer . . . . . . . . . . . . . . . 2-8
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 2-8
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 2-9
Programming Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
3. Programming Topics
What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . 3-l
Controlling Trace Data with a Computer . . . . . . . . . . . . . . . . . . . 3-2
Reading Trace Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 3-2
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 3-3
Saving Trace Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 3-5
Reading Trace Data from a Computer Disk . . . . . . . . . . . . . . . . . . 3-6
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 3-6
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 3-6
Saving and Recalling Instrument States . . . . . . . . . . . . . . . . . . . . 3-7
Saving the Spectrum Analyzer’s State . . . . . . . . . . . . . . . . . . . . 3-7
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 3-8
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 3-10
Returning the Spectrum Analyzer to its Former State . . . . . . . . . . . . . 3-12
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 3-12
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 3-13
Measuring Harmonic Distortion . . . . . . . . . . . . . . . . . . . . . . . . 3-15
Program Example for the HP-IB Interface . . . . . . . . . . . . . . . . . . 3-15
Program Example for the RS-232 Interface . . . . . . . . . . . . . . . . . 3-18
Different Formats for Trace Data Transfers . . . . . . . . . . . . . . . . . . 3-20
P Formatt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20
Example of Using the P Format . . . . . . . . . . . . . . . . . . . . . . 3-21
B Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-22
Example of Using the B Format . . . . . . . . . . . . . . . . . . . . . . 3-22
A-Block Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24
Example of Using the A-Block Format . . . . . . . . . . . . . . . . . . . 3-24
I-Block Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25
Example of Using the I-Block Format . . . . . . . . . . . . . . . . . . . 3-25
M Formatt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26
Example of Using the M Format . . . . . . . . . . . . . . . . . . . . . 3-27
Contents-2
4. Creating and Using Downloadable Programs
What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . 4-l
WhatisaDLP? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-l
WhyUseaDLP?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-l
Creating a DLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
‘Ib Use a User-Defined Function within a DLP . . . . . . . . . . . . . . . . 4-3
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
To Use a User-Defined Variable within a DLP . . . . . . . . . . . . . . . . 4-4
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
To Use a User-Defined Trace within a DLP . . . . . . . . . . . . . . . . . . 4-5
Example . . . . . . . 4-5
To Enter Values’into a*DLP 1 : 1 1 1 1 1 1 1 : 1 1 1 1 1 1 1 : . . . . . . . 4-6
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
To Enter Values into a DLP by Using a Softkey . . . . . . . . . . . . . . . 4-6
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
To Create a Modular DLP . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Executing a DLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
To Execute a DLP by Using a Softkey . . . . . . . . . . . . . . . . . . . . 4-9
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
To Execute the DLP within a Program . . . . . . . . . . . . . . . . . . . 4-9
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
StoringDLPsonaRAMCard . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
‘IbStoreDLPsonaRAMCard . . . . . . . . . . . . . . . . . . . . . . . 4-10
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
To Load DLPs from a Memory Card into Analyzer Memory . . . . . . . . . . 4-11
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
Determining the Amount of Memory Needed for a DLP . . . . . . . . . . . . 4-12
‘lb Determine Available Analyzer Memory . . . . . . . . . . . . . . . . . . 4-12
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
To Determine the Amount of Space on a RAM Card . . . . . . . . . . . . . 4-12
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
To Delete a DLP from Spectrum Analyzer Memory . . . . . . . . . . . . . . 4-14
Example . . . . . . . . . . . . . . . 4-14
To Erase the DLP’frbm a RAM’&rd : : : : : : . . . . . . . . . . . . . . . 4-14
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14
Using the DLP Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
To Connect the External Keyboard to the Spectrum Analyzer . . . . . . . . . 4-15
‘lb Access the DLP Editor . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
‘IbCreateaDLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17
To Modify the DLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18
To Modify a Catalog Item . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
DLP Programming Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
To Make the DLP More Readable . . . . . . . . . . . . . . . . . . . . . . 4-20
ToFindProblemsinaDLP . . . . . . . . . . . . . . . . . . . . . . . . . 4-20
5. Programming Commands
What You’ll Learn in This Chapter . . . . . . . . . . . . . . . . . . . . . . 5-l
Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
ABORT Abort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-29
ABS Absolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-31
ACP Adjacent Channel Power . . . . . . . . . . . . . . . . . . . . . . . . 5-33
ACPBW Channel Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . 5-35
ACPCONTM Continuous Sweep Measurement . . . . . . . . . . . . . . . . 5-37
ACPE Adjacent Channel Power Extended . . . . . . . . . . . . . . . . . . 5-38
ACPGR Adjacent Channel Power Graph On or Off . . . . . . . . . . . . . . 5-40
ACPGRAPH Compute the Adjacent Channel Power Graph . . . . . . . . . . 5-42
ACPMK Adjacent Channel Power Marker On or Off. . . . . . . . . . . . . . 5-43
ACPPAR ACP Manual or Auto . . . . . . . . . . . . . . . . . . . . . . . 5-44
ACPSNGLM Single Sweep Measurement . . . . . . . . . . . . . . . . . . . 5-46
ACPSP Channel Spacing . . . . . . . . . . . . . . . . . . . . . . . . . . 5-47
ACTDEF Active Function Definition . . . . . . . . . . . . . . . . . . . . . 5-49
ACTVF Active Function . . . . . . . . . . . . . . . . . . . . . . . . . . 5-54
ADD Add . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-55
AMB Trace A Minus Trace B . . . . . . . . . . . . . . . . . . . . . . . . 5-57
AMBPL Trace A Minus Trace B Plus Display Line . . . . . . . . . . . . . . 5-60
AMPCOR Amplitude Correction . . . . . . . . . . . . . . . . . . . . . . . 5-62
AMPLEN Amplitude Correction Length . . . . . . . . . . . . . . . . . . . 5-64
ANLGPLUS Analog Plus . . . . . . . . . . . . . . . . . . . . . . . . . . 5-65
ANNOT Annotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-67
APB Trace A Plus Trace B . . . . . . . . . . . . . . . . . . . . . . . . . 5-68
AT Attenuation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-69
AUNITS Amplitude Units . . . . . . . . . . . . . . . . . . . . . . . . . . 5-71
AUTO Auto Couple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-72
AVG Average . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-73
AXB Exchange Trace A and Trace B . . . . . . . . . . . . . . . . . . . . 5-75
BAUDRATE Baud Rate of Spectrum Analyzer . . . . . . . . . . . . . . . . 5-76
BITBit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-78
BITF Bit Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-80
BLANK Blank Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-82
BML Trace B Minus Display Line . . . . . . . . . . . . . . . . . . . . . . 5-83
BTC Transfer Trace B to Trace C . . . . . . . . . . . . . . . . . . . . . . 5-84
BXC Trace B Exchange Trace C . . . . . . . . . . . . . . . . . . . . . . . 5-85
CAL Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-86
CAT Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-89
CF Center Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-93
CHP Channel Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-95
CHPGR Channel Power Graph On or Off . . . . . . . . . . . . . . . . . . . 5-97
CLRAVG Clear Average . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-98
CLRBOX Clear Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-99
CLRDSP Clear Display . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-101
CLRW Clear Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-102
CLS Clear Status Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-103
CMDERRQ Command Error Query . . . . . . . . . . . . . . . . . . . . . 5-104
CNF Confidence Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-105
CNTLA Auxiliary Interface Control Line A . . . . . . . . . . . . . . . . . 5-106
CNTLB Auxiliary Interface Control Line B . . . . . . . . . . . . . . . . . . 5-107
CNTLC Auxiliary Interface Control Line C . . . . . . . . . . . . . . . . . . 5-108
CNTLD Auxiliary Interface Control Line D . . . . . . . . . . . . . . . . . 5-109
CNTLI Auxiliary Interface Control Line Input . . . . . . . . . . . . . . . . 5-110
COMBComb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-111
Contents-4
COMPRESS Compress Trace . . . . . . . . . . . . . . . . . . . . . . . . 5-112
CONCAT Concatenate . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-114
CONTS Continuous Sweep . . . . . . . . . . . . . . . . . . . . . . . . . 5-116
CORREK Correction Factors On . . . . . . . . . . . . . . . . . . . . . . . 5-117
COUPLE Couple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-118
CRTHPOS Horizontal Position of CRT Display . . . . . . . . . . . . . . . . 5-119
CRTVPOS Vertical Position of CRT Display . . . . . . . . . . . . . . . . . . 5-120
CTA Convert to Absolute Units . . . . . . . . . . . . . . . . . . . . . . . 5-121
CTM Convert to Measurement Units . . . . . . . . . . . . . . . . . . . . 5-123
DA Display Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-124
DATEMODE Date Mode . . . . . . . . . . . . . . . . . . . . . . . . . . 5-127
DEMOD Demodulation . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-128
DET Detection Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-129
DISPOSE Dispose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-131
DIV Divide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-133
DL Display Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-135
DN Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-137
DONE Done . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-138
DOTDENS Dot Density . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-140
DRAWBOX Draw Box . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-141
DSPLY Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-143
DT Define Terminator . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-145
EE Enable Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-146
EK Enable Knob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-148
ENTER Enter From HP-IB . . . . . . . . . . . . . . . . . . . . . . . . . 5-149
EP Enter Parameter Function . . . . . . . . . . . . . . . . . . . . . . . 5-151
ERASE Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-152
EXP Exponent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-153
FA Start Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-156
FB Stop Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-158
FFT Fast Fourier Transform . . . . . . . . . . . . . . . . . . . . . . . . 5-160
FFTAUTO Marker to Auto FFT . . . . . . . . . . . . . . . . . . . . . . . 5-164
FFTCLIP FFl’ Signal Clipped . . . . . . . . . . . . . . . . . . . . . . . . 5-166
FFTCONTS FFT Continuous Sweep . . . . . . . . . . . . . . . . . . . . . 5-167
FFTMKR FFT Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-168
FFTMM FFT Marker to Midscreen . . . . . . . . . . . . . . . . . . . . . . 5-169
FFTMS FFT Marker to FFT Stop Frequency . . . . . . . . . . . . . . . . . 5-170
FFTOFFFFTOff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-171
FFTPCTAM FFT Percent Amplitude Modulation . . . . . . . . . . . . . . . 5-172
FFTPCTAMR FFT Percent Amplitude Modulation Readout . . . . . . . . . . 5-173
FFTSNGLS FFT Single Sweep . . . . . . . . . . . . . . . . . . . . . . . . 5-174
FFTSTAT FFT Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-176
FFTSTOP FFT Stop Frequency . . . . . . . . . . . . . . . . . . . . . . . 5-177
FMGAIN FM Gain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-179
FOFFSET Frequency Offset . . . . . . . . . . . . . . . . . . . . . . . . . 5-180
FORMAT Format Card . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-182
FS Full Span. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-183
FUNCDEF Define Function . . . . . . . . . . . . . . . . . . . . . . . . . 5-184
GATEGate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-186
GATECTL Gate Control . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-187
GC Gate Preset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-188
GD Gate Delay. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-189
GDRVCLPAR Clear Pulse Parameters . . . . . . . . . . . . . . . . . . . . 5-190
GDRVGDEL Gate Delay for the Frequency Window . . . . . . . . . . . . . 5-191
GDRVGLEN Gate Length for the Frequency and Time Windows . . . . . . . 5-193
Contents-5
GDRVGT Window Gate Control . . . . . . . . . . . . . . . . . . . . . . . 5-194
GDRVGTIM Gate Trigger to Marker Position for the Time Window . . . . . . 5-196
GDRVPRI Pulse Repetition Interval . . . . . . . . . . . . . . . . . . . . . 5-198
GDRVPWID Pulse Width . . . . . . . . . . . . . . . . . . . . . . . . . . 5-200
GDRVRBW Couple Resolution Bandwidth to Pulse Width . . . . . . . . . . . 5-202
GDRVREFE Enter Reference Edge . . . . . . . . . . . . . . . . . . . . . 5-204
GDRVST Couple Sweep Time to Pulse Repetition Interval . . . . . . . . . . 5-206
GDRVSWAP Update the Time or Frequency Window . . . . . . . . . . . . . 5-208
GDRVSWDE Delay Sweep for Time Window . . . . . . . . . . . . . . . . . 5-209
GDRVSWP Sweep Time for the Time Window . . . . . . . . . . . . . . . . 5-211
GDRVUTIL Gate Utility . . . . . . . . . . . . . . . . . . . . . . . . . . 5-213
GDRVVBW Couple Video Bandwidth to Gate Length . . . . . . . . . . . . . 5-215
GETPLOT Get Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-217
GETPRNT Get Print . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-219
GL Gate Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-221
GP Gate Polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-222
GRGraph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-223
GRAT Graticule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-224
HAVE Have . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-225
HD Hold Data Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-228
HN Harmonic Number . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-229
HNLOCK Harmonic Number Lock . . . . . . . . . . . . . . . . . . . . . . 5-230
HNUNLK Unlock Harmonic Number . . . . . . . . . . . . . . . . . . . . 5-233
IBInputB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-234
ID Identify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-235
IF THEN ELSE ENDIF If Then Else Endif . . . . . . . . . . . . . . . . . . 5-236
INT Integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-239
INZ Input Impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-241
IP Instrument Preset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-242
KEYCLR Key Clear. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-246
KEYCMD Key Command . . . . . . . . . . . . . . . . . . . . . . . . . . 5-247
KEYDEF User-Defined Key Definition . . . . . . . . . . . . . . . . . . . . 5-251
KEYENH Key Enhance. . . . . . . . . . . . . . . . . . . . . . . . . . . 5-255
KEYEXC Key Execute . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-260
KEYLBL Key Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-261
LBLabel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-263
LF Base Band Instrument Preset . . . . . . . . . . . . . . . . . . . . . . 5-267
LG Logarithmic Scale . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-268
LIMIDEL Delete Limit-Line ‘lhble . . . . . . . . . . . . . . . . . . . . . . 5-269
LIMIDISP Limit Line Display . . . . . . . . . . . . . . . . . . . . . . . . . 5-270
LIMIFAIL Limits Failed . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-272
LIMIFT Select Frequency or Time Limit Line . . . . . . . . . . . . . . . . 5-274
LIMIHI Upper Limit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-275
LIMILINE Limit Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-276
LIMILO Lower Limit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-279
LIMIMIRROR Mirror Limit Line . . . . . . . . . . . . . . . . . . . . . . . 5-280
LIMIMODE Limit-Line Entry Mode . . . . . . . . . . . . . . . . . . . . . 5-281
LIMIREL Relative Limit Lines . . . . . . . . . . . . . . . . . . . . . . . 5-283
LIMISEG Enter Limit-Line Segment for Frequency . . . . . . . . . . . . . . 5-285
LIMISEGT Enter Limit-Line Segment for Sweep Time . . . . . . . . . . . . 5-288
LIMITEST Enable Limit Line Testing . . . . . . . . . . . . . . . . . . . . 5-291
LINFILL Line Fill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-293
LN Linear Scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-295
LOAD Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-296
LOG Logarithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-298
Contents.6
LSPAN Last Span . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-301
MDS Measurement Data Size . . . . . . . . . . . . . . . . . . . . . . . . 5-302
MDU Measurement Data Units . . . . . . . . . . . . . . . . . . . . . . . 5-304
MEAN Trace Mean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-306
MEANTH Trace Mean Above Threshold . . . . . . . . . . . . . . . . . . . 5-307
MEASOFF Measurement Off . . . . . . . . . . . . . . . . . . . . . . . . 5-309
MEASURE Measure Mode . . . . . . . . . . . . . . . . . . . . . . . . . 5-310
MEM Memory Available . . . . . . . . . . . . . . . . . . . . . . . . . . 5-312
MENU Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-313
MERGE Merge Two Traces . . . . . . . . . . . . . . . . . . . . . . . . . 5-315
MF Marker Frequency Output . . . . . . . . . . . . . . . . . . . . . . . 5-317
MIN Minimum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-319
MINH Minimum Hold . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-32 1
MINPOS Minimum Position . . . . . . . . . . . . . . . . . . . . . . . . . 5-322
MIRROR Mirror Image . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-323
MKA Marker Amplitude . . . . . . . . . . . . . . . . . . . . . . . . . . 5-325
MKACT Activate Marker . . . . . . . . . . . . . . . . . . . . . . . . . . 5-327
MKACTV Marker As the Active Function . . . . . . . . . . . . . . . . . . 5-328
MKBW Marker Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . 5-329
MKCF Marker to Center Frequency . . . . . . . . . . . . . . . . . . . . . 5-330
MKCONT Marker Continue . . . . . . . . . . . . . . . . . . . . . . . . . 5-331
MKD Marker Delta. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-332
MKDLMODE Marker Delta Display Line Mode . . . . . . . . . . . . . . . . 5-334
MKF Marker Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . 5-336
MKFC Marker Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-338
MKFCR Marker Counter Resolution . . . . . . . . . . . . . . . . . . . . . 5-339
MKMIN Marker Minimum . . . . . . . . . . . . . . . . . . . . . . . . . . 5-341
MKN Marker Normal . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-342
MKNOISE Marker Noise . . . . . . . . . . . . . . . . . . . . . . . . . . 5-344
MKOFF Marker Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-346
MKP Marker Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-347
MKPAUSE Marker Pause . . . . . . . . . . . . . . . . . . . . . . . . . . 5-349
MKPK Marker Peak . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-351
MKPX Marker Peak Excursion . . . . . . . . . . . . . . . . . . . . . . . 5-352
MKREAD Marker Readout . . . . . . . . . . . . . . . . . . . . . . . . . 5-354
MKRL Marker to Reference Level . . . . . . . . . . . . . . . . . . . . . . 5-356
MKSP Marker to Span . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-357
MKSS Marker to Step Size . . . . . . . . . . . . . . . . . . . . . . . . . 5-358
MKSTOP Marker Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-359
MKTBL Marker %ble . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-360
MKTRACE Marker Trace . . . . . . . . . . . . . . . . . . . . . . . . . . 5-362
MKTRACK Marker Track . . . . . . . . . . . . . . . . . . . . . . . . . . 5-363
MKTYPE Marker Type . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-364
ML Mixer Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-365
MOD Modulo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-367
MODE Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-369
MOV Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-370
MPY Multiply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-372
MS1 Mass Storage Is . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-374
MXM Maximum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-375
MXMH Maximum Hold . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-377
M4 Marker Zoom. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-378
NDB Number of dB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-380
NDBPNT N dB Points 5-381
NDBPNTR N dB Points Bandwidth’ : : : 1 : : : : : : : : : : : : : : : : : 5-383
Contents-7
NRL Normalized Reference Level . . . . . . . . . . . . . . . . . . . . . . 5-384
OA Output Active Function Value . . . . . . . . . . . . . . . . . . . . . . 5-386
OBW Occupied Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . 5-387
OBWPCT Occupied Bandwidth Percent . . . . . . . . . . . . . . . . . . . 5-389
OL Output Learn String . . . . . . . . . . . . . . . . . . . . . . . . . . 5-390
ONCYCLE On Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-391
ONDELAY On Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-393
ONEOS On End of Sweep . . . . . . . . . . . . . . . . . . . . . . . . . 5-395
ONMKR On Marker . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-397
ONMKRU On Marker Update . . . . . . . . . . . . . . . . . . . . . . . . 5-399
ONPWRUP On Power Up . . . . . . . . . . . . . . . . . . . . . . . . . . 5-401
ONSRQ On Service Request . . . . . . . . . . . . . . . . . . . . . . . . . 5-402
ONSWP On Sweep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-404
ONTIME On Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-406
OP Output Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-408
OUTPUT Output to Remote Port or Parallel Port . . . . . . . . . . . . . . . 5-409
PA Plot Absolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-412
PARSTAT Parallel Status . . . . . . . . . . . . . . . . . . . . . . . . . . 5-414
PCTAM Percent AM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-416
PCTAMR Percent AM Response . . . . . . . . . . . . . . . . . . . . . . . 5-418
PDPenDown.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-419
PDA Probability Distribution of Amplitude . . . . . . . . . . . . . . . . . 5-420
PDF Probability Distribution of Frequency . . . . . . . . . . . . . . . . . 5-422
PEAKS Peaks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-424
PKDLMODE Peak Table Delta Display Line Mode . . . . . . . . . . . . . . 5-428
PKPOS Peak Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-430
PKRES Peak Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-43 1
PKSORT Peak Sort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-433
PKTBL Peak ‘Iable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-434
PKZMOK Peak Zoom Okay . . . . . . . . . . . . . . . . . . . . . . . . . 5-436
PKZOOM Peak Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-437
PLOT Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-439
PLTPRT Plot Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-441
POWERON Power-On State . . . . . . . . . . . . . . . . . . . . . . . . . 5-442
PP Preselector Peak . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-443
PR Plot Relative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-444
PREAMPG External Preamplifier Gain . . . . . . . . . . . . . . . . . . . 5-445
PREFX Prefix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-446
PRINT Print . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-447
PRNTADRS Print Address . . . . . . . . . . . . . . . . . . . . . . . . . 5-449
PRNPRT Print Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-450
PSTATE Protect State . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-451
PUPenUp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-452
PURGE Purge File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-453
PWRBW Power Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . 5-454
PWRUPTIME Power Up Time . . . . . . . . . . . . . . . . . . . . . . . . 5-456
RB Resolution Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . 5-457
RCLS Recall State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-459
RCLT Recall Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-460
RELHPIB Release HP-IB . . . . . . . . . . . . . . . . . . . . . . . . . . 5-462
REPEAT UNTIL Repeat Until . . . . . . . . . . . . . . . . . . . . . . . . 5-463
RESETRL Reset Reference Level . . . . . . . . . . . . . . . . . . . . . . 5-465
RETURN Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-466
REV Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-467
RL Reference Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-468
Contents.8
RLPOS Reference-Level Position . . . . . . . . . . . . . . . . . . . . . . 5-470
RMS Root Mean Square Value . . . . . . . . . . . . . . . . . . . . . . . . 5-471
ROFFSET Reference Level Offset . . . . . . . . . . . . . . . . . . . . . . 5-472
RQS Service Request Mask . . . . . . . . . . . . . . . . . . . . . . . . . 5-473
SAVEMENU Save Menu . . . . . . . . . . . . . . . . . . . . . . . . . . 5-475
SAVES Save State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-476
SAVET Save Trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-477
SAVRCLF Save or Recall Flag . . . . . . . . . . . . . . . . . . . . . . . . 5-479
SAVRCLN Save or Recall Number . . . . . . . . . . . . . . . . . . . . . . 5-480
SAVRCLW Save or Recall Data . . . . . . . . . . . . . . . . . . . . . . . 5-482
SEGDEL Segment Delete . . . . . . . . . . . . . . . . . . . . . . . . . . 5-483
SENTER Segment Entry for Frequency Limit Lines . . . . . . . . . . . . . 5-485
SENTERT Segment Entry for Sweep Time Limit Lines . . . . . . . . . . . . 5-488
SER Serial Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-491
SETDATE Set Date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-492
SETTIME Set Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-493
SMOOTH Smooth Trace . . . . . . . . . . . . . . . . . . . . . . . . . . 5-494
SNGLS Single Sweep . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-496
SPSpan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-497
SPEAKER Speaker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-499
SPZOOM Span Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-500
SQLCH Squelch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-501
SQR Square Root. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-502
SRCALC Source Leveling Control . . . . . . . . . . . . . . . . . . . . . . 5-504
SRCAT Source Attenuator . . . . . . . . . . . . . . . . . . . . . . . . . 5-506
SRCNORM Source Normalization . . . . . . . . . . . . . . . . . . . . . . 5-508
SRCPOFS Source Power Offset . . . . . . . . . . . . . . : . . . . . . . . 5-510
SRCPSTP Source Power-Level Step Size . . . . . . . . . . . . . . . . . . . 5-511
SRCPSWP Source Power Sweep . . . . . . . . . . . . . . . . . . . . . . . 5-513
SRCPWR Source Power . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-515
SRCTK Source Tracking . . . . . . . . . . . . . . . . . . . . . . . . . . 5-517
SRCTKPK Source Tracking Peak . . . . . . . . . . . . . . . . . . . . . . 5-519
SRQ Force Service Request . . . . . . . . . . . . . . . . . . . . . . . . . 5-520
SS Center Frequency Step Size . . . . . . . . . . . . . . . . . . . . . . . 5-524
ST Sweep Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-526
STB Status Byte Query . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-528
STDEV Standard Deviation of Trace Amplitudes . . . . . . . . . . . . . . . 5-529
STOR Store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-531
SUB Subtract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-534
SUM Sum of Trace Amplitudes . . . . . . . . . . . . . . . . . . . . . . . 5-536
SUMSQR Sum of Squared Trace Amplitudes . . . . . . . . . . . . . . . . . 5-537
SWPCPL Sweep Couple . . . . . . . . . . . . . . . . . . . . . . . . . . 5-538
SYNCMODE Synchronize Mode . . . . . . . . . . . . . . . . . . . . . . . 5-540
TA Transfer A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-542
TB Transfer B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-543
TDF Trace Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . 5-544
TEXT Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-549
TH Threshold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-550
TIMEDATE Time Date . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-551
TIMEDSP Time Display . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-552
TITLE Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-553
TM Trigger Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-554
TO1 Third-Order Intermodulation Measurement . . . . . . . . . . . . . . . 5-556
TOIR Third-Order Intermodulation Response . . . . . . . . . . . . . . . . . 5-558
TRA/TRB/TRC Trace Data Input and Output . . . . . . . . . . . . . . . . . 5-559
Contents-9
Figures
l-l. Connecting the HP 9000 Series 200 Computer to the Spectrum Analyzer . . . l-3
l-2. Connecting the HP 9000 Series 300 Computer to the Spectrum Analyzer . . . l-5
l-3. Connecting the HP Vectra Personal Computer to the Spectrum Analyzer . . . l-7
l-4. Connecting the Personal Computer to the Spectrum Analyzer . . . . . . . . . l-9
3-l. Measurement Unit Range and Trace Amplitudes . . . . . . . . . . . . . . . 3-26
4-l. Determining the Number of Records . . . . . . . . . . . . . . . . . . . . 4-13
4-2. Connecting the External Keyboard to the Spectrum Analyzer . . . . . . . . . 4-15
4-3. Accessing the DLP Editor . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
4-4. Entering a DLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17
4-5. Selecting a Catalog Item . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
5-l. Command Syntax Figure . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5-2. Using the CLRBOX Command . . . . . . . . . . . . . . . . . . . . . . . . 5-99
5-3. Using the DRAWBOX Command . . . . . . . . . . . . . . . . . . . . . . . 5-141
5-4. Harming Filter Window . . . . . . . . . . . . . . . . . . . . . . . . . . 5-162
5-5. Uniform Filter Window . . . . . . . . . . . . . . . . . . . . . . . . . . 5-163
5-6. Flat Top Filter Window . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-163
5-7. Using the MENU Command . . . . . . . . . . . . . . . . . . . . . . . . . 5-314
5-8. Display Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-413
5-9. Frequency and Amplitude of the Peaks . . . . . . . . . . . . . . . . . . . 5-426
B-l. HP-IB Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-l
C-l. RS-232 Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-l
C-2. HP 245426 25-pin to g-pin Full Handshaking Connection . . . . . . . . . . . c-3
C-3. HP 24542U g-pin to g-pin Full Handshaking Connection . . . . . . . . . . . c-3
C-4. 25-pin to g-pin 3-Wire Connection . . . . . . . . . . . . . . . . . . . . . c-3
C-5. g-pin to g-pin 3-Wire Connection . . . . . . . . . . . . . . . . . . . . . . c-4
C-6. 25-pin to g-pin ThinkJet Printer Connection . . . . . . . . . . . . . . . . . c-4
C-7. HP C2932A g-pin to g-pin LaserJet Printer Connection . . . . . . . . . . . . c-5
C-8. 25-pin to g-pin Modem Connection . . . . . . . . . . . . . . . . . . . . . C-6
C-9. HP-GL Plotter Connection . . . . . . . . . . . . . . . . . . . . . . . . . C-6
Contents-l 1
Xhbles
l-l. Setting of HP ThinkJet Printer Mode Switches . . . . . . . . . . . . . . . . l-11
3-l. Measurement Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
3-2. Summary of the Trace Data Formats . . . . . . . . . . . . . . . . . . . . 3-28
4-l. Cataloging a RAM Card . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
5-l. Syntax Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
5-2. Characters and Secondary Keywords (Reserved Words) . . . . . . . . . . . . 5-5
5-3. Summary of Compatible Commands . . . . . . . . . . . . . . . . . . . . . 5-9
5-4. Functional Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11
5-5. Spectrum,AnaIyzer Settings, ACPPAR is Set to Automatic . . . . . . . . . . . 5-45
5-6. Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-265
5-7. Label Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-266
5-9. Spectrum Analyzer Status Byte (Option 024) . . . . . . . . . . . . . . . . . 5-414
5-9. Spectrum Analyzer Status Byte (Option 041, 043) . . . . . . . . . . . . . . 5-415
5-9. Spectrum Analyzer Status Byte . . . . . . . . . . . . . . . . . . . . . . . 5-52 1
5-10. Status Byte Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-522
5-l 1. Programming Commands That Exit The Windows Display Mode . . . . . . . . 5-595
C-l. Setting of Thinkjet Printer Mode Switches . . . . . . . . . . . . . . . . . . c-4
C-2. Setting of RS-232 Switches . . . . . . . . . . . . . . . . . . . . . . . . . c-5
C-3. Setting the Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . c-5
Contents-l 2
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.
Note The listed computer and spectrum analyzer equipment includes the minimum
components necessary to establish communication between your spectrum
analyzer and computer. If you are using application software, check with your
software supplier for specific computer hardware and memory requirements.
Note Using an interface cable other than the one listed with your computer’s
interconnection instructions may prevent proper communication between the
spectrum analyzer and computer.
Pressing f-1 removes the spectrum analyzer from remote mode and enables front-panel
control.
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. Connecting the HP 9000 Series 200 Computer to the Spectrum Analyzer
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. Connecting the HP 9000 Series 300 Computer to the Spectrum Analyzer
CENTERFREQUENCY=3.OE+8Hz.
If the computer does not display the center frequency, refer to “If There is a Problem” at the
end of this chapter.
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. Connecting the HP Vectra Personal Computer to the Spectrum Analyzer
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
Interconnection Instructions
1. Connect the spectrum analyzer to the computer using the RS-232 cable as shown in
Figure l-4.
cu129e
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 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.
8. Press Previous Menu, CDPY DEV PRMT PLT (PRNT should be underlined), then IcoPv].
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.
n Any of the following plotters:
q HP 7440A ColorPro plotter with HP-IB
q HP 7445A plotter with HP-IB
q HP 7550A/B plotter with HP-IB
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 plot with two controllers (the computer
and the spectrum analyzer) connected, the computer must be disconnected
from the HP-IB.
Note For a multi-pen plotter, the pens of the plotter draw the different components
of the screen as follows:
Pen Description
Number
1 Draws the annotation and graticule.
2 Draws trace A.
3 Draws trace B.
4 Draws trace C and the display line.
5 Draws user-generated graphics and the lower-limit line.
6 Draws the upper-limit line.
8. Press Previous Menu, COPY PINT PLT (PLT should be underlined), then Icopvl.
Note Once the address of the printer and plotter have been entered, the spectrum
There is no need to reenter them when the spectrum analyzer is turned off and
on.
Note The RS-232 interface allows only one device (either the printer or the plotter)
to be connected to the spectrum analyzer. Refer to the Appendix C for more
information on RS-232 protocol and cable wiring.
Note Some of the programs in this manual utilize 1200 baud. If your system uses the
RS-232 handshake lines, you can use 9600 baud for all of the programs.
g. Press Previous Menu, COPY DEV PRMT PLT (PRNT should be underlined), then m.
Note The RS-232 interface allows only one device (either the printer or the plotter)
to be connected to the spectrum analyzer. Refer to the Programmer’s Guide for
more information on RS-232 protocol and cable wiring.
& Press CCONFIG], Plot &&kg. You can choose a full-page, half-page, or quarter-page plot
with the PLTSIPC 1 2 4 softkey. Press PLTS/PG 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 of the plotter output. If two plots per page are selected, then
PLT Cl PLT U _
LOC - - function is displayed. If four plots per page are selected, then LOC _ _ is
displayed. Press the softkey until the rectangular marker is in the desired section of the
softkey label. The upper and lower sections of the softkey label graphically represent where
on the page the plotter output will be located.
Description
8. Press Previous Menu, COPY DEV PRMT PLT (so that PLT is underlined), then Icopvl.
7. Press Previous Menu, CDPY DEV PRNT PLT (PRNT should be underlined), then IcoPv].
Note The RS-232 or parallel interface allow only one device (either the printer or the
plotter) to be connected to the spectrum analyzer. Refer to the Programmer’s
Guide for more information on protocol and cable wiring.
6. Press (-1, Plot Config . You can choose a full-page, half-page, or quarter-page plot
with the PLTSjPG 1 2 4 softkey. Press PLTS/PG 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 of the plotter output. If two plots per page are selected, then
PLT Cl PLT c3 _
LOC - - function is displayed. If four plots per page are selected, then LOC I I is
displayed. Press the softkey until the rectangular marker is in the desired section of the
softkey label. The upper and lower sections of the softkey label graphically represent where
on the page the plotter output will be located.
8. Press PLT->L.JT ON OFF so that ON is underlined.
9. Then press Icopv).
Note All programming examples in this chapter for the HP-IB interface are written
in HP BASIC 4.0, using an HP 9000 Series 200 computer. For the RS-232
interface, examples are written in GW BASIC, using an HP Vectra personal
computer or compatible controller.
Note In commands where quotation marks occur, the computer recognizes data as
character data and not BASIC programming language commands.
20 CLEAR Analyzer
30 OUTPUT Analyzer;"IP;"
40 OUTPUT Analyzer;"SNGLS;TS;"
50 LOCAL 7
60 END
Line 10 of our program assigns a variable called “Analyzer” to our spectrum analyzer at address
718. This instruction is followed by the HP BASIC CLEAR command, which resets the spectrum
analyzer on the HP-IB. With these two program lines, we have set up a clear communication
path between the computer and the spectrum analyzer.
Line 30 introduces the instrument preset (IP) command, which corresponds to the key
on the spectrum analyzer. The IP command sets all of the analog parameters of the spectrum
Line 40 activates the single-sweep mode. Most remotely controlled measurements require
control of the sweep. Once SNGLS has activated the single-sweep mode, take sweep (TS)
starts and completes one full sweep. TS maintains absolute control over the sweep, which is
necessary for accurate computer data transfer and reduced program execution time.
Before we end the program, we return the spectrum analyzer to front-panel control with line
50, LOCAL 7. The LOCAL command corresponds to the (LOCAL) key on the front panel
of the spectrum analyzer. (LOCAL 7 commands everything on the bus to go to local mode.)
Line 40 activates the single-sweep mode. Most remotely controlled measurements require
control of the sweep. Once SNGLS has activated the single-sweep mode, take sweep (TS) starts
and completes one full sweep. The TS command maintains absolute control over the sweep,
which is necessary for accurate computer data transfer and reduced program execution time.
Finally, in line 50, end the program with the END command.
Make sure that the spectrum analyzer baud rate is 9600 via the BAUII RATE softkey. Enter the
program lines, then press (RUN) on the computer. Watch the spectrum analyzer display as it
completes each instruction.
Note When using an HP 9000 Series 200 or 300 computer, END commands are
necessary. Refer to your BASIC manual to determine END statement
requirements for your specific computer.
your system.)
Note Ail programming examples for the HP-IB interface in this chapter are written
in HP BASIC 4.0. For the RS-232 interface, examples are written in GW BASIC.
Note If a program containing the CREATE command is run twice, the computer will
report an error the second time because the file already exists. To prevent this
error, place an exclamation mark before the CREATE command to “comment
out” the line after the first run. (See line 240.)
Note If the program containing the CREATE command is run twice, the computer
will report an error the second time because the file already exists. lb prevent
this, place an exclamation mark before the CREATE command to “comment
out” line 170 after the program has been executed.
Note This program is designed to measure harmonics of a signal that is greater than
20MHz.
P Format
The P format allows you to receive or send trace data in a real-number format. This is the
default format when the instrument is powered up. Numbers are in dBm, dBmV, dBpV, volts,
or watts. The AUNITS command can be used to specify the amplitude units. Real-number data
may be an advantage if you wish to use the data later in a program. However, data transfers
using P format tend to be slow and take up a lot of memory (compared to binary format, the P
format can take up to four times the amount of memory). Data is transferred as ASCII type.
Although the spectrum analyzer can send the trace data to the computer as real numbers, the
trace data cannot be sent back to the spectrum analyzer without changing the trace data to
measurement units (integers). See the following example.
Note It is not possible to return data to the spectrum analyzer using binary format.
You must use either A-block or I-block format to return the trace data to the
spectrum analyzer.
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. Fewer than 401 points of trace data can be specified, and the spectrum
analyzer will accept data until an EOI signal is sent to it. Therefore, returning the trace data to
the spectrum analyzer requires an important instruction, END. (See following example.)
+32,767 -
7
8160- Y 4
8000 -
LOG
10 DB/
\yii5
O-
I /
-32,768-
cull9e
Note All trace math functions are done using measurement units. See lkble 5-4 for a
list of all trace math functions. See the description for the AMB command in
Chapter 5 for an example of trace math subtraction in measurement units.
The result is in measurement units (-32768 to +32767). For more detailed information about
the M format, see the description for TDF in Chapter 5.
‘Ihble 3-2 summarizes the different trace data formats.
What is a DLP?
A DLP is a sequence of programming commands used to perform a specific operation. You
can define a DLP that is made up of several user-defined functions, user-defined variables,
and user-defined traces, then store the DLP in analyzer memory or on a RAM card. Some
commands used to create DLPs are FUNCDEF, VARDEF, ACTDEF, TRDEF, and KEYDEF.
Example
Example
The following example demonstrates how to define a trace, move a value into the trace, move
the trace to trace A, and view trace A.
10 OUTPUT 718;"TRDEF T,RACEA,401;"; Dt@zes a 401 -point trace called “TBACEA. ”
20 OUTPUT 718;"MOV T,RACEA,O;"; Initializes the trace values to zero.
Use the TXACEA for a measur-t.
130 OUTPUT 718;"FUNCDEF D-ISPTRACE,!"; Dtykes a function called DJPlXACE.
140 OUTPUT 718;"MOV TRA,T-RACEA; "; Moves the contents of T-RACEA into trace
A.
150 OUTPUT 718;"VIEW TRA;"; Displays trace A.
160 OUTPUT 718;"!; " Ends the FUNCDEF d@nition.
170 END
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 front-
panel keys.
Notice that like moving a value into a variable or a trace, the MOV command or another MATH
command must be used to move the ACTDEF value into the RB command. See the command
description for ACTDEF in Chapter 5 for more information.
Example
For example, to assign the ACTDEF to softkey 2, your would use the following:
OUTPUT 718;"KEYCMD 2, M-BW,";
OUTPUT 718;"lKEYENH 2, 'RES BW',ACTVF MmBW,O,%;";
Example
Notice that the program has a main FUNCDEF that calls the five subordinate FUNCDEF’s
(SPANONE, S-PANTWO, S-PANTHREE, SPANFOUR, and C-HECK). Each of the five
FUNCDEFs is called from the main FUNCDEF, E-XAMPLE. Line 560 assigns the DLP to softkey
2, so the function can be executed by pressing (-1, User Menus , EX&MPLE .
The example uses descriptive labels and flows in a logical fashion, making the DLP easier to
understand. In addition, the use of subordinate FUNCDEFs makes the DLP easier to modify
because one FUNCDEF can be changed without having to modify the main FUNCDEF or other
FUNCDEFs. For example, if the application requires the stop frequency of the last span to
extend to 4 GHz, simply change the stop frequency (FB 11OMHZ) in SPANFOUR to a stop
frequency of 4 GHz (FB 4GHZ).
Example
The following example uses the KEYDEF command to assigns the ZBOM function to softkey 1.
10 OUTPUT 718;"KEYDEF 1, Z-OOM,%CAL SIGIZOOM%;"; Assigns thefunction Z-OOMto
soflkey 1 and assigns sofikey 1
the label “CAL SIG ZOOM. ”
20 LOCAL 718
30 END
You can access CAL SIG 2DOM by pressing (-1, User Menus .
Example
The following programming line executes the Z-OOM function from an external controller.
OUTPUT 718;"Z-0OM;"
Example
The following example sets the mass storage device to the memory card reader, and then stores
the contents of analyzer memory on the RAM card.
OUTPUT 718;"MSI CARD;STOR d,%dZ,OOM%,*;" Stores a copy of the contents of analyzer
memory on the RAM card under the .file
name of Z-OOM.
Saving a DLP on a RAM card saves all FUNCDEFs, VARDEFs, ACTDEFs, TRDEF, and KEYDEFs
in the spectrum analyzer memory. This means a DLP cannot be saved selectively if several
DLPs are present in the analyzer memory at the time. You may want to delete the items in user
memory that you do not wish to be saved on the RAM card. See the DISPOSE command.
Example
The following example sets the mass storage device to the memory card reader, and then copies
the contents of RAM card file called Z-OOM into spectrum analyzer memory.
OUTPUT 718;"MSI CARD;LOAD %dZ-OOMX;" Loads a copy of Z-OOM from the RAM card
into spectrum analyzer memory.
Note that loading does not dispose of any DLPs which were in memory before the load was
executed.
Example
10 OUTPUT 718*"MEM'-"-8 Lleternaines the available analyzer memory.
20 ENTER 718;iemor;' Stores the available analyzer menzory value in the vari-
able memory.
30 PRINT "MEMORY = Mm,Memory Prints the amount of analyzer memory.
40 END
If you are sure that the amount of memory that a DLP requires will not exceed the amount
of spectrum analyzer memory available, you can download the DLP into analyzer memory
and then execute the previous program again. The amount of analyzer memory that the DLP
requires is the difference between the value that MEM? returned before the DLP was loaded
into analyzer memory and the value MEM? returned after the DLP was loaded into analyzer
memory.
If the amount of memory that a DLP requires could exceed the amount of spectrum analyzer
memory available, you should delete any unnecessary variables, traces, or FUNCDEFs or on
event commands from spectrum analyzer memory. See “To Delete a DLP from Spectrum
Analyzer Memory” for more information.
Example
Figure 4-l shows that the number of records on the RAM card that are in use is 53 (35 + 19 -
1 = 53), and the total number of records available are 128. The number of unused records on
the RAM card is 75 (128 - 53 = 75).
01
47
REF . \
0 d0m ATTEN 10 dB LOhD
PEAK HP859X 128 FILE
14:11:28 OCT 15, 1991
TRACE 10 E. 14:14:07 OCT 15, 1 9 9 1
dB/ tTRANSD-3 TRACE 15 E 14:16:03 OCT 15, 1991
tTRANSD-4 TRACE 20 14:17:23 OCT 15, 1991
t-1 TRACE 25 i 09:38:44 OCT 17, 1991
TRACE 30 12:54:56 OCT 17, 1991 DELETE
DSPLY 35 19 17:00:18 FEB 28, 1992 FILE
/
SA S B
SC FC Exit
CORR Catalog
Previous
Menu
S P A N 6 . 5 0 0 8Hz
UBW 1 M H z S W P 1 3 0 msec RT
Example
To remove the FUNCDEF called Z-OOM from analyzer memory, you would execute the
following command:
OUTPUT 718;"DISPOSE Z,OOM;";
Use DISPOSE ALL to remove all FUNCDEFs, user-defined traces, limit-lines, and user-defined
variables from analyzer memory. For example, OUTPUT 718 ; "DISPOSE ALL ; I' ; (ERASE DLP MEM
is equivalent to DISPOSE ALL.)
Example
‘Ib delete the file called Z-OOM from the RAM card, you would execute the following
command:
OUTPUT 718;"MSI CARD;PURGE %dZ-OOMX;"
SPECTRUM ANALYZER
You can now use the external keyboard to enter or modify a DLP with the DLP editor, enter a
screen title, enter programming commands, or enter a prefix.
/ie7
REF . 0 dBm ATTEN 1 0 dB EDIT
PEAK 240 6 LAST
LOG
t9
% S-PANONE E D I T CFIT
S-PANFOUR ITEM
E-XAMPLE 182
S-PANTWO 40 APND C A T
S-PANTHREE ITEM
A-MPFUNC
SAVE
KEYI EDIT
KEY#l
SA s B A-MP
SC F C T-RACEA NEW
COR R S-AVE EDIT
P-OWER
Previous
Menu
C E N T E R 3 . 2 5 0 GHz S P A N 6 . 5 0 0 GHz
RES BW 3.0 MHz VBW 1 MHz SWP 130 mseo RT
SAVE
EDIT
NEW
EDIT
Exit
Edit
I FU D E F nl ‘JARDEF I KEYDEF I I ELSE I E )IF: I
‘7 F8 F9 ::0 Fll ‘12 L
Figure 4-4. Entering a DLP
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. The user-defined functions, user-defined traces, and user-defined variable are
listed by their label, and user-defined softkeys are listed by “KEY” followed by the key
number.
4. Press EDIT CAT ITEM . If there is already some text in the DLP editor, you need to press
EDIT CAT ITEM again to clear the text from the DLP editor’s buffer.
5. Use the external keyboard keys to edit the cataloged item. Because you are not using an
external computer, the spectrum analyzer commands are entered without an OUTPUT or
PRINT statement preceding them.
6. When the catalog item has been edited, press SAVE EDIT. SAVE EDIT executes the DLP
in spectrum analyzer memory, and will replace the catalog item. If you do not want to the
changes to the catalog item, press HEW EDIT , NEW EDIT to clear the screen.
You may find it useful to use APND CAT ITEM . APED GAT ITEM appends the catalog item to
the text that is already in the DLP editor.
Editor
DELETE
FILE
SELECT
PREFIX
sfl s
SC F Exit
COR Catal
Previous
Menu
C E N T E R 3 . 2 5 0 GHz S P A N 6 . 5 0 0 GHz
RES BW 3.0 MHz UBW 1 M H z S W P 1 3 0 msec RL
Note If the spectrum analyzer is not at address 18, change the number 18 in the
previous program line to the spectrum analyzer’s current address.
n For a spectrum analyzer with Option 023 installed in it, execute a break, and then press
@GKZJ More i of 3 , ERASE DLP MEM , ERASE DLP MEN . (ERASE DLP MEM requires a
double key press.)
CHARACTER OR REPEAT I NG
COMMAND SECONDARY SYNTAX SYNTAX
MNEMON I C KEYWORD ELEMENT ELEMENT
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. The
characters in circles and ovals are considered reserved words and must be entered exactly as
shown. See Iable 5-2.
w Rectangles contain the description of a syntax element defined in ‘lhble 5-l.
n A loop above a syntax element indicates that the syntax element can be repeated.
w Solid lines represent the recommended path.
n Dotted lines indicate an optional path for bypassing secondary keywords or using alternate
units.
n Arrows and curved intersections indicate command path direction.
n Semicolons are the recommended command terminators. Using semicolons makes programs
easier to read, prevents command misinterpretation, and is recommended by IEEE Standard
728.
Note Uppercase is recommended for entering all commands unless otherwise noted.
analyzer command Any spectrum-analyzer command in this chapter, with required parameters and
terminators.
character & EOI 8-bit byte containing only character data and followed by end-or-identify (EOI)
condition, where the EOI control llne on HP-IB is asserted to indicate the end of the
transmission. END signifies the EOI condition.
data byte & EOI 8-bit byte containing numeric or character data followed by end-or-identify (EOI)
condition, where the EOI control line on HP-IB is asserted to Indicate the end of the
transmission. END signifies the EOI condition.
digit 0123456789
lsb length Represents the least significant byte of a two-byte word that describes the number of
bytes returned or transmitted. See msb length.
msb length Represents the most significant byte of a two-byte word that describes the number of
bytes returned or transmitted. See lsb length.
number Expressed as integer, decimal, or in exponential (E) form. Real Number Range: f
1.797693134862315 x 1tio8, including 0.
output termination Carriage return (CR) and line feed (LF), with end-or-identify (EOI) condition. ASCII
codes 13 (carriage return) and 10 (line feed) is sent via HP-IB, then the end-or-identify
control line on HP-IB sets to indicate the end of the transmission.
predefined function ACTVF, AMPLEN, BITF, CNTLI, CORREK, DONE, HAVE, HN, LIMIFAIL, MEAN,
MEANTH, MEM, MINPOS, MKBW, PEAKS, PKPOS, PWRBW, REV, RMS, SER, STB,
STDEV, SUM, SUMSQR, TRCMEM, VARIANCE.
If a predefined function takes a parameter (for example, PKPOS TRA), it can be used
only as the last parameter of an spectrum analyzer command that has two or more
predelined functions as parameters. For example, MPY VAR,PKPOS TRB,HAVE CARD;
is illegal, but MPY V-AR,DONE,HAVE CARD; is not.
predeflned variable 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.
AMB, AMBPL, ANLGPLUS, ANNOT, AT, BAUDRATE, CF, CNTLA, CNTLB, CNTLC,
CNTLD, COUPLE, CRTHPOS, CRTVPOS, DATEMODE, DET, DL, DOTDENS, FA, FB,
FMGAIN, FOFFSET, GATE, GATECTL, GD, GL, GP, GR, GRAT, INZ, LG, LIMIDISP,
LIMIMODE, LIMIREL, LIMITEST, MEASURE, MENU, MF, MKA, MKACT, MKF, MKFCR,
MKN, MKNOISE, MKP, MKPAUSE, MKPX, ML, MKTRACK, MODE, MSI, NRL,
POWERON, PREAMPG, PRNTADRS, PSTATE, RB, RL, RLPOS, ROFFSET, SAVRCLN,
SETDATE, SETTIME, SP, SQLCH, SRCALC, SRCAT, SRCNORM, SRCPOFS, SRCPSTP,
SRCPSWP, SRCPWR, SRCTK, SS, ST, SWPCPL, SYNCMODE, TH, TIMEDATE, TIMEDSP,
TVLINE, TVSFRM, TVSYNC, TVSTND, VB, VBR, WINZOOM, ZMKCNTR, ZMKSPAN.
trace element Value contained in one trace point. Notated as TRA[N] where N specifies the point
position ln the trace array. Values for N are 1 to 401 (for traces A, B, C) or 1 to 2047
(for traces specified by TRDEF). The same values apply to trace B (TRB[N]), trace C
(TRC[N]), and user-defined traces (LABEL[N]).
trace range Values contained in trace segment. Multi-point segments are notated as TRA[N,M],
where N and M are end points of a segment and specify point positions in trace array.
Values for N or M are 1 to 401 (for traces A, B, C), or 1 to the length of a trace as
specified by TRDEF. The same values apply to trace B (TRB[N,M]), trace C (TRC[N,M]),
and user-defined traces (LABEL[N,M]). Single-point segments are notated the same as
the trace element above.
user-defined function A label 2 to 11 characters long that is defined by the FUNCDEF command. Choice of
characters is A through Z and the underscore (-). The underscore should be used as the
second character of the label. Omitting the underscore, or using the underscore as
other than the second character in a label, is not recommended.
user-defined trace A label 2 to 11 characters long that is defined by the TRDEF command. Choice of
characters is A through Z and the underscore(-). The underscore should be used as the
second character of the label. Omitting the underscore, or using the underscore as
other than the second character in a label, is not recommended.
user-defined variable A label 2 to 11 characters long that is defined by the VARDEF or ACTDEF command.
Choice of characters is A through Z and the underscore(-). The underscore should used
as be the second character of the label. Omitting the underscore, or using the
underscore as other than the second character in a label, is not recommended.
PLTPRT PLT PORT RPIB PAR Directs the plotter output to HP-IB or
parallel ports for Option 041.
PLTPRT PLT PORT SER PAR Directs the plotter output to RS-232 or
parallel ports for Option 043.
POWERON PDRER ON IP LAST Selects the spectrum analyzer’s power
on state.
An HP 8590L or HP 8592L needs an Option 003 installed in it to use this command.
NEXT PX RXGRT ,
NEXT PI LEFT,
MARKER ->PK-PK
YIATH (see also ABS Places the absolute value of the source
l’race Math) values in the destination.
ADD Adds the sources and sends the sum to
the destination.
AVG Averages the source and the destination
BIT Returns the state of a bit.
CTA Converts the source values from
measurement units to the current
absolute amplitude units and stores the
result in the destination.
CTM Converts the source values to
measurement units and places the resuli
in the destination.
DIV Divides source 1 by source 2 and places
the result in the destination.
EXP Places the exponential of the source in
the destination.
INT Places the greatest integer that is less
than or equal to the source value into
the destination.
LOG ‘lakes the logarithm (base 10) of the
source, multiplies the result by the
scaling factor, then stores it in the
destination.
MEAN Returns the mean value of the given
trace ln measurement units.
MEANTH Returns the mean value of the given
trace above the threshold, in
measurement units.
MIN Compares source 1 and 2, point by
point, and stores the lesser of the two in
the destination.
MINPOS Returns a value, which is the s-axis
position (in display units) of the
minimum amplitude value in trace A,
trace B, trace C, or user-defined trace.
MOD Stores the remainder from the division
of source 1 by source 2 in the
destination.
MPY Multiplies the sources, point by point,
and places the results in the destination.
MXM Compares source 1 and source 2, point
by point, sending the greater value of
each comparison to the destination.
PDA Sums the probability distribution of
amplitude in the destination trace with
the amplitude distribution function of
the source trace.
PDF Increments an element of the
destination trace whenever the
corresponding element of the source
trace exceeds a threshold.
GATECTL* GATE CTL EDGE LVL* Selects between the edge and the level
mode for Option 105, the time-gated
spectrum analysis capability.
GC* (PRESET) Presets Option 105, the time-gated
spectrum analysis capability.
GD* GATE DELAY* Sets the delay time before the gate
opens.
GDRVCLPAR* CLEAR PARAH * Clears the pulse parameters (pulse
width, pulse repetition interval, and
reference edge) for a time-gate
measurement by setting the pulse
parameters to 0.
GDRVGDEL* GATE DELAY l (when using For the frequency window only,
the gate utility) GDRVGDEL sets the time delay from
when the gate trigger occurs to when
the gate is opened.
GDRVGLEN* GATE LBNGTH * Adjusts the gate length in both the time
and frequency windows.
GDRVGT’ GATE ON OFF * Turns on or off the gate in the
frequency window.
GDRVGTIM* TRIG HER ON OFF * Activates the gate trigger marker, and
places it at the given value.
GDRVPRI’ ENTER PRI * Enters the specified value as the pulse
repetition interval.
GDRVPWID* EN+lYEX WIDTH * Enters the specified value as the pulse
width.
GDRVRBW* CPL RBW ON OFF l Couples or uncouples the resolution
bandwidth to the specified pulse width.
GDRVREFE * ENTER RRF EDGE* Allows you to enter the position (in
time) for a reference edge.
GDRVST* CPL SWF ON OFF * Couples or uncouples the sweep time to
the pulse repetition interval.
GDRVSWAP * UPDAm TIBRFREQ * Makes the window (either the time or
frequency window) that is currently not
the active window, the active window.
GDRVSWDE’ Sk’EEE’ DELAY * Allows you to specify the delay from
the edge of the gate trigger until the
sweep is started in the time window.
Option 105 required.
3P* EDGE POL POS NEG * Sets the polarity (positive or negative)
for the gate trigger.
ST SWP TIMB AUTO HAN Specifies the time in which the spectrun
analyzer sweeps the displayed
frequency range.
3YNCHRONIZATION DONE Allows you to determine when the
spectrum analyzer has started to
execute all commands prior to and
including DONE.
l-S Starts and completes one full sweep
before the next command is executed.
rRACE AMB A- B -> A ON OFF Subtracts trace B from trace A and
sends the result to trace A during every
sweep of the spectrum analyzer.
AMBPL NUFtNLI2E ON OFF Subtracts trace B from trace A, adds thr
display line value to the difference, and
sends the result to trace A during every
sweep of the spectrum analyzer.
4XB A <--> B Exchanges trace A and trace B.
BLANK BLANK A, BLANK B , Blanks trace A, trace B, or trace C and
stops taking new data into the specified
BLANK C
trace.
BML B- DL -> B Subtracts display line from trace B and
places the result in trace B.
BTC 6 -> & Transfers trace B into trace C.
BXC 6 <--> c Exchanges trace B and trace C.
ABORT
Abort
Stops the execution all user-defined functions and readies the instrument for the next
command received.
Syntax
ABORT
Example
In the example below, ABORT is in the function called D-LP.
10 OUTPUT 718*"IP-" Initializesspectrum analyzer
20 OUTPUT 718;"CLRDSP;" Clears graphics from the spec-
trum analyzer display.
30 OUTPUT 718;"TRDSP TRA,OFF;" Turns ofl trace A.
40 OUTPUT 718;"ANNOT 0FF;GRAT OFF;" Blanks annotation and graticule.
50 OUTPUT 718;"VARDEF C-OUNT,O;" Declares a user-&fined vari-
able called C-OUNT
60 !
70 OUTPUT 718;"FUNCDEF D-LP,Q"; Declares a user-d@inedfunc-
tion called D-LR
80 OUTPUT 718;"REPEAT;"; Begins a repeat loop.
90 OUTPUT 718;"ADD C,OUNT,C-OUNT,lOO;"; Adds 100 to COUNT.
100 OUTPUT 718;"PU,PA 100,lOO;PD;";
110 OUTPUT 718;"DSPLY C-OUNT,4.0;"; Displays the valz~ of C-OlliNT.
120 OUTPUT 718;"IF C_OUNT,EQ,300 THEN;ABORT;ENDIF;"; Aborts the function when
COUNT is equal to 300.
130 OUTPUT 718;"UNTIL C_OUNT,EQ,400;"; This is not executed because
of the ABORT command in
line 120.
140 OUTPUT 718*"0*"* Ma&s end of D-LI?
150 OUTPUT 718;"F;NCDEF S-HELL,@"; DQhtes second user-d@ined
function called SHELL.
160 OUTPUT 718;"D,LP;TEXT!INSIDE S-HELL!;@" Executes D-LPand displays
message on display
170 !
180 OUTPUT 718;"SBHELL;" This calls the S-HELLjknc-
tion which in turn calls the
D_LP function.
190 END
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.
In comparison, the RETURN command also interrupts operation of a user-defined function, but
RETURN returns the operation to the point at which the user-defined function was called. (See
“RETURN” for more information.)
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 t r a c e d
h trace range /
b predefined v a r i a b l e /
u s e r - d e f i n e d varioblej
Item Description/Default
User-de&ted trace A trace defined by the TRDEF command. Any valid trace name.
User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
PredeEned variable A command that acts as a variable. Refer to Table 5-l.
PrederIned function Function that returns a value. Refer to Table 5-l.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Number Anv real or inteeer number. Real number range.
Prerequisite Commands: TRDEF when using user-defined trace. ACTDEF or VARDEF when
using user-defined variable. TS when using trace data.
Example
10 OUTPUT718;“IP;SNGLS;” Initializes spectrum analyze?; stops sweeping.
20 OUTPUT 718;“VARDEF P,OINT,O;” D@ines a variable, called P-OINT, and initializes it
to 0.
30 OUTPUT 718;“ABS P-OINT,-2;” Places the absolute value of -2 into POINT
40 OUTPUT718;“P_OINT?;“; Returns value of IWNT to computer
50 ENTER 718;Second Assigns value to computer variable, Second.
60 DISP Second Displays the absolute value (2).
70 END
Description
The source and the destination may be different lengths. The lengths of predefined traces
(trace A, trace B, or trace C) is 401, while user-defined traces have a length of up to 2047, and
variables have a length of 1. 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.
ACP
Adjacent Channel Power
Performs the adjacent channel power measurement.
Syntax
ACP
XACP
Example
OUTPUT 718;"ACP;" F&forms the adjacent channel power masurewsnt.
Description
ACP measures the power of the carrier and the power of the channels that are adjacent to the
carrier, and then computes a power ratio for each of the adjacent channels, using the carrier
power as a reference. ACP performs the adjacent channel power measurement using the values
for channel spacing (ACPSP) and channel bandwidth (ACPBW).
To use ACP:
1. Set the center frequency to the carrier’s frequency.
2. For best accuracy, set the reference level so that the carrier signal peak is within the first
(top) division of the display graticule.
3. Select the channel spacing with the ACPSP command.
4. Select the channel bandwidth with the ACPBW command.
5. If you want the spectrum analyzer settings to be set automatically, ensure that ACPPAR is
set to 1. If you want to set the spectrum analyzer settings manually, set ACPPAR to 0. (See
“ACPPAR” for more information about selecting the spectrum analyzer settings manually.)
6. If the spectrum analyzer is in the continuous-sweep mode, use the single sweep command
(SNGLS) to select the single-sweep mode.
7. Execute the ACP command.
8. Query ACPERR to determine if there is a setup error for the ACP measurement. See the
following table for more information about ACPERR.
9. If no error occurred, query ACPPWRTX, ACPMAX, ACPLOWER, and ACPUPPER variables
for the numeric results of the ACP measurement. See the following table for more
information about these variables.
10. If no error occurred, query trace A (TRA) for the trace results of the ACP measurement.
Measurement Results: The results of the ACP command are stored in the variables and trace
in the following table.
Restrictions
Executing ACP exits the 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), marker table (MKTBL), peak table
(PKTBL), percent AM (PCTAM), or peak zoom (PKZOOM).
AUNITS of W or V, will give incorrect results for ACPMAX, ACPLOWER, and ACPUPPER.
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
Example
OUTPUT 718;"MOV ACPBW,lOOKHZ;" SpeciJies a 100 kHz integration bandwidth.
OUTPUT 718."ACP*"
9 8 F&forms the adjacent channel power measurement.
Query Response
chonne I
bandwidth
/ \
output
t e r m i n a t i o n +
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
Example
OUTPUT 718*"ACP*" I4qforrn.s the adjacent channel power measurenzent.
OUTPUT 718;"ACP~ONTM;" Places the spectrum analyzer into continuous sweep mode so
that the adjacent channel power measurement will be per-
formed at the end of ever9 sweep.
Description
When ACPCONTM is executed, the numeric or graph results of adjacent channel (ACP), channel
power (CHP), or occupied bandwidth (OBW) measurements are calculated at the end of every
sweep. While in the continuous sweep measurement, you can change the channel spacing
(ACPSP), channel bandwidth (ACPBW), or another spectrum analyzer setting and the numeric
or graph results for the ACP, CHP, or OBW measurement will be automatically updated.
If ACPCONTM is executed after the adjacent channel power extended command (ACPE), only
the trace results for the top 80 dB are obtained; the numeric or ACP graph results of the ACPE
measurement are not available in continuous sweep mode.
Syntax
ACPE
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 is similar to ACP, but unlike ACP, ACPE
measures the adjacent channel power over an extended dynamic range. The extended range is
measured by taking two measurement sweeps, with the reference level for each sweep set to
different values, and then combining the trace data.
Executing ACPE places the spectrum analyzer in the single sweep measurement mode. The
log scale is set to 13 dB/div, which provides an actual display range of 104 dB. If you execute
the continuous sweep measurement command (ACPCONTM), only the trace results for the top
80 dB are obtained; the numeric and ACP graph results of the ACPE measurement are not
available.
To use ACPE:
1. Set the center frequency to the carrier’s frequency.
2. For best accuracy, set the reference level so that the carrier signal peak is within the first
(top) division of the display graticule.
3. Select the channel spacing with the ACPSP command.
4. Select the channel bandwidth with the ACPBW command.
5. If you want the spectrum analyzer settings to be set automatically, ensure that ACPPAR is
set to 1. If you want to set the spectrum analyzer settings manually, set ACPPAR to 0. See
“ACPPAR” for more information about selecting the spectrum analyzer settings manually.
6. If the spectrum analyzer is in the continuous-sweep mode, use the single sweep command
(SNGLS) to select the single-sweep mode.
7. Execute the ACPE command.
8. Query ACPERR to determine if there is a setup error for the ACP measurement. See the
following table for more information about ACPERR.
9. If no error occurred, query ACPPWRTX, ACPMAX, ACPLOWER, and ACPUPPER variables
for the numeric results of the ACPE measurement. See the following table for more
information about these variables.
10. If no error occurred, query trace A (TRA) for the trace results of the ACPE measurement.
ACPE Measurement Results
Variable Description units
or Trace
1CPERR A variable that indicates if setup errors occurred for the ACPE Vane
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. An ACPERR value of 1 to 7 indicates the following:
1 Frequency span < (2 x channel spacing + channel bandwidth).
2 Channel bandwidth > 2 x channel spacing.
3 Frequency span < (2 x channel spacing + channel bandwidth) and
channel bandwidth > 2 x channel spacing.
4 Channel bandwidth < frequency span/loo.
5 Frequency span < (2 x channel spacing + channel bandwidth) and
channel bandwidth < frequency span/loo.
6 Channel bandwidth > 2 x channel spacing and channel bandwidth <
frequency span/loo.
7 Frequency span < (2 x channel spacing + channel bandwidth), channe:
bandwidth > 2 x channel spacing, and channel bandwidth < frequency
span/loo.
KPPWRTX A variable that contains the total transmit band carrier power. ACPPWRTX determined by
is calculated by the following: IUNITS command
default unit is dBm.
lo X ~o.!7(Po~eTCarrie~)
LCPMAX A variable that contains the relative power level of the adjacent channel 1B
with the highest measured power level.
LCPLOWER A variable that contains the relative power level found in the lower 1B
adjacent channel. ACPLOWER is calculated by the following:
~~~~%wer channel
10 x log( 1
POWCT carrier
k?PUPPER A variable that contains the relative power level found ln the upper iB
adjacent channel. ACPUPPER is calculated by the following:
POW.3 upper channel
10 x log( 1
Power carrier
‘RA IRA is trace A. Trace A contains the swept RF spectrum that was used to determined by the
neasure adjacent channel power. race data format
TDF) command.
Restrictions
Executing ACPE exits the 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), marker table (MKTBL), peak table
(PKTBL), percent AM (PCTAM), or peak zoom (PKZOOM).
AUNITS of W or V, will give incorrect results for ACPMAX, ACPLOWER, and ACPUPPER.
Syntax
Example
OUTPUT 718;"ACP;" F&yfoms the adjacent channel power measurement.
OUTPUT 718;"MOV ACPGR,l;" l3~~bles the ACP graph function and creates a graph of
ACP as a function of the frequency offset from the center
freq=y.
Description
Setting ACPGR to 1, does the following:
w Turns off the display of the ACP numeric results.
w Generates a graph of the adjacent channel power ratio, for the selected channel bandwidth,
as a function of frequency spacing from the center frequency.
n Places the graph in trace C.
n Adds the GRPH MKR ON OFF softkey to the menu.
n If in continuous measurement mode, the ACP graph will be updated at the end of every
sweep.
Syntax
Example
OUTPUT 718;"ACP;" Performs the adjacent channel power measurement.
OUTPUT 718;"ACPGRAPH;" Creates a graph of ACP as a function of the frequency offset
from the center-frequency.
Description
ACPGRAPH uses the ACP spectrum data that was obtained (in trace A) by the previous
adjacent channel power or adjacent channel power extended measurement to generate the
graph. (Use the ACP or ACPE command to perform the adjacent channel power measurement.)
ACPGRAPH does the following:
I Generates a graph of the adjacent channel power ratio, for the selected channel bandwidth,
as a function of frequency spacing from the center frequency.
n Places the graph in trace C. The units for all traces is determined by the trace data format
(TDF) command.
When the graph is generated, the reference level represents an adjacent channel power ratio of
0, and the horizontal center represents a frequency offset (and channel spacing) of 0 Hz. The
results of ACPGRAPH are not defined for frequency spacings where the graph is drawn below
the bottom graticule line.
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
Example
OUTPUT 718;"ACP 8. II &forms the adjacent channel power measurement.
OUTPUT 718;"MOV ACPGR,l;" Enables the ACP graph function and creates a graph of
ACP as a function of the frequency offset from the center
freq-y.
OUTPUT 718;"MOV ACPMK,l;" Enables the ACP graph mm-km
Description
Setting ACPMK to 1, does the following for ACP graph:
w Positions a reference marker on the trace for ACP graph at the center frequency position.
w Positions a A marker on the trace at one channel spacing above the center frequency.
n Displays numeric values for delta frequency, ACP ratio, and channel power at the marker
position.
Setting ACPMK to 1, does the following for channel power graph:
w Positions a marker on the trace for channel power graph at center frequency position.
n Displays numeric values for frequency and channel power at the marker position.
Setting the ACPMK to -1, turns off the marker function.
Syntax
Example
OUTPUT 718;"MOV ACPPAR,l;" Sets theparametersfor the adjacent channel powerparam-
eters automatically.
Description
When ACPPAR is set to 1, the spectrum analyzer settings for the ACP, ACPE, CHP, or OBW
measurement are set by the spectrum analyzer. When ACPPAR is set to 1, the spectrum
analyzer does the following before the measurement is performed:
n Performs the trace preset (TRPRST) command.
n Changes the trigger mode to free run.
n Changes the detector mode to sample.
n Changes the amplitude scale to 10 dB per division.
n Sets the frequency span, resolution bandwidth, video bandwidth, center frequency step size,
and sweep time based on the channel spacing (ACPSP) and channel bandwidth (ACPBW).
See the following table for more information about the spectrum analyzer settings for each
measurement.
n ‘fakes a sweep.
Channel Power (CHP) Highest setting that does 10 x RB 2 x ACPBW ACPSP Auto
not exceed 0.025 x
ACPBW’
Occupied Bandwidth Highest setting that does 10 x RB 3 x ACPSP ACPSP Auto
VW not exceed 0.02 x
ACPSP *
* If Option 130 is not installed in the spectrum analyzer, the narrowest resolution bandwidth is limited to 1 kHz.
When ACPPAR is set to 0, you must set the spectrum analyzer settings for the ACP, ACPE, CHP,
or OBW measurement. You must ensure that trace A contains the RF spectrum to be measured,
and that the frequency span, resolution bandwidth, video bandwidth, and the detector are set
appropriately for the measurement. When ACPPAR is set to 0, the measurement commands
(ACP, ACPE, OBW, CHP) do not take a sweep before making the measurement.
You can execute the ACPPAR command two different ways. You can either execute the
ACPPAR command directly (for example, “ACPPAR 1; ‘I) or use the MOV command to move
the 1 or 0 into the ACPPAR command (for example, “MOV ACPPAR, 1; ‘I). If you use the MOV
command, no text is displayed in the active function area during command execution.
Query Response
r manual 7
output
A 0 / l t e r m i n a t i o n ---)
Syntax
Example
OUTPUT 718;"ACP;" Performs the adjacent channel power measurement.
OUTPUT 718*"ACPSNGLM*"
8 , Repeats the previous wzeasuremmt once.
Description
See the “ACP ” “ACPE, ” “CHP,” and “OBW” for more information about the measurement
results of each measurement.
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
Example
OUTPUT 718;"MOV ACPSP,lOOKHZ;" [email protected] 100 kHz frequency spacing between channels.
OUTPUT 718;"ACP;" Performs the adjacent channel power wxmsurenz-ent.
Description
The value of ACPSP is used when calculating the results of the adjacent channel (ACP) or
adjacent channel extended (ACPE) measurement. The value of ACPSP is also used when
ACPPAR is set for automatic coupling of the spectrum analyzer settings for the ACP, ACPE,
CHP, or OBW measurement.
Once you enter a value into ACPSP, that value is retained until you change it, or execute
DISPOSE ALL. Pressing (JZF] or turning the spectrum analyzer off does not change the
value of ACPSP
You can execute the ACPSP command two different ways. You can either execute the ACPSP
command directly (for example, "ACPSP 1OOKHZ ; I’) or use the MOV command to move the
frequency value into the ACPSP command (for example, ~~MOVACPSP,lOOKHZ;"). If you use the
MOV command, no text is displayed in the active function area during command execution.
Query Response
chonne I
r spacing
output
t e r m i n a t i o n ---)
ACTDEF
Active Function Definition
Creates a user-defined active function.
Syntax
function name
/ \
ACTDEF character
t e x t f o r a c t i v e
function readout
/ \
- p r e s e t v a l u e - u n i t s
u s e r - d e f i n e d v a r i a b l e
XACTDEF
Prerequisite Command: FUNCDEF when using a user-defined function. VARDEF when using
a user-defined variable.
Example 1
10 DIM A$[1501 Dimensions array to hold
query response.
20 OUTPUT 718;"ACTDEF M-BW,%MY BANDWIDTH%,5MHZ,STEP,@"; lk$ms a function called
30 OUTPUT 718;"MOV RB,M-BWO;"; M-BW M-BWallows ma-
nipulation of the ini-
tial value of RES BW (5
MHz) by the step keys
and the knob. The res-
olution bandwidth will
be rounded to the near-
est allowable bandwidth,
howevex The “@” sym-
bol marks the end of the
ACTDEF declaration.
40 OUTPUT 718;"M,BW;" Activates the M-BWfunction.
50 OUTPUT 718;"ACTDEF M-BW?;" Queries the &fir&ion of
the M-BWfunction.
60 ENTER 718;A$
70 DISP A$ Displays the definition
of the M-BWfunction.
80 END
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.)
OUTPUT 718;"KEYDEF l,D-SPAN,@ FFTISPANO;" Assigns D-SPAN to SOJ%
key 1.
OUTPUT 718;"ACTDEF D-SPAN,OENTER FFT SPANO,lOO,HZ,Q"; Defines the DSPANfunc-
tion. The D-SPAN func-
tion displays ENTER FFT
SPAN on the spectrum an-
alyzer display, and has
an initial value of 100 Hz.
OUTPUT 718;"MOV SP,O;"; Thefrequency span must
be zero to make a FFT
measurement.
OUTPUT 718;"DIV ST,200,D_SPAN;"; Changes the spectrum an-
al yzer sweep time accord-
ing to the value of D-SPAN.
DSPANis divided by 200,
which represents the num-
ber of buckets.
OUTPUT 718;"@;" Ends the ACTDEF declaration.
LOCAL 718
After executing this example, the softkey label of softkey 1 is FFT SPBBS . Softkey 1 can be
accessed by pressing (j-j, User Mems .
Description
With the ACTDEF command, you can create an active function that is similar to the active
functions that are already provided by the spectrum analyzer. For example, CF, DL, AT, MKA,
MKFCR, MKD, MKF, MKN, RB, SS, ST, TH, VAVG, VB, VBR are all active functions that are
provided by the spectrum analyzer.
The ACTDEF command consists of the function name, the text for the active function readout,
the preset value, the unit, and the analyzer commands or user-defined function.
Function name: The function name is the name that will be used to invoke the ACTDEF
function. See line 40 of Example 1 for an example of invoking an ACTDEF function.
Text for the active function readout: This is the text is displayed, when the ACTDEF
function is active, in the active function readout area of the spectrum analyzer display.
Preset value: The preset value is the value of the ACTDEF function until you change it.
Executing an instrument preset (IP) resets the ACTDEF function’s value back to the preset
value.
Units: The ACTDEF function’s value can be manipulated in different ways depending on the
units parameter that is specified. For example, if you select INT (integer) units, the value of the
ACTDEF function can only be incremented or decremented by 1. For the INT unit, the step
keys and the knob can be used to change the function’s value.
Some of the unit parameters specify the units of the function value (Hz, seconds, dB, dBm, V).
The STEP, INT, and NONE parameters are unitless values. The STEP unit parameter works
the same as the INT unit parameter. When using the INT, STEP, and NONE parameters in
an ACTDEF declaration, the value displayed on spectrum analyzer display for the ACTDEF
function value is rounded to the nearest integer; however the actual value in spectrum
analyzer memory is not rounded.
Use the following guidelines when defining ACTDEF:
n The function name used in the ACTDEF declaration must be unique. Do not use an existing
Table 5-2 for a list of
reserved words.
n Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
Query Response
There are two ways to query the ACTDEF command. Querying the ACTDEF function’s name
returns the value of the ACTDEF function. For example, if the ACTDEF function’s name is
TEST, executing OUTPUT 718;"TEST ? ; ‘I returns the value of ACTDEF function TEST in the
following format:
user-defined t e x t f o r a c t i v e
f u n c t i o n nome function readout
/ \ / \
user-defined function
,- r o u t i n e -\
a n a l y z e r comnand output
’ t e r m i n a t i o n +
QACTDEF
Syntax
a c t i v e f u n c t i o n
/ \
ACTVF character
Prezef ined
function path only
Related Commands: Any active function (see the list of active functions in the description
below), IP.
Example
OUTPUT 718;"RB IOOKHZ;" Makes resolution bandwidth the active function.
OUTPUT 718;"ACTVF RB;" Lleterrnines if resolution bandwidth is the active function.
ENTER 718;A Gets the response from the spectrum analyzer
DISP A LXsplays response from the spectrum analyzer:
Description
The active functions are ACPBW, ACPSP, AT, BAUDRATE, CF, COUPLE, CRTHPOS, CRTVPOS,
DA, DET, DL, DOTDENS, FA, FB, FFTSTOP, FMGAIN, FOFFSET, GATECTL, GD, GL, GP, INZ,
LG, MKA, MKD, MKFC, MKFCR, MKN, MKPAUSE, MKPX, ML, MODE, MSI, M4, NDB, NRL,
PREAMPG, PRNTADRS, RB, RCLS, ROFFSET, RL, RLPOS, SAVES, SAVRCLN, SETDATE,
SETTIME, SP, SQLCH, SRCALC, SRCAT, SRCPOFS, SRCPSTP, SRCPSWP, SRCPWR, SRCTK,
SWPCPL, SS, ST, TH, TIMEDATE, TVSYNC, TVLINE, VAVG, VB, VBR, ZMKSPAN, ZMKCNTR
and user-defined active function specified by the ACTDEF command.
ADD
Add
Adds the sources and sends the sum to the destination.
Syntax
7 d e s t i n a t i o n -
ADD
k u s e r - d e f i n e d t r a c e /
k t r a c e range /
% p r e d e f i n e d v a r i a b l e I
u s e r - d e f i n e d variable)
,- s o u r c e 1 ‘\ ,- s o u r c e 2 -,
‘+ u s e r - d e f i n e d t r a c e / user-defined trace
Y p r e d e f i n e d v a r i a b l e / predeflned v a r i a b l e I
XADD
Prerequisite Commands: TRDEF when using user-defined trace. ACTDEF or VARDEF when
using user-defined variable. TS when using trace data.
Related Commands: AMBPL, APB, SUB.
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.
70 DISP Freq Displays Freq on computer display.
80 END
Description
The ADD command adds values of source 1 and source 2 (point by point), and sends the sum to
the destination.
Traces, user-defined traces, and trace ranges are added 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-1.
The sources and destination may be different lengths. The length of predefined traces (trace A,
trace B, or trace C) is 401. User-defined traces have a length of up to 2047, and variables have
a length of 1. When sources differ in length, the last element of the shorter source is repeated
for the addition process. After the addition, the last element is repeated if the destination
is longer than the sum trace. When the sources are longer than the destination, they are
truncated to fit.
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
Example 1
10 OUTPUT 718;"IP;" Initializes spectrum analyzer
20 OUTPUT 718;"CLRW TRB;TS;VIEW TRB;AMB ON;" Displuys trace B and turns on the
AMBjknction. If trace A and trace B
contain exactly the same trace data,
the result is trace data at 0 mea-
surement units, at the bottom of the
display.
30 OUTPUT 718*"AMB'*" Queries the state of the AMBfunction.
40 ENTER 718;ieply;' The query response is placed in a
string variable.
50 DISP Reply$ “ON” is displayed on the computer
display.
60 END
Example 2
10 OUTPUT 718;"IP;SNGLS;" Initializes spectrum analyzer
20 OUTPUT 718;"MOV TRA, 8000;" .Each element of trace A is set to 8000 measure-
ment 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 measure-
ment 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.
70 OUTPUT 718;"BLANK TRB;VIEW TRA;" The result is displayed at 1000 measurement
units which is equal to -70 dBm.
80 END
Example 3
10 OUTPUT 718;"IP;SNGLS;RL 20DB;" Initializes the spectrum analyzer and sets the
reference level.
20 OUTPUT 718;"MOV TRA,5000;" Sets trace A to 5000 measurement units, which
is equal to -10 dBm.
30 OUTPUT 718;"VIEW TRA;" Places trace A in the mew mode.
40 OUTPUT 718;"MOV TRB,4000;" Sets trace B to 4000 measuremtst units, which
is equal to -20 dBm.
50 OUTPUT 718;"VIEW TRB;"
60 OUTPUT 718;"DL ODB;" Sets display line to 0 dBm, which is at 6000
measurement units.
70 OUTPUT 718."BML-"
9 2 Subtracts trace B minus display line. Result is
4000 - 6000 = -2000 measurements units (ofl
screen).
80 OUTPUT 718;"AMB ON;" Subtracts trace A minus modified trace B (5000
-(-2000) = 7000 or 10 dBm. Notice that this has
resulted in a subtraction of amplitude in dBm,
-10 dBm -(-20 dBm) = 10 dBm.
90 OUTPUT 718;"BLANK TRB;VIEW TRA;"
100 END
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). Because subtracting
trace B from trace A can cause the result in trace A to be displayed off screen, the trace A
minus trace B plus display line (AMBPL) command can be used. As shown in example 2, if the
trace data value of trace A is 0 dBm (8000 measurement units), and trace B is -10 dBm (7000
measurement units), the result of executing AMB is 1000 measurement units. If the AMBPL
command is used instead of AMB, and the display line is set at -50 dBm (mid-screen), the
result in trace A is kept at mid-screen.
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. In such applications, amplitude units in dBm should be subtracted.
As shown in example 2, subtraction of measurement units is not equivalent to subtraction
of amplitude units. Correct results are obtained if the display line is set to 0 dBm using DL,
and BML is used to subtract the display line from trace B. See example 3 for an example of
subtracting the display line from trace B.
Query Response
ON
OFF
002
Syntax
OFF
/
ON
Example
10 OUTPUT 718;"IP;SNGLS;RL 20DB;" Initializes spectrum analym activates single-
sweep mode.
20 OUTPUT 718;"MOV TRA,5000;" Sets trace A to 5000 meoxurement units, which
is equal to -10 dBm.
30 OUTPUT 718;"VIEW TRA;"
40 OUTPUT 718;"MOV TRB,4000;" Sets trace B to 4000 measurement units, which
is equal to -20 dBm.
50 OUTPUT 718;"VIEW TRB;"
60 OUTPUT 718;"DL ODM;” Sets display line to 0 dBm, which is at 6000
measurement units.
70 OUTPUT 718;"AMBPL ON;" &forms trace A - trace B + display line. The
result is 5000 - 4000 + 6000 = 7000 or 10 dBm.
Note that this has resulted in a subtraction of
amplitude in dBm, -10 dBm -(-20 dBm) = 10
dBm.
80 OUTPUT 718;"BLANK TRB;VIEW TRA;"
90 END
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. In such applications, amplitude units in dBm should be subtracted.
To accomplish this, the display line should be set to 0 dBm using DL as shown in the example.
To compare how you would use the AMB command to do the same operation, see examples 2
and 3 for the AMB command.
Query Response
ON
OFF
002
Syntax
HZ number
KHZ
MHZ
Example
Compensate for frequency-dependent amplitude inaccuracies at the input.
10 DIM A$[2001
20 OUTPUT 718 ; "CF 1GHZ ; SP 200MHZ ; ‘I Sets center frequency and span.
30 OUTPUT 718;"AMPCOR lOOMHZ,5DB, Stores frequency-amplitude pairs in spectrum
IGHZ, -5DB,i.5GHZ,lODB;" analyzer Notice that j?equencies are in as-
cending order:
40 OUTPUT 718;"AMPCOR?;" Returns correction values to computer
50 ENTER 718;A$
60 PRINT A$ Displays the frequency-amplitude pairs.
70 OUTPUT 718;"AMPCOR OFF;" Turns off the amplitude correction constants.
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. Executing “AMPCOR ON;” or entering frequency and amplitude corrections, turns
on the amplitude correction factors. Performing an instrument preset (IP) or turning off
the spectrum analyzer sets AMPCOR to OFF. (Setting AMPCOR to OFF does not change the
frequency-amplitude correction factors that have been entered.)
The values of the correction points are applied across the active measurement range. Between
points, the correction values are interpolated. When measuring at frequencies outside the
first and last correction points, these values are used as the correction value. If you do not
want any amplitude correction outside of the first and last correction points, set the amplitude
correction to 0 at the frequencies that are outside of the first and last correction values.
With the Analog + display mode: When the Analog+ display mode is turned on, AMPCOR
applies only one amplitude correction across the displayed frequency span. When the Analog+
display mode is turned on, the amplitude correction for the current center frequency is used
over the entire frequency span.
Amplitude correction factors can be stored in spectrum analyzer memory with the SAVET or
SAVRCLN commands, or on the memory card with the STOR or SAVRCLN commands. The
amplitude correction factors can be edited and viewed with the Amp Cor softkey functions.
Query Response
AMPCOR? returns the frequency and amplitude correction pairs.
In-
Syntax
AMPLEN
,+a v
Xined
f u n c t i o n p a t h o n l y
XAMPLEN
Example
OUTPUT 718;"AMPLEN?;"
Description
The absolute value of the number that AMPLEN? returns is the number of frequency-
amplitude correction factors that have been entered. If no amplitude correction factors
have been entered, AMPLEN? returns a 0. (See “AMPCOR” for more information about
frequency-amplitude correction factors.)
AMPLEN returns the number of frequency-amplitude correction factors as a positive or
negative number. If AMPLEN returns a positive number, the frequency-amplitude correction
factors are turned on. If AMPLEN returns a negative number, the frequency-amplitude
correction factors are turned off.
Query Response
AMPLEN can return a number from 80 to -80.
number
o f c o r r e c t i o n f a c t o r s
output
t e r m i n a t i o n +
QAMPLEN
ANLGPLUS
Analog Plus
Turns on or off the Analog+ display mode.
Syntax
ON
/
OFF
XANLCPLUS
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. Emulating
an analog display means that a dot density of up to 40 dots per trace element can be obtained
instead of the usual one point per trace element.
Restrictions: Analog+ display mode is only available with sweeptimes greater than 200 ms.
Certain programming commands are not compatible with the Analog+ display mode. You
should not use the Analog+ display mode with the following programming commands:
AMB, AMBPL, AXB, BML, CLRW (TRB or TRC only), DEMOD, FFT, FF’IAUTO, FFTCONTS,
FFTSNGLS, LIMITEST, MEANTH, MINH, MKFC, MKPAUSE, MKSTOP, MKTRACK, MXMH,
ONMKR, PLOT, PP, SPZOOM, SRCTKPK, TH, TRDSP, VAVG, and VIEW.
Some programming commands allow you to specify a destination trace for the trace results. If
you are using the Analog+ display mode and you specify trace A as the destination trace, the
trace results are moved into the 401 point trace and not into the dots on the display. The dots
on the display remain unchanged. The programming commands that allow you to specify trace
A as the destination trace are as follows: ABS, ADD, APB, AVG, COMPRESS, CONCAT, DIV,
EXP, INT, LOG, MIN, MIRROR, MOD, MOV, MPY, MXM, PDA, PDF, PEAKS, SMOOTH, SQR, SUB,
TRA, TWNDOW, XCH.
Query Response
output
ON ’ t e r m i n a t i o n --)
OFF
(102
ANNOT
Annotation
Turns on or off the display annotation.
Syntax
OFF /
ON
P i 0
‘.. . . . . .._. .’
1
?
w
Example
10 OUTPUT 718 ; "ANNOT ON ; ‘I Turns on the annotation.
20 OUTPUT 718;"ANNOT?;" Queries state of the annotation f&&ion.
30 ENTER 718;Reply$ Places response in a variable.
40 DISP Reply$ Displays response on the computer screen.
50 END
Description
The ANNOT command turns on or off all the words and numbers (annotation) on the spectrum
analyzer display (except for the softkey labels).
Query Response
output
ON ’t e r m i n a t i o n +
OFF
002
Syntax
APB
Example
10 OUTPUT 718;"IP;SNGLS;" Initializes spectrum andyzq changes
to single-sweep mode.
20 OUTPUT 718;"TS;" Updates the trace.
30 OUTPUT 718;"VIEW TRA;RL -2ODM;CLRW TRB;" Changes the refwence level.
40 OUTPUT 718;"TS;VIEW TRB;" llzkes a measurement sweep.
50 OUTPUT 718."APB*" Activates APB command.
60 OUTPUT 718;"BLAiK TRB;VIEW TRA;" Displays the result of APB
70 END
Description
The traces are added as 16-bit integers. Negative numbers are represented in two’s
complement format. The two’s complement representation of a negative number is obtained by
changing the 1s to OS in the binary representation of the number, and then binarily adding 1.
AT
Attenuation
Specifies the RF input attenuation.
Syntax
/- a t t e n u a t i o n
Example
OUTPUT 7 18 ; “AT 40DB ; ” Sets the attenuation to 40 dR
OUTPUT 7 18 ; “AT UP ; ” Increases the attenuation to 50 dR
Description
The AT command specifies the input attenuation in 10 dB steps. Normally, the input attenuator
is coupled to the reference level. When a continuous wave signal is displayed with its peak at
or below the reference level, the coupling keeps the mixer input level at or below the specified
level (also see the command “ML”). The AT command allows less than the specified value at the
mixer input.
When the attenuation is increased with the AT command, the reference level does not change.
If the attenuation is decreased from the coupled value using the AT command, the reference
level will be decreased. When the reference level is changed using the RL command, the
input attenuation changes to maintain a constant signal level on the screen if attenuation is
auto-coupled. Using auto-coupling resets the attenuation value so that a continuous wave
signal displayed at the reference level yields -10 dBm (or the specified mixer level) at the
mixer input.
The step keys, knob, and DN parameter do not allow an attenuation entry below 10 dB. Only
direct entry of “AT ODB;” will achieve 0 dB attenuation.
Caution Signal levels above + 30 dBm will damage the spectrum analyzer.
Query Response
t e r m i n a t i o n +
AUNITS
Amplitude Units
Specifies the amplitude units for input, output, and display.
Syntax
DBM
DBMV
Example
OUTPUT718.“LN*” Changes spectrum analyzer to linear mode.
OUTPUT 718 ; “AUNITS DBMV ; " Changes the linear amplitude units to DBMV
OUTPUT718.“AUNITS’.” *9 Queries current amplitude units.
ENTER 718;&PIy$ Puts response in a variable.
DISP Reply$ Displays response on the computer screen.
Description
The AUNITS command sets the amplitude readouts (reference level, marker, display line,
and threshold) to the specified units. Different amplitude units can be set for log and linear
amplitude scales.
Query Response
The query response returns the current amplitude units for the current amplitude scale.
output
’t e r m i n a t o r +
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-" Couples the attenuation.
OUTPUT 718;"HD;AUTO;" Couples all functions.
OUTPUT 718*"AUTO-"
9 2 Couples and deactivates a related function (if one was active), or
couples all Jimctions (if rm functions were active).
Description
The result of the AUTO command depends on the active function it acts upon. The following
are the functions that are affected by the AUTO parameter:
AT couples attenuation to the reference level.
DL turns off display of line but does not change the value of the display line.
MKA turns off marker.
MKD turns off marker.
MKF turns off marker.
MKFCR deactivates use of user-supplied counter resolution value, however, the value
remains unchanged.
MKN turns off marker.
RB couples resolution bandwidth to frequency span.
SRCPSTP sets source power step to 0 (it may value may be displayed at 10 however).
SRCPSWP turns off power sweep.
SRCPWR turns off source power.
ss couples step size to frequency span.
ST couples sweep time to frequency span.
TH turns off display of threshold, but does not change its value or prevent usage in
peak searching.
VAVG stops averaging.
VB couples video bandwidth to resolution bandwidth.
VBR sets the video to bandwidth ratio to 0.3.
Individual functions can be coupled by entering the keyword for the command before AUTO,
(for example, “AT AUTO; “).
AUTO has no effect if the active function is not in the above list.
Executing “AUTO;” if no functions are active couples all functions. Executing “HD;AUTO;”
couples all functions, turns off the reference position, and turns off normalization.
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 t r a c e /
\L trace range /
h p r e d e f i n e d v a r i a b l e d
u s e r - d e f i n e d variable/
u s e r - d e f i n e d varidble
b u s e r - d e f i n e d t r a c e /
predefined variable
user-defined variable
predefined function
Item Description/Default
User-defined trace A trace defined by the TRDEF command.
User-dehned variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
Predefined variable A command that acts as a variable. Refer to Table 5-l.
Predefined function Function that returns a value. Refer to Table 5-l.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Trace element An element of trace A, trace B, trace C, or a user-defined trace.
Number Any real or integer number. 1Real number range.
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: CLRAVG, TS.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzez
20 OUTPUT 718;"SNGLS;" Activates single-sweep mode.
30 OUTPUT 718;"DET POS;TS;" Activates the positive-peak detector and updates the
trace.
40 OUTPUT 718;"VIEW TRA;" Stores results and displays trace A.
50 OUTPUT 718;"DET SMP;" Activates sample detection.
60 OUTPUT 718;"CLRW TRB;TS;" Activates trace B and takes a sweep of trace B
70 OUTPUT 718;"VIEW TRB;" LXsplafys trace B
80 OUTPUT 718;"AVG TRA,TRB,2;" Averages traces B and A with ratio of 2 and stores the
result in trace A.
90 OUTPUT 718;"BLANK TRB;" Blanks trace B and displays result in trace A.
100 END
Description
The AVG command averages the source and the destination and then stores the result in the
destination according to the following algorithm:
Average = ((ratio - 1) x destination) + source
ratio
The results of AVG are invalid if the ratio is equal to zero.
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.
AXB
Exchange Trace A and Trace B
Exchanges trace A and trace B.
Syntax
AXB
Example
10 OUTPUT 718."IPa" Initializes spectrum analyze?:
20 OUTPUT 718;"SNhLS;" Activates single-sweep mode.
30 OUTPUT 718;"DET POS;TS;" Activates positive-peak detection of trace A.
40 OUTPUT 718;"VIEW TRA;" Stores results, displays trace A.
50 OUTPUT 718;"DET SMP;" Activates sample detection.
60 OUTPUT 718;"CLRW TRB;TS;" Clear-writes trace B and takes sweep.
70 OUTPUT 718;"VIEW TRB;" Stores results of sweep in trace B
80 OUTPUT 718~"AXB~" Exchanges trace A with trace B
90 OUTPUT 718;"BLAiK TRB;" Blanks trace S: leaving only trace A on screen.
100 END
Description
The AXB command exchanges trace A and trace B, point by point. AXB sets trace A and trace
B to the view mode.
Syntax
baud rate
XBAUDRATE
Example
The following example allows you to use a softkey to change the baud rate of the spectrum
analyzer to 2400 baud. The softkey (key number 1) can be accessed by pressing C-1,
user Menus .
PRINT #l,“KEYDEF l,%BAUDRATE 24OO;%,$BAUDRATE12400$;”
Description
The BAUDRATE command changes the baud rate of the spectrum analyzer to one of the
standard baud rates. The standard baud rates are as follows: 300, 1200, 2400, 4800, 9600,
14400, 19200, 38400, and 57600. If you specify a baud rate other than one of the standard
baud rates, the nearest standard baud rate will be used.
To communicate with the computer, the baud rates of the spectrum analyzer and the computer
must be the same. Because changing the baud rate of the spectrum analyzer within a
program ends communication with the computer, you should only use BAUDRATE within a
downloadable program or when using the external keyboard to enter programming commands.
To reestablish communication with the computer, you must set the baud rate back to the baud
rate of the computer.
Query Response
baud rate
/ \
output
t e r m i n a t i o n +
Syntax
7 d e s t i n a t i o n 7
,, predeflned v a r i a b l e
buser-defined v a r i a b l e )
L trace element /
I- s o u r c e --\ 7 b i t n u m b e r 7
number
/ /
b p r e d e f i n e d v a r i a b l e 1 % p r e d e f i n e d v a r i a b l e I
$ p r e d e f i n e d f u n c t i o n I % p r e d e f i n e d f u n c t i o n I
b t r a c e element / b trace e l e m e n t J
Example
10 CLEAR 718 Clears HP-IB bus.
20 OUTPUT 718;"IP;" Initializes spectrum analyzer
30 OUTPUT 718;"VARDEF E-RROR,O;" Defines user-&fined variable EA?ROR and sets it
equal to 0.
40 OUTPUT 718;"BIT E-RROR,STB,S;" Stores value of bit 5 of status byte in E-RROR.
50 OUTPUT 718;"E_RROR?;" Returns value of E-RROR.
60 ENTER 718;Err Assigns value to computer variable, Err
70 IF NOT Err THEN DISP "NO 'I; If Err equals zero, displays “NO’* on computer
screen.
80 DISP "ERROR PRESENT"; Displays ‘<ERROR PRESENT” on computer screen.
90 END
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. The most significant bit is bit 63.
n Floating-point numbers are changed to a 64-bit integer before BIT is executed.
The BIT command can be used to determine information about the status byte or a memory
card inserted into the spectrum analyzer’s memory card reader. (See “HAVE” for more
information about determining information about the memory card.)
Syntax
I \
BITF
predefined variable
/
% p r e d e f i n e d v a r i a b l e J
p r e d e f i n e d f u n c t i o n /
b trace element /
Example
10 CLEAR 718 Clears HP-IB bus.
20 OUTPUT 718;"IP;" Initializes spectrum analyzer
30 OUTPUT 718;"BITF STB,5;" L3etermines the value of bit 5 of status byte.
40 ENTER 718;Err Assigns value to computer variable, Err:
50 IF NOT Err THEN DISP "NO 'I; If Err equals zero, displays “NO ” on computer screen.
60 DISP "ERROR PRESENT"; L?ispla ys ‘<ERROR PRESENT” on computer screen.
70 END
Description
The value returned by BITF is either a “0” or a “ 1. ” A “0” indicates the bit is off, a “ 1 n
indicates the bit is on. Unlike BIT, BITF returns the state of the bit directly; the state of the bit
is not stored in a destination.
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. The most significant bit is bit 63.
n Floating-point numbers are changed to a 64-bit integer before BITF is executed.
The BITF command can be used to determine information about the status byte or a memory
card inserted into the spectrum analyzer’s memory card reader. (See “HAVE” for more
information about determining information about the memory card.)
Syntax
Example
OUTPUT 718;"BLANK TRA;"
BML
Trace B Minus Display Line
Subtracts display line from trace B and places the result in trace B.
Syntax
BML
Example
10 OUTPUT 718;"IP;SNGLS;" Initial&s spectrum analyzq activates single-sweep mode.
20 OUTPUT 718;"BLANK TRA;" Blanks trace A.
30 OUTPUT 718;"CLRW TRB;TS;" Clear-writes trace S; takes sweep.
40 OUTPUT 718;"DL -7ODM;" Sets the display line to -70 dBm.
50 OUTPUT 718;"BML;" Activates BML jimction.
60 END
Description
The BML command subtracts the display line from trace B (point by point), and sends the
difference to trace B.
Syntax
BTC
XBTC
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer:
20 OUTPUT 718*"SNGLS-" Activates single-sweep mode.
30 OUTPUT 718;"BLANK'TRA;" Blanks trace A.
40 OUTPUT 718;"CF 300 MHZ;SP 1MHZ;" Sets up measurement range.
50 OUTPUT 718;"CLRW TRB;TS;" lbkes measurement sweep.
60 OUTPUT 718;"BTC;" Moves trace B to trace C.
70 OUTPUT 718;"BLANK TRB;VIEW TRC;" Displays result in trace C.
80 END
Description
The BTC command moves trace B into trace C, then stops updating trace C by placing it in
the view mode. Trace B is unchanged by BTC. Trace B must contain a complete sweep of
measurement information.
BXC
Trace B Exchange Trace C
Exchanges trace B and trace C.
Syntax
BXC
Example
10 OUTPUT 718;"IP;BLANK TRA" Initializes spectrum analyzer:
20 OUTPUT 718*"SNGLS-" Activates single-sweep mode.
30 OUTPUT 718;"DET Pk;CLRW TRB;TS;" Activates positive-peak detection of trace B
40 OUTPUT 718;"VIEW TRB;" Stores results and displays trace B
50 OUTPUT 718;"DET SMP;CLRW TRC;" Activates sample detection.
60 OUTPUT 718*"TS-"
70 OUTPUT 718;"VIiW TRC;" Stores results of sweep in trace C.
80 OUTPUT 718;"BXC;" Exchanges trace B with trace C.
90 OUTPUT 718;"BLANK TRB;" Blanks trace B leaving only trace C on screen.
100 END
Description
The BXC command exchanges the contents of traces B and C, then places both traces in the
view mode.
To retain all data, trace B and trace C should contain a complete sweep of measurement data
before BXC is executed.
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. “)
OFF turns correction factors off and corresponds to CORRECT ON OFF (OFF is underlined).
(See also “CORREK.“)
STORE moves the correction factors to an area of spectrum analyzer memory that is
accessed when the spectrum analyzer is powered on. STORE corresponds to CAL STORE .
The CAL STORE command cannot be executed if the correction data is not valid. Correction
data is valid if CORRECT 01Q OFF (ON is underlined) causes CORR to be displayed on the
spectrum analyzer display. Executing the CAL STORE command with invalid data generates
an SRQ 110.
FETCH recalls the correction factors from the “working” random-access memory. The
“working” random-access memory is the section of memory that is accessed when the
spectrum analyzer is turned on. CAL FETCH corresponds to CAL FETCIl .
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 .
YTF initiates the correction routine for the YIG-tuned filter. The CAL YTF command
corresponds to CAL YTF . (HP 8592L, HP 85933, HP 85953, or HP 85963 only.)
DISP displays some of the correction factors on the spectrum analyzer display.
DUMP returns correction factors to the controller.
INIT sets the calibration data back to predetermined values. CAL INIT corresponds to
DEFAULT CAL DATA . Before executing CAL INIT, you must set the spectrum analyzer’s
center frequency -37 Hz to access this function. After CAL INIT has been performed, you
should perform CAL YTF for an HP 8592L, HP 85933, HP 85953, or HP 85963.
Note Before executing the CAL TG command, a cable must be connected between
the tracking generator output and the spectrum analyzer input.
TG performs the calibration routines if the tracking generator is installed (Option 010 or
011). CAL TG corresponds to CAL TRK GEI .
Refer to the HP 8590 E-Series and L-Series Spectrum Analyzers User’s Guide for more
information about the self-calibration routines, including the correct instrument set-up for each
routine.
CAL DISP and CAL DUMP do not return all of the correction factors because the number
of characters that can be displayed on the spectrum analyzer screen is limited. CAL DUMP
only returns the correction factors (as ASCII values) that would be displayed on the spectrum
analyzer screen. Refer to the Service Guide for your spectrum analyzer for more information
about displaying calibration data and reinitializing calibration data.
If the calibration data has been corrupted or is obviously inaccurate, use CAL FETCH to
retrieve the calibration data that has previously been saved. If the calibration data fetched is
corrupt, the following example can be used to set the calibration data back to predetermined
values. Execute OUTPUT 718;"CF -37HZ;CAL INIT;", then perform the CAL AMP, CAL FREQ,
or CAL ALL calibration routines. Use CAL STORE if the calibration routines have finished
successfully.
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
Catalogs either spectrum analyzer memory or the memory card and returns the catalog
information to the controller.
Syntax
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. A carriage return, a line feed, and a line feed with an EOI (equivalent to a carriage
return, a line feed, and a line feed) is asserted after the last item.
10 DIM User$ [2000] ,Catalog$ (1: 100) [80] Dimensions strings to store the catalog
in$ormation. U.ser$ stores the entire
string of catalog irlformation. Catalogs
stores the catalog irlforrnation line by
line (up to 80 lines and 100 characters
end.
20 INTEGER I,Pos,lf I and FbsJf are used to search through
Users string.
30 OUTPUT 718;“CAT s*,CARD;” The spectrum analyzer sends catalog in-
formation for all the states stored on the
memory card.
40 ENTER 718 USING ‘I#, -K” ;User$ Reads the catalog iqforrnation into the
Users string.
50 I=0
60 WHILE LEN(User$) >l Loops until the Use& string is empty.
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. After the spectrum
analyzer has sent the catalog information to the controller, the spectrum analyzer sends two
line feed characters to the controller.
Specifying the type of information: The types of information that can be cataloged depend
on the source. See the following sections, “Cataloging the Memory Card” and “Cataloging
Spectrum Analyzer Memory” for more information.
Specifying the source: You can specify the spectrum analyzer memory or the memory card as
the source by specifying INT or CARD, respectively. If source (CARD or INT) is omitted, the
default is the current mass storage device. See “MSI” for more information about setting the
current mass storage device.
Note When CAT is executed from a remote port, the catalog information is sent to
the remote port.
Each string is right-justified within its field, with spaces separating the fields.
Note The difference between the bytes of spectrum analyzer memory used and the
total spectrum analyzer memory available is the amount of spectrum analyzer
memory available.
CF
Center Frequency
Specifies the center frequency.
Syntax
/ f r e q u e n c y value \
c CF number
Note Although the spectrum analyzer allows entry of frequencies not in the specified
frequency range, using frequencies outside the frequency span of the spectrum
analyzer is not recommended and is not warranted to meet specifications.
Example
OUTPUT 718; “CF 300MHZ; ” Sets the center freqwncp to 300 hEliz.
Description
The CF command specifies the value of the center frequency.
Query Response
CHP
Channel Power
Performs the channel power measurement.
Syntax
CHP
XCHP
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.
‘lb use CHP:
1. Set the center frequency to the carrier’s frequency.
2. For best accuracy, set the reference level so that the carrier signal peak is within the first
(top) division of the screen graticule.
3. Select the channel bandwidth with the ACPBW command.
4. Select the channel spacing with the ACPSP command. (For the channel power
measurement, ACPSP is only used to set the center frequency step size.)
5. If you want the spectrum analyzer settings to be set automatically, ensure that ACPPAR is
set to 1. If you want to set the spectrum analyzer settings manually, set ACPPAR to 0. See
“ACPPAR” for more information about selecting the spectrum analyzer settings manually.
6. If the spectrum analyzer is in the continuous-sweep mode, use the single sweep command
(SNGLS) to select the single-sweep mode.
7. Execute the CHP command.
8. Query ACPERR to determine if there is a setup error for the CHP measurement. See the
following table for more information about ACPERR.
9. If no error occurred, query the CHPWR variable for the numeric results of the CHP
measurement. See the following table for more information about CHPWR.
10. If no error occurred, query trace A (TRA) for the trace results of the CHP measurement.
Measurement Results: The results of the CHP command are stored in the variable and trace
described in the following table.
Restrictions
Executing ACPE exits the 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), marker table (MKTBL), peak table
(PKTBL), percent AM (PCTAM), or peak zoom (PKZOOM).
CHPGR
Channel Power Graph On or Off
Determines if the channel power graph function is enabled or disabled.
Syntax
Example
10 OUTPUT 718; “CHP; ” Fkyforrns the channel power masurmt.
20 OUTPUT 718;"MOV CHPGR,l;" Enables the power graph function and creates a graph of
the channel power as a function of frequency.
Description
Setting CHPGR to 1, does the following:
n Turns off the display of the channel-power numeric results.
n Generates a graph of the channel power as a function of frequency.
n Places the graph in trace C
n Adds the GRPH MKR ON OFF softkey to the menu.
n If in continuous measurement mode, the channel power graph will be updated at the end of
every sweep.
Setting the CHPGR to -1, does the following:
n Turns off the display of the channel-power graph in trace C.
n Calculates and displays the channel-power numeric results.
n Removes the GRPH NKR ON OFF softkey from the menu.
n Turns off the channel power graph marker.
n If in continuous measurement mode, the numeric results will be updated at the end of every
sweep.
When the graph is generated, it represents the power in the channel bandwidth (set by the
ACPBW command). The results of CHPGR are not defined for frequencies where the graph is
drawn below the bottom graticule line.
Syntax
CLRAVG
Example
OUTPUT 718;"IP;" Initializes the spectrum analyzer:
OUTPUT 718;"VAVG 100;" Initializes video averaging.
WAIT 30
OUTPUT 718*"CLRAVG-"
, , 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. Use “VAVG OFF;” to stop video averaging.
CLRBOX
Clear Box
Clears a rectangular area on the spectrum analyzer display.
Syntax
Example
The following programming line results in the spectrum analyzer display shown in Figure 5-2.
OUTPUT718;“CLRBOX 1,1,200,20O,A;” Clears the annotation and graticule from the
rectangular area of 1,l to 200,200. -
&
REF . 0 dBm ATTEN 1 0 dG SPECTRUM
PEAK
LOG
.:::I ANALY=ER
2,
.................................................
WA SE
SC FC
CORR
CENTE
d Jl.Jl
3 . 2 5 0 GHz
ES BW 3 . 0 MHz UBW
....................................... . .........
....................................... . .........
......................................... .......
t--++++~
.................................................
1 MHz
S P A N 6 . 5 0 0 GHz
SWP 130 mseo
More
1 of 3
RT
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).
Specifying the annotation or trace plane
You can specify whether the annotation or the traces are to be cleared by specifying an “A”
for the annotation plane or a “T” for the trace plane. If you specify the annotation plane,
everything but the trace display will be cleared. If you specify the trace plane, the trace
display will be cleared. (The cleared trace display can be overwritten if the spectrum analyzer
is in the clear-write mode, however.) If you do not specify the annotation or trace plane, both
the annotation and trace planes are cleared.
CLRBOX affects only the spectrum analyzer display and printing of the spectrum analyzer
display. CLRBOX does not change the plot of the spectrum analyzer display; the area that is
cleared by CLRBOX will still be plotted.
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; Blanks the spectrum analyzer screen, ex-
GRAT 0FF;TH 0FF;DL OFF;" cept for trace C and annotation.
OUTPUT 718;"CLRW TRA;GRAT 0N;ANNOT ON;" Reinstates the display of trace A, the gratic-
ulq and the annotation.
Description
The CLRDSP command removes all user-created graphics and text from the spectrum analyzer
screen and memory. CLRDSP also removes the graphics and text from the display list. See
“DA” for more information about the display list.
Syntax
XCLRW
Example
OUTPUT 718;"CLRW TRA;"
Description
The CLRW command places the indicated trace in the clear-write mode. Data acquisition begins
at the next sweep. (See “TS” for more information about data acquisition.)
CLS
Clear Status Byte
Clears all status bits.
Syntax
CLS
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.)
Syntax
Example
OUTPUT 718;"CMDERRQ;" Initiates the command.
ENTER 718;A$ Gets the response from the spectrum anu1yze.x
DISP A$ Llisplu~s the response
Description
Executing the CMDERRQ command does the following:
w Returns the most recently stored illegal or unrecognized command characters.
4 Returns up to 45 characters of an illegal command or commands.
n Erases the illegal command buffer.
Query Response
unrecognized command
/ \
CNF
Confidence ‘I&t
Performs the confidence test.
Syntax
CNF
XCNF
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.
Syntax
CNTLA OFF
/
ON
XCNTLA
Example
OUTPUT 718 ; "CNTLA ON; I’ Sets control line A high.
OUTPUT 718;"CNTLA?;" Queries the state of control line A.
ENTER 718;A$ Gets the response from the spectrum analyzix
DISP A$ Displays the response.
Description
CNTLA ON sets control line A to high, CNTLA OFF sets it to low (the auxiliary interface
connector outputs use transistor-transistor logic).
Query Response
output
’t e r m i n a t i o n +
CNTLB
Auxiliary Interface Control Line B
Sets the control line B of the auxiliary interface high or low.
Syntax
OFF
/
ON
XCNTLB
Example
OUTPUT 718 *9 "CNTLB ON 9- ‘I Sets control line B high.
OUTPUT 718."CNTLB'."*, Queries the state of control line B
ENTER 718;i$ Gets the response from the spectrum analyze7:
DISP A$ Displays the response.
Description
CNTLB ON sets control line B to high, CNTLB OFF sets it to low (the auxiliary connector
outputs use transistor-transistor logic).
Query Response
output
ON ’ t e r m i n a t i o n -
OFF
Syntax
OFF
/
ON
Example
OUTPUT 718."CNTLC
t ON*"
# Sets control line C high.
OUTPUT 718."CNTLC'."
.9 Queries the state of control line C.
ENTER 718;i$ Gets the response from the spectrum anal~zxx
DISP A$ Lhkplays the response.
Description
CNTLC ON sets control line C to high, CNTLC OFF sets it to low (the auxiliary interface
connector outputs use transistor-transistor logic).
Query Response
ON
OFF
CNTLD
Auxiliary Interface Control Line D
Sets the interface control line D of the auxiliary interface high or low.
Syntax
Example
OUTPUT 718 ; "CNTLD ON ; I' Sets control line D high.
OUTPUT 718."CNTLD'."*, Queries the state of control line D.
ENTER 718;i$ Gets the response from the spectrum anal~zerz
DISP A$ Displays the response.
Description
CNTLD ON sets control line D to high, CNTLD OFF sets it to low (the auxiliary connector
outputs use transistor-transistor logic).
Query Response
Syntax
f u n c t i o n p a t h o n l y
XCNTL I
Example
OUTPUT 718; “CNTLI ; I1 Gets the status of control line I
ENTER 718;A
DISP A Displays status.
COMB
Comb
Turns on or off the comb generator.
Syntax
XCOMB
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.
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
Prerequisite Commands: TRDEF when using user-defined trace. TS when using trace data.
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.
60 OUTPUT 718;"BLANK TRB;" Blanks trace B
70 OUTPUT 718;"MOV TRA,C-OMPTRAC;" Moves C-OMPTRAC into trace A.
80 OUTPUT 718;"VIEW TRA;" Displays the result.
90 END
Description
The COMPRESS command stores a compressed copy of the source trace into a smaller
destination trace. The source trace is divided into the same number of intervals as there are
points in the destination trace, and the data within each interval are compressed into the value
for the corresponding destination trace point. The algorithm used to compress the data is given
as an parameter to the command.
The algorithms available are as follows:
AVERAGE The average of the points within an interval is used.
@W
NORMAL NRM computes the compressed value of the interval by using a rosenfell
NW algorithm. The rosenfell algorithm is a mathematical operation defined in
spectrum analyzer firmware. The algorithm compresses a locally continuously
rising or falling signal into the peak value detected in each interval. If the
detected signal is not continuously rising or falling, then the data value
alternates between minimum and maximum in the compressed interval.
This shows the peak-to-peak noise variations. The rosenfell option is useful
for accurately displaying noise, because peak detection can give misleading
representation of noise.
NEGATIVE The lowest value in each interval is used.
(NW
POSITIVE Specifying POS selects the highest point in the interval as the compressed
(PW value.
SAMPLE (SMP) Specifying SMP selects the last point in the interval as the compressed value.
PEAK The PKAVG algorithm selects the difference between the peak and the average
AVERAGE value of the interval as the compressed value.
(PKAVG)
PEAK PIT The PKPIT algorithm returns the difference between the positive and the
(PKPIT) negative peaks within the interval.
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 t r a c e I
b t r a c e range J
TRA
/
TRB /
TRC /
V u s e r - d e f i n e d t r a c e / + u s e r - d e f i n e d t r a c e /
V p r e d e f i n e d v a r i a b l e / b p r e d e f i n e d v a r i a b l e /
XCONCAT
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: MOV, VIEW.
Example
10 OUTPUT 718;"IP;" Initializes the spectrum analyzer:
20 OUTPUT 718;"SNGLS;" Activates the single-sweep mode.
Description
The CONCAT command concatenates source 2 to the end of source 1, then stores the result in
the destination. If the destination length is less than the length of source 1 and source 2, the
list is truncated. For example, executing “CONCAT TRA[l, 15],TRB[3,6],TRB[7,207];” results
in trace A elements 1 to 4 being replaced by trace B elements 3 to 6, and trace A elements 5
to 15 being replaced by trace B elements 7 to 17. Trace B elements 18 to 207 are ignored. If
necessary, reduce trace lengths with the COMPRESS command.
If the length of the destination is greater than the length of source 1 and source 2, the last
value is repeated. For example, executing “CONCAT TRA[1,15],TRB[3,6],TRB[7,9];” results in
trace A elements 1 to 4 being equal to trace B elements 3 to 6, trace A elements 5 and 6 being
replaced by trace B elements 7 and 8, and trace A elements 7 to 15 being replaced by trace B
element 9.
Syntax
CONTS
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). A sweep may temporarily be interrupted by
data entries made from the front panel or over the remote interface.
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
Example
OUTPUT 718;"CORREK;"
ENTER 718;A
DISP A
Query Response
r off I
output
0 + t e r m i n a t i o n +
1” r
Syntax
XCOUPLE
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. See
the specifications for the spectrum analyzer in the Calibration Guide for your
spectrum analyzer for more information.
If there is no dc voltage at the spectrum analyzer input, dc coupling is useful for observing low
frequency signals at the spectrum analyzer input. Use ac coupling when there is dc voltage at
the spectrum analyzer input (ac coupling blocks the dc voltage and allows only the ac voltage
at the spectrum analyzer input).
When used as a predefined variable, COUPLE returns a “0” if COUPLE has been set to DC. A
“ 1 * if COUPLE has been set to AC.
Query Response
OCOUPLE
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
Example
OUTPUT 718;"CRTHPOS 15;"
Description
The CRTHPOS command specifies the horizontal position of the information on the spectrum
analyzer’s display. Each CRTHPOS number represents four screen pixels. (The spectrum
analyzer display is 512 screen pixels wide by 256 screen pixels high.) Execute CAL STORE to
store the current CRTHPOS value as the default value of the horizontal position.
Query Response
Syntax
v e r t i c a l
CRTVPOS
Example
OUTPUT 718;"CRTVPOS 50;"
Description
The CRTVPOS command specifies the vertical position of the information on the spectrum
analyzer’s display. Each CRTVPOS number represents four screen pixels. (The spectrum
analyzer display is 512 screen pixels wide by 256 screen pixels high.) Execute CAL STORE to
store the current CRTVPOS value as the default value of the vertical position.
Query Response
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
CTA b n u m b e r
/
b p r e d e f i n e d v a r i a b l e /
- u s e r - d e f i n e d variable)
b p r e d e f i n e d f u n c t i o n /
XCTA
Example
10 OUTPUT 718;"VARDEF C-ONLV,O;" Declares a variable called C-ONLY;
20 OUTPUT 718*"LG." Puts the spectrum analyzer in log mode.
30 OUTPUT 718;"RL'-10DB;" Changes the reference level.
40 OUTPUT 718;"CTA C-ONLV, 8000;" Stores -10 in C-ONLY
50 OUTPUT 718;"RL -2ODB;" Changes the refwence level.
60 OUTPUT 718;"CTA C_ONLV,8000;" Stores -20 in C-ONLY?
70 OUTPUT 718;"C_ONLV?;"
80 ENTER 718;A
90 DISP A
100 END
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.01 dBm. A signal 0.01 dBm
above the reference level is at 8001, and a signal 1.0 dBm below the reference level is at 8000
minus 100, or 7900. In linear mode, 8000 is the reference level and 0 is the 0 volt level. If the
reference level is at 80 mV, each count would represent 0.080 divided by 8000 or 10 pV, but a
reference level of 2.4 volts would represent 2.4 divided by 8000 or 300 PV per count.
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
Example
OUTPUT 718;"VARDEF A,MPV,O;" Lleclares a variable called A-MPV
OUTPUT 718*"LG*" Pats the spectrum analyzer in log m.ook
OUTPUT 718;"RL'-1ODB;" Changes the referent level.
OUTPUT 718;"CTM A-MPV,-10;" Stores 8000 in AXPI?
OUTPUT 718;"DSPLY A,MPV,13.5;" DispZuysAiWI?
Description
The result of the CTM command depends on the reference level, the current amplitude units,
and the amplitude scale (log or linear).
Measurement units are the 16-bit amplitude values 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.01 dBm. A signal 0.01 dBm above the reference level is at
8001, and a signal 1.0 dBm below the reference level is at 8000 minus 100, or 7900. In linear
mode, 8000 is the reference level and 0 is the 0 volt level. If the reference level is at 80 mV,
each count would represent 0.080 divided by 8000 or 10 pV, but a reference level of 2.4 volts
would represent 2.4 divided by 8000 or 300 PV per count.
Syntax
d i s p l a y
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.
OUTPUT 718;"VARDEF D-ADDRESS,O;" DQines a variable called D-ADDRESS.
OUTPUT 718;"CLRDSP;" Erases the display list and
clears all text and graphics
from the spectrum analyzer
display.
OUTPUT 718;"PUPA 100,180;TEXT %Measurement%;" Displays “Measurement” on
the spectrum analyzer dis-
play. The text is also added
to the display list.
OUTPUT 718;"MOV D,ADDRESS,DA;" Saves the value of the display
address by moving the dis-
play address into D-ADDRESS.
OUTPUT 718;"PUPA 100,lOO;TEXT ISignal found%;" Displays text on the spectrum
analyzer display. The text
is also saved in the display
list, and the display address
is increased. (The display
address is increased propor-
tionally to the length of the
displayed text.)
You can add code for contin-
uing the measurement here.
OUTPUT 718;"PUPA 100,lOO;TEXT % %; " Blanks the message “Signal
found” on the analyzer screen
and adds the blank spaces to
the display list.
Description
The DA command allows you to access the current address of the display list. The display list
is a buffer that contains all of the text and graphics that have been displayed on the spectrum
analyzer screen with the DSPLY, GR, LB, or TEXT commands.
How the display list works: Every time you use a programming command to display text
or graphics on the analyzer display, the text or graphics is also entered into the display list.
While you can change or erase what is displayed on the analyzer screen, the list for screen
graphics accumulates all of the text and graphics. For example, if you execute the following
programming lines:
OUTPUT 718;"PUPA 100,lOO;TEXT %Signal found%;"
OUTPUT 718;"PUPA 100,lOO;TEXT % %; "
OUTPUT 718;"PUPA 100,lOO;TEXT %Done%;"
the text “Signal found” would be displayed on the analyzer screen, and then be erased by the
blank spaces, and then “Done” would be displayed. The display list would save the text “Signal
found, ” the blank spaces, and the text “Done, ” in separate (and sequential) locations in the
display list.
The display list is important because the contents of the display list are used to restore the
screen text when the annotation or graticule is turned off and then turned back on, or when
the screen display is plotted. When the screen text is restored on the spectrum analyzer
display, or the screen display is plotted, the entire display list is used. Because the entire
display list is used, there can be some text “flashing” on the spectrum analyzer display or the
plot can contain unwanted text. The DA command can be used to avoid this situation.
What the DA command does: The DA command allows you to save and then restore the
current address of the display list, thus controlling where text is written in the display list. For
example, if you want your program to display the messages “Signal found,” and “Done,” and
you want only the messages that are currently displayed on the spectrum analyzer screen to be
stored in the display list, you would do the following:
1. Save the display address in a variable.
2. Execute the commands that display the first message on the spectrum analyzer display.
When you want to change the message, you would do the following:
1. Execute the commands that put blank spaces over the message (to clear the message from
the analyzer display). You do not need to use blank spaces the clear the previous message
if the number of characters in the new message is equal to or greater than the original
message.
2. Copy the display address from the variable back into DA (this recalls the previous display
address).
3. Execute the commands that display the new message on the spectrum analyzer display.
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. For example, the display list, with three messages in it,
could be represented as follows:
Display List Contents: <first message> <second message> <third message>
Display Address: T T T
Because the display address is proportional to the length of the text, you could not change the
second message without affecting the display address of the third message. In this case you
should rewrite both the second and third message.
Query Response
display
r address -,
output
t e r m i n a t i o n +
PDA
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
Example 1
OUTPUT 718;"DATEMODE DMY;" Sets the date mode to day, month, yearformat.
OUTPUT 718;"DATEMODE?;" Queries the format of the display of the real-time clock.
ENTER 718;A$
DISP A$
Example 2
OUTPUT 718;"VARDEF T-EMP,O;" Creates a variable.
OUTPUT 718;"DATEMODE DMY;" Sets the date mode to day, month, year format.
OUTPUT 718;"MOV T,EMP,DATEMODE?;" Queries the format of the display of the real-time
clock as a preo!@ned variable.
OUTPUT 718;"T,EMP?;" Gets the result.
ENTER 718;A
DISP A
Description
When used as a predefined variable, DATEMODE returns a “0” if DATEMODE has been set to
MDY. A U 1 n if DATEMODE has been set to DMY. See example 2.
Query Response
output
’ termfnation +
ODATEMODE
Syntax
DEMOD
Example
This example demonstrates FM demodulation in a span greater than zero.
10 OUTPUT 718;"IP;FA SOMHZ;" Sets start frequencjj.
20 OUTPUT 718;"FB 11OMHZ;" Sets stop frequency.
30 OUTPUT 718;"TS;MKPK HI;MKCF;" Places marker on the highest peak and brings the
peak to center frequency.
40 OUTPUT 718;"DEMOD 0N;DEMOD FM;" Turns on FM demodulation.
50 OUTPUT 718;"MKPAUSE 500MS;” Turn on marker pause. The detector switches
automatically to the FMV detector during the
dwell time.
60 END
Description
Execute “DEMOD ON;” to turn on the demodulator. “DEMOD AM;“, “DEMOD FM;“, or
“DEMOD QPD;” selects the demodulation mode, but does not turn on the demodulator.
For AM or FM demodulation in nonzero frequency spans, use MKPAUSE to set the dwell time of
the marker.
Quasi-peak demodulation (QPD) is available with Option 103. See the Option 103 Manual
Supplement for more information about operating the quasi-peak detector remotely.
DET
Detection Mode
Selects the spectrum analyzer detection mode.
Syntax
XDET
Example
10 OUTPUT 718;"IP;" Initializes the spectrum analy.zer
20 OUTPUT 718;"SNGLS;" Activates single-sweep mode.
30 OUTPUT 718;"DET POS;TS;" Activates the positive-peak detection of trace A.
40 OUTPUT 718;"VIEW TRA;" Stores results in trace A.
50 OUTPUT 718;"DET SMP;" Activates sample detection for trace I3
60 OUTPUT 718;"CLRW TRB;TS;" Measures with trace B
70 OUTPUT 718;"VIEW TRB;" Stores results in trace B
80 OUTPUT 718;"AVG TRA,TRB,2;" Averages trace A and B with a ratio of 2, and stores
the results in trace A.
90 OUTPUT 718;"BLANK TRB;" Blanks trace rj leaving on1 y averaged results on screen.
100 END
Description
The DET command selects the type of spectrum analyzer detection (positive-peak, sample, or
negative) and accesses service-diagnostic detection functions.
POS enables positive-peak detection, which displays the maximum video signal detected
over a number of instantaneous samples for a particular frequency.
SMP enables sample detection, which uses the instantaneous video signal value. Video
averaging and noise-level markers, when activated, activate sample detection
automatically.
NEG enables negative peak detection in sweep times of less than or equal to 200 ms. The
negative peak detector is available with Option 101 or Option 301 only.
SMP 0
POS 1
NEG 49
Query Response
DISPOSE
Dispose
Frees spectrum analyzer memory that was previously allocated for user-defined operands.
Syntax
xdispose
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.
Equivalent Softkey: DISPOSE ALL and DISPOSE USER REM are equivalent.
Prerequisite Commands: TRDEF when using a user-defined trace. VARDEF or ACTDEF when
using a user-defined variable.
Related Commands: ERASE, KEYCMD, KEYDEF, KEYLBL, LIMIDEL, ONCYCLE, ONMKRU,
ONPWRUP, ONDELAY, ONEOS, ONMKR, ONSRQ, ONSWP, ONTIME, TRMATH.
Example
OUTPUT 718;"VARDEF T-EMP,lO;" [email protected] a vam’able for use in a program. When the
variable is no longer needed, it can be deleted using the
DISPOSE command
OUTPUT 718;"DISPOSE T-EMP;" Deletes T-EMP from spectrum analyzer memory.
Description
Using the ONCYCLE, ONDELAY, ONEOS, ONMKR, ONMKRU, ONSRQ, ONSWP, ONTIME,
TRMATH, TRDEF, VARDEF, FUNCDEF, ACTDEF, KEYDEF, KEYENH, or KEYCMD programming
commands create a trace, variable, function, softkey, or “on-event” function that remains in
the spectrum analyzer’s memory until you delete it with the DISPOSE command, or execute
the ERASE command. With the DISPOSE command, you can select which item is to be deleted
(for example, executing “DISPOSE ONMKR; ” would delete any ONMKR functions that you have
created). Or, if you execute DISPOSE ALL, all of the traces, variables, functions, softkeys,
and “on-event” functions that you have created will be deleted from spectrum analyzer
memory. Executing “DISPOSE ALL;” or the ERASE command frees all available spectrum
analyzer memory (except the state registers and predefined traces), to make the total available
user-allotted memory the maximum size.
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 t r a c e I
L trace range /
% p r e d e f i n e d v a r i a b l e /
u s e r - d e f i n e d variable/
User-defined trace A trace defined by the TRDEF command. Any valid trace name.
User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
Predeflned variable A command that acts as a variable. Refer to Table 5-l.
Predefined function Function that returns a value. Refer to Table 5-l.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Number Any real or integer number. Real number range.
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: MPY, SNGLS, TS.
Example
OUTPUT 718*"IP-" Initializes the spectrum analyzer
OUTPUT 718;"SNk;" Activates single-sweep mode.
OUTPUT 718."TS-" Updates trace information.
OUTPUT 718;& TRB,TRA,2;" Divides trace A &q two and places it in trace B
OUTPUT 718;"VIEW TRB;" 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. If a user-defined variable or predefined variable is used as
either the source or the destination, the DIV function is done in floating-point format. If a real
number is used as a source, but the destination is an integer value, the result is truncated.
If a trace is used as a source, be sure the trace contains a complete sweep of measurement
information before executing DIV.
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.
The results of the DIV function are invalid if source 2 is equal to zero.
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
Example
OUTPUT 718;"AUNITS DBM;" Changes the active amplitude units to dBm.
OUTPUT 718;"DL ON;" Turns on the displa?/ line.
OUTPUT 718;"DL -5DM;" Changes display line to -5 dBm.
Description
Activating video trigger mode activates the display line. The AUTO command and “DL OFF; ”
turn off the display line. See “AUNITS” for more information on changing the active amplitude
units.
Query Response
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. For
example, the second line of the programming example decreases the span, because marker
peak (MKPK) is not an active function.
The active functions are ACPBW, ACPSP, AT, CF, CRTHPOS, CRTVPOS, DL, DOTDENS, FA,
FB, FMGAIN, GD, GL, LG, MKA, MKD, MKFCR, MKN, MKPAUSE, MKPX, ML, NDB, NRL, RB,
RCLS, ROFFSET, RL, RLPOS, SAVES, SAVRCLN, SETDATE, SETTIME, SP, SQLCH, SRCALC,
SRCAT, SRCPOFS, SRCPSWP, SRCPWR, SRCTK, SS, ST, TH, TVLINE, VB, VBR, and user-defined
active function specified by the ACTDEF command.
Syntax
DONE
f u n c t i o n p a t h o n l y
XDONE
Example
OUTPUT 718;"IP;SNGLS;CF lGHZ;SP 1GHZ;DONE;" Because TS does not precede the DONE
command in this line, the center fre-
quenxy and span values are set before
DONE returns a “1. ” Functions cou-
pled to Sl: such as R& have not been
changed, and there is no trace data as-
sociated with the new frequency settings.
ENTER 718;Done
DISP Done
Example 2
OUTPUT 718;"IP;SNGLS;CF lGHZ;SP 1GHZ;TS;DONE;" Because the take sweep (TS) must
be completed before the DONE com-
mand is executed, the autocoupled
functions and trace data have been
changed before the DONE command
is executed.
ENTER 718;Done Stores 1 in computer variable, called
DorE
DISP 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
Syntax
d o t
XDOTDENS
Example
OUTPUT 718;"ANLGPLUS ON;" Turns on the Analog+ display mode.
OUTPUT 718;"DOTDENS 40;" Sets the dot density to 40.
Description
The dot density value can be set from 1 to 40 dots per trace element. This command is specific
to the Analog+ display mode; see “ANLGPLUS” for more information about the Analog+
display mode.
Query Response
output
termination -
DRAWBOX
Draw Box
Draws a rectangular box on the spectrum analyzer display.
Syntax
DRAWBOX
‘.w....
XDRAWBOX
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;" Draws a box from 1,1 to 200,200. The box
has horizontal boro!ers that are 10 display
units wide, and a vertical borders that are
5 display units wide.
47
REF .0 dBm ATTEN 1 0 dB SPECTRUM
PEAK ANALYZER
LOG
%
...................................... . ........
...............................................
....................................... ........
...............................................
WA s
SC F
COR
More
1 of 3
CENT 3 . 2 5 0 GHz S P A N 6 . 5 0 0 GHi
S BW 3.0 MHz VBW 1 MHz S W P 1 3 0 msec RT
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. If y2 is equal
to yl, a horizontal line will be drawn instead of a box, and the border will be below the line.
Specifying the border thickness: The value of x thickness allows you to specify the width
of the horizontal borders, and the value of y thickness allows you to specify the width of the
vertical borders. If you select a thickness value that is equal to or greater than half of x2
minus xl or greater than half of y2 minus yl, the result will be a solid box.
DRAWBOX affects only the spectrum analyzer display and printing of the spectrum analyzer
display. DRAWBOX does not change the plot of the spectrum analyzer display; the rectangular
box drawn by DRAWBOX will not be plotted. The rectangular box can be erased by executing
CLRDSP.
DSPLY
Display
Displays the value of a variable on the spectrum analyzer screen.
Syntax
f i e l d decimal
predefined v a r i a b l e /
*user-defined vorioble)
% p r e d e f i n e d functton /
b t r a c e 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.45 has a field width of 7 (even though the sign is not displayed) and 2 decimal
places.
Example
OUTPUT 718;"CF BOOMHZ;” Sets center frequencz/ to 300 MHz
OUTPUT 718;"PU;PA 50,lSO;DSPLY CF, Center frequency is displayed to three oT.ecirnal
13.3;" 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.)
The coordinates given relate to the lower left corner of the first character. For example,
“PU;PA 50,lOO;DSPLY CF,13.3;” would display the center frequency with the first digit to
the right and above the point represented by 50, 100. (Position the pen before executing the
DSPLY command.)
If the number to be displayed is larger than the field width, the number is displayed in
scientific notation.
The DSPLY command also places the value of the variable in the display list. See “DA” for
more information about the display list.
DT
Define Terminator
Defines any character as a label terminator. The label terminator is only used with the LB
command.
Syntax
character
XDT
Example
OUTPUT 718; “DTQ; ” Lk@ws the “@” symbol
as the text terminator:
OUTPUT 718; “CF GOOMHZ; ” Sets center frequency to
600 MHz.
OUTPUT 718;“PU;PA 100,lOO;LB CAL OUT 2ND HARMONICORL ODM;” Displuys the label “CAL,
OUT 2ND HARMONIC”
on the spectrum analyzer
screen then executes the
RL command.
Description
The DT command is used by the LB command to separate text from spectrum analyzer
commands.
Syntax
< EE
XEE
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.
20 DISP "Enter new value with spectrum analyzer
number pad and terminate with units key"
30 OUTPUT 718;"RQS 2;CF EE;" Sets up SRQ mask, then uses the
enable entry mode.
40 REPEAT Rd?s the spectrum analyzer until
entry is complete.
50 OUTPUT 718;"STB?;" Asks the spectrum analyzer for
status byte.
60 ENTER 718;A
70 UNTIL BIT(A,l)=l Does REPEAT UNTIL loop until
user presses a terminating key.
80 DISP Asks for ermy.
90 OUTPUT 718;"?;"
100 ENTER 718;New,value
110 PRINT "You entered the value of 'I;
New-value Displays value.
120 OUTPUT 718;"HD;" Turns oflenable entry mode
130 END
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. The controller reads the value of the entry and continues to the next program step.
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 posi-
tions 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.
Insert analysis program here.
100 END
Description
With the EK command, the knob is functional, but other front-panel functions remain
inoperative. Moving the knob changes the active function. If no function is active, moving the
knob has no effect.
ENTER
Enter From HP-IB
Allows the spectrum analyzer to receive data from other devices on the HP-IB.
Syntax
format
- HP-IB address / \
ENTER
f
p r e d e f i n e d v a r i a b l e /
u s e r - d e f i n e d variable/
Example
Note 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 example uses the spectrum analyzer to send the ASCII code for OP; (output parameter)
to the plotter. The ENTER command is used to receive the coordinates from the plotter.
Program lines 110 to 140 display the coordinates on the spectrum analyzer screen. Softkey
1 is programmed to display the plotter coordinates. Softkey 1 can be accessed by pressing
(MEAS/USERj, User Menus .
Description
Use the ENTER command to request data from an HP-IB device. The ENTER command causes
the spectrum analyzer to assume controller capabilities on HP-IB. The RELHPIB command may
be used to disable these capabilities. The returned data is formatted according to the format
specified in the format field:
K: Free field. ASCII real number format.
B: One-byte binary.
W: One-word (2 bytes) binary.
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.
When the value is terminated by a unit or CENTER) key on the spectrum analyzer, the spectrum
analyzer will be ready to execute more remote commands.
Note Because the EP command uses the current active function, confirm that the
desired function is active before executing the EP command.
The active functions are ACPBW, ACPSP, AT, BAUDRATE, CF, CRTHPOS, CRTVPOS, DL,
DOTDENS, FA, FB, FFTSTOP, FMGAIN, FOFFSET, GD, GL, LG, MKA, MKD, MKFCR, MKN,
MKPAUSE, MKPX, ML, M4, NDB, NRL, PREAMPG, PRNTADRS, RB, RCLS, ROFFSET, RL,
RLPOS, SAVES, SAVRCLN, SETDATE, SETTIME, SP, SQLCH, SRCAT, SRCPOFS, SRCPSTP,
SRCPSWP, SRCPWR, SRCTK, SS, ST, TH, TIMEDATE, TVLINE, VB, VBR, and user-defined
active function specified by the ACTDEF command.
Syntax
Example
OUTPUT 718*"ERASE*"
# ,
Description
The ERASE command erases all of the user memory by performing a DISPOSE ALL, moving
zeros into the trace elements of trace B, and performing an instrument preset (IP). If PSTATE is
set to OFF, ERASE clears the state registers also. All user-defined functions, traces, variables,
softkeys, and on-event algorithms are erased. (The on-event algorithms are ONCYCLE,
ONDELAY, ONEOS, ONMKR, ONMKRU, ONSRQ, ONSWP, ONTIME, and TRMATH.)
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 t r a c e /
h trace range I
b p r e d e f i n e d v a r i a b l e I
u s e r - d e f i n e d 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.
User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
Predeflned variable A command that acts as a variable. Refer to Table 5-l.
Predetied function Function that returns a value. Refer to Table 5-1.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Trace element An element of trace A, trace B, trace C, or a user-defined trace.
Number Any real or integer number. Real number range.
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: FUNCDEF, LOG.
Example 1
This example converts the marker amplitude to power units.
10 OUTPUT 718;"IP;" Initializes the spectrum analyzer
20 OUTPUT 718;"SNGLS;" Activates the single-sweep mode.
30 OUTPUT 718;"VARDEF P-MW,O;" Initializes variable P..MW to 0.
40 OUTPUT 718;"TS;MKPK HI;" Fino!s highest peak of sweep.
50 OUTPUT 718;"EXP P-MW,MKA,lO;" Divides the marker amplitude by 10, raises the
value of the marker amplitude to the power of 10,
and stores the results in P-MN?
60 OUTPUT 718;"P,MW?;" Returns the value of PM to computer
70 ENTER 718;Number Assigns value to computer variable.
80 DISP Number;"mW" Displays result on the computer screen.
90 END
Example 2
This example finds the natural exponential of anumber and uses the LOG command to return
the original source value of the EXP function.
10 OUTPUT 718;"VARDEF E,XP,O;" Dejlnes a variable called E-XI?
20 OUTPUT 718;"EXP E,XP,2,2.30259;" Fino!s the natural exponential of 2.
30 OUTPUT 718;"E,XP?;" Returns the natural exponent of 2.
40 ENTER 718;Value
50 PRINT Value Prints the value of the exponential.
60 OUTPUT 718;"LOG E-XP,E,XP,2.30259;" Uses the log function on the exponential
value.
70 OUTPUT 718;"E_XP?;" The log of the exponential value is ap-
proximately 2.
80 ENTER 718;Logvalue
90 PRINT Logvalue Prints value.
100 OUTPUT 718;"VARDEF E-XPY,O;" Declares a variable called E-XPY
110 OUTPUT 718;"EXP E-XPY,-5,2.30259;" Finds the natural exponential of -5.
120 OUTPUT 718;"E_XPY?;" Returns the value of the natural exponen-
tial of -5.
130 ENTER 718;Value2
140 PRINT Value2 Prints the value of the exponential.
150 OUTPUT 718;"LOG E,XPY,E-XPY,2.30259;" Uses the log function on the exponential
value.
160 OUTPUT 718;"E_XPY?;" The log of the exponential value is ap-
proximately -5.
170 ENTER 718;Logval
180 PRINT Logval
190 END
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.)
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.
See “LOG” for more information on the scaling factor.
Syntax
Example
OUTPUT718;"FA 88MHZ;FB 108MHZ;" Sets the start frequency to 88MH2, the stop frequency
to 108 MHz
OUTPUT 718*"FA'-"
*, Returns the start frequency.
ENTER 718;l&eq Stores the response from the spectrum analyzer
DISP Freq Displays the frequency on the computer screen.
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.
Query Response
Syntax
Example
OUTPUT 718;"FA 88MHZ;FB 108MHZ;" Sets the start frequency to 88 MHz?, the stop frequency
to 108 MHk
OUTPUT 718."FB'."
*# Returns the stop jkequency.
ENTER 718;keq Stores the response from the spectrum analyzex
DISP Freq Displays the frequency on the computer screen.
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.
Query Response
o u t p u t
t e r m i n a t i o n ---)
Syntax
- d e s t i n a t i o n
FFT
user-defined trace
,- w i n d o w -\
Example
OUTPUT 718."IP*SNGLS*" Initializes spectrum anulyxer:
OUTPUT 718;"CFy300MHk;TS;MKPK HI;MKTRACK ON;" Tunes center frequency to the car-
rier and decreoxes span.
OUTPUT 718;"CONTS;SP 200KHZ;RB IOOKHZ;" Changes resolution bandwidth to cap-
ture modulation.
OUTPUT 718;"MKTRACK 0FF;SP OHZ;" Reduces span to zero Hz to demodu-
late carrier
OUTPUT 718;"MKPK HI;MKRL;LN;SNGLS;" Changes to linear amplitude scale,
OUTPUT 718;"ST 800MS;TS;" Sets sweep time to correspond to
modulation frequ&ncy, the executes
FFT function.
OUTPUT 718;"TWNDOW TRB,FLATTOP;" The TWNDOW must be defiined be-
fore using the F~jknction.
Description
FFT weights the source trace with the function in the window trace (the window trace is
described below). The transform is computed and the results are placed in the destination
trace. Unlike FFTAUTO and FFTCONTS, FFT performs the FFI’ measurement only once. Use
FFTAUTO or FFI’CONTS if you want the FFT measurement to be performed at the end of every
measurement sweep.
The spectrum analyzer should be in linear mode when using the FF”I’ command. The FFT
results are displayed on the spectrum analyzer in logarithmic scale. For the horizontal
dimension, the frequency at the left side of the graph is 0 Hz, and at the right side is Fmax.
Fmax can be calculated using a few simple equations and the sweep time of the spectrum
analyzer. The sweep time divided by the number of trace array elements containing amplitude
information is equal to the sampling period. The reciprocal of the sampling period is the
sampling rate. The sampling rate divided by two yields Fmax.
For example, let the sweep time of the spectrum analyzer be 20 ms and the number of trace
elements be 400. The sweep time (20 ms) divided by 400 equals 50 ps, the sampling period.
The sample rate is l/50 ps. Fmax equals l/50 p.s divided by 2, or 10 kHz.
FFT is designed to be used in transforming zero span information into the frequency domain.
Performing FF’T on a frequency sweep (when the frequency span is greater than zero) will not
provide time-domain results.
The windowing function stored in the window trace may be selected with the trace window
(TWNDOW) command or you can store your own values in that trace. The trace window
function modifies the contents of a trace array according to one of three built-in algorithms:
UNIFORM, HANNING, or FLATTOI? See Figure 5-4, Figure 5-5, and Figure 5-6. The TWNDOW
command multiplies a trace array with one of these windows.
Selecting a window: The amplitude and frequency uncertainty of the Fourier-transformed
display depends on both the choice of trace windows and the spectrum analyzer sweep time.
Amplitude uncertainty is maximum when the spectral component falls midway between the
filter shapes. Passbands that are flatter in shape, like the FLATTOP filter, contribute less
amplitude uncertainty, but frequency resolution and sensitivity are compromised.
The UNIFORM window algorithm has the least frequency uncertainty and greatest amplitude
uncertainty. The UNIFORM window does not contain time-domain weighing and leaves the
data alone. Use the UNIFORM window for transforming noise signals or transients that decay
within one sweep time period. The UNIFORM window yields the best frequency resolution, but
also produces the highest side lobes for periodic signals.
Note TWNDOW should always be set before FFI’ is executed. Execute MKREAD FFT to
read the marker value as a frequency value instead of time value.
0
-10
-20
-30
-40
-50
cn
1 -60
ii -70
- -80
0
w -90
n -100
-110
-120
-130
-140
-150
- 1 6 0 "
-it--
cu115e
I I I
1 i I I I
80
.90
00
0
-10
-20
-30
-40
VI
-A -50
E -60
0 -70
E -80
-90
-100
-110
-120
-130
-140
Syntax
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.
OUTPUT 718&F 100ilHZ;" Sets the center frequency to 100 MHz.
OUTPUT 718."SP
, IOMHZ-" t Decreases the freqwncg span.
OUTPUT 718."MKPK
, HI-", Places the marker on a signal (this example oxwnes that there
is only one signal present).
OUTPUT 718;"FFTAUTO;" Zoom in on the sip&, and then does an FFT continuously
on the modulated siml.
Description
FFTAUTO uses the marker’s position to determine which signal is to be measured. FFIAUTO
centers the signal and, if the frequency span of the spectrum analyzer is greater than zero,
decreases the frequency span to zero before performing an FFT on the signal. When the FFT is
performed, the spectrum analyzer does the following:
n Changes to the continuous sweep mode.
n Changes to the linear amplitude scale.
n If the current detector is the peak detector, changes to the sample detector.
n If the initial frequency span was greater than 0 Hz, the spectrum analyzer adjusts the signal
peak to within 0.5 division of the top graticule.
n Does an FFT on trace A and then places trace A in both the clear-write and store-blank
modes. (When the spectrum analyzer is in both the clear-write and store-blank modes, the
trace data is still taken from the spectrum analyzer input during every measurement sweep,
but the trace is not shown on the spectrum analyzer display.)
n Places the results of the FFT in trace B, and then changes trace B to the view mode.
FFTAUTO performs the FFT on the signal at the end of every sweep. After executing
FFTAUTO, you should adjust the values for the resolution bandwidth, video bandwidth,
and sweep time according to the highest modulation frequency of interest. The resolution
bandwidth should be about ten times greater than the highest modulation frequency of
interest, and the video bandwidth should be about 10 times higher than the highest modulation
frequency of interest. The sweep time should be set according to the chart shown in
Syntax
FFTCL I P
Example
OUTPUT 718*"FFTCONTS-"
, 9 Starts the FFI:
OUTPUT 718."FFTCLIP'." Queries FFTCLE
ENTER 718;kclippe& 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. If the current measurement
sweep resulted in a trace that is above the top graticule line on the spectrum analyzer display,
the input trace (trace A) has been “clipped,” and the FFI data is not valid. If the input trace is
not clipped, the FFT data is valid.
Query Response
QFFTCL IP
FFTCONTS
FFT Continuous Sweep
Performs a fast Fourier transform (FFT) continuously on the current signal.
Syntax
Example
OUTPUT 718; “SP OHZ; ” Sets the spectrum analyzer to zero span.
OUTPUT 718; “LN; ” Changes the amplitude scale to linear:
OUTPUT 718;"FFTCONTS;" Starts the continuous FlT
Description
You should change the frequency span to 0 Hz and the amplitude scale to linear before
executing FFTCONTS. When FFTCONTS is executed, the spectrum analyzer does the following:
n Changes to the continuous sweep mode.
n If the current detector is the peak detector, changes to the sample detector.
Does an FFI’ on trace A. Trace A is then placed in both the clear-write and store-blank
modes. (When the spectrum analyzer is in both the clear-write and store-blank modes, the
trace data is still taken from the spectrum analyzer input during every measurement sweep,
but the trace is not shown on the spectrum analyzer display.)
n Places the results in trace B (trace B is placed in the view mode).
You can use the results of the FFTCLIP command to determine if the FFI’ data is valid. If you
want to view the input data (trace A), execute “TRDSP TRA,ON; ‘I.
Restrictions
Executing FFTCONTS turns off the following functions: windows display mode (WINON),
N dB point measurement (NDBPNT), gate utility functions (GDRVUTIL), TO1 measurement
(TOI), marker table (MKTBL), peak table (PKTBL), percent AM (PCTAM), peak zoom
(PKZOOM), power menu measurements (ACP, ACPE, CHP, and OBW), or Analog+ display mode
(ANLGPLUS).
FFTCONTS uses the following when performing an FFT:
n 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 FFTAUTO, FFTCONTS, or FFTSNGLS. (See
“SAVET” for more information about saving trace data.)
n The FFTMKR command to turn on the FFI markers (you can use the MKA or MKF to
determine the amplitude or frequency of the marker).
You should execute the FFTOFF command when you are finished using the FFT measurement.
Syntax
FFTMKR
Example
OUTPUT 718;"RCLT TRA,l;" Recalls the FFl’ trace.
OUTPUT 718;"FFTMKR;" Activates the FFT markers.
Description
If the spectrum analyzer is not performing an FFT measurement, the FFTMKR command
displays the FFT annotation below the last graticule on the spectrum analyzer display, and
activates the marker in the FFT readout mode. (FFTMKR uses the current sweep time to
determine the FFT stop frequency that is displayed.) If the spectrum analyzer is already
performing an FFI’, executing FFI’MKR activates only the FFT markers. You need to execute
FFIOFF to exit out of the FFT measurement and return to normal spectrum analyzer
operation.
Restrictions
Executing FFTMKR turns off the following functions: windows display mode (WINON), N dB
point measurement (NDBPNT), gate utility functions (GDRVUTIL), TO1 measurement (TOI),
marker table (MKTBL), peak table (PKTBL), percent AM (PCTAM), peak zoom (PKZOOM),
power menu measurements (ACP, ACPE, CHP, and OBW), and Analog+ display mode
(ANLGPLUS).
The purpose of the FFIMKR command is to allow you to restore the FFT annotation when you
recall FFT trace data (the FFI annotation is not saved when you save trace data). The percent
AM readout can also be restored by executing the FFTPCTAM command after FFTMKR. (See
“FFI’PCTAM” for more information about the percent AM measurement.)
You can use the MKF or MKA commands to determine the amplitude or frequency of an FFI’
marker.
FFTMM
FFT Marker to Midscreen
Changes the FFT midscreen frequency of the spectrum analyzer to the frequency of the FFI
marker.
Syntax
FFTMM
Example
OUTPUT 718;"FFTCONTS;" Starts the continuous FIT.
OUTPUT 718;"MKPK HI;" Finds the sign& with the highest amplitude (usually the signal
at 0 Hz).
OUTPUT 718;"MKPK NH;" Finds the signal with the next highest amplitude (usually the
dominant modulation frequency).
OUTPUT 718;"FFTMM;" Moves the signal to FFT midscreen.
Description
FFI’MM is performed only if the spectrum analyzer is performing a FFI’ measurement.
Changing the FFI midscreen frequency of the spectrum analyzer also changes the FFI’ stop
frequency of the spectrum analyzer. Because the FFl’ stop frequency is limited by sweep time
of the spectrum analyzer, it may not be possible to change the FFI’ midscreen frequency to the
frequency of the FFI marker. If the FFTMM command does not move the signal to the FFT
midscreen frequency, you should check if the FFT stop frequency is limited by the sweep time
range or the sweep time increments for your spectrum analyzer. The FFI’ stop frequency is
related to the sweep time as follows:
400
FFT stop frequency =
(Sweep time x 2)
Syntax
FFTMS
Example
OUTPUT 718;"FFTCONTS;" Starts the continuous FIT
OUTPUT 718;"MKPK HI;" Finds the signal with the highest amplitude (usually the signal
at 0 Hz).
OUTPUT 718;"MKPK NH;" Finds the signal with the next highest amplitude (usually the
dominant modulation frequency).
OUTPUT 718."FFTMS-"
, 9 Changes the FFT stop frequerxy to the signal frequency.
Description
FFTMS is performed only if the spectrum analyzer is performing a FFT measurement. If a
marker is on a signal, FFTMS will move that signal to the right side of the graticule. FFI’MS
is useful because moving the signal toward the FFT stop frequency increases the frequency
resolution of the FF”I’ measurement. For best results, the signal of interest should be placed
slightly left of the FFI’ stop frequency (the signal should not touch the right side of the
graticule). If the signal is placed at the FFT stop frequency, small variations in acquired data
can cause large changes in the displayed amplitude of the signal which do not reflect the actual
signal amplitude.
Because the FFT stop frequency is limited by sweep time of the spectrum analyzer, it may not
be possible to change the FFT midscreen frequency to the frequency of the FFT marker. If
the FFTMS command does not move the signal to the FYI’ stop frequency, you should check if
the FFT stop frequency is limited by the sweep time range or sweep time increments for your
spectrum analyzer. The FFT stop frequency is related to the sweep time as follows:
400
FFT stop frequency =
(Sweep time x 2)
FFTOFF
FFTOff
Exits the fast Fourier transform (FFT) measurement and FFl’ settings.
Syntax
FFTOFF
Example
OUTPUT 718;"FFTCONTS;" Starts the continuous FFT
OUTPUT 718;"FFTOFF;" Turns of the FFT
Description
The FFTOFF command aborts any of the FFT functions (FFTAUTO, FFTCONTS, FFTMKR, or
FFTSNGLS) and returns the spectrum analyzer display back to normal.
Syntax
0
/
'._.__.'
r on 7
1
/ XFFTPCTAM
Example
OUTPUT 718;"FFTCONTS;" Starts the FlT
OUTPUT 718;"MOV FFTPCTAM,l;" Turns on the percent AMjimction.
Description
The FFI’PCTAM command turns the percent AM function on or off. The percent AM
modulation is calculated using only the largest single frequency of modulation.
FFTPCTAM can be executed on FFT trace data even if an FFT measurement is not being
performed, as long as the FFT marker (FFTMKR) is invoked. For example, you can restore the
percent AM readout of a recalled FFl’ trace by executing the FFTMKR command, and then the
FFTPCTAM command.
You can execute the FFTPCTAM command two different ways. You can either execute the
FFTPCTAM command directly (for example, "FFTPCTAM 1; I’) or use the MOV command to move
the 1 or 0 into the FFTPCTAM command (for example, "MOV FFTPCTAM,l;"). If you use the
MOV command, no text is displayed in the active function area during command execution.
Query Response
QFFTPCTAM
FFTPCTAMR
FFT Percent Amplitude Modulation Readout
Returns the percent of amplitude modulation (AM).
Syntax
FFTPCTAMR
XFFTPCTAMR
Example
OUTPUT 718;"FFTCONTS;" Starts the FFT
OUTPUT 718;"MOV FFTPCTAM,l;" Turns on the percent AMfunction.
OUTPUT 718;"FFTPCTAMR?;" Queries the percent AM reading.
ENTER 718;Percentam Gets the percent AM reading.
Description
FFTPCTAMR returns either a positive real number, a “0,” or a “-1” as follows:
A real number If the a valid signal could be measured, FFTPCTAMR returns a real number
that represents the percent AM of the FFT signal (the percent AM is calculated
using only the largest single frequency of modulation).
0 If no modulation was detected, FFIPCTAMR returns a “0.”
-1 If the FFT input was above the top graticule (clipped), FFTPCTAMR returns a
U-1.”
Query Response
% AM
modulation
/ \
o u t p u t
t e r m i n a t i o n +
OFFTPCTAMR
Syntax
Example
OUTPUT 7 18 . “SP OHZ #* ” Sets the spectrum analyzer to zero span.
OUTPUT 7 18 ; “LN ; ” Changes the amplitude scale to linear:
OUTPUT 718 ; “FFTSNGLS ; ” Ftyforms the FFi?
Description
You should change the frequency span to 0 Hz and the amplitude scale to linear before
executing FFTSNGLS. How FFTSNGLS performs the FFT depends on the current sweep mode,
the trace status of trace A, and if FFTSNGLS is already active.
n If the spectrum analyzer is in the single-sweep mode or trace A is in the view mode when
FFISNGLS is first executed, the spectrum analyzer does an FFT on trace A without updating
the contents of trace A.
n If the spectrum analyzer is in the continuous-sweep mode when FFTSNGLS is executed, the
spectrum analyzer changes to the single sweep mode, and then does an FFT on trace A.
n If the spectrum analyzer is currently performing the FFTSNGLS command, a take sweep is
performed and then an FFI’ is performed on trace A.
FFTSNGLS does the following when performing an FFT:
n If the current detector is the peak detector, the detector is changed to the sample detector.
n Places trace A in both the clear-write and store-blank modes. (When the spectrum analyzer is
in both the clear-write and store-blank modes, the trace data is still taken from the spectrum
analyzer input during every measurement sweep, but the trace is not shown on the spectrum
analyzer display.)
n Places the results of the FFT in trace B, and then changes trace B to the view mode.
Restrictions
Executing FFTSNGLS exits the following functions: windows display mode (WINON), N dB
point measurement (NDBPNT), gate utility functions (GDRVUTIL), TO1 measurement (TOI),
marker table (MKTBL), peak table (PKTBL), percent AM (PCTAM), peak zoom (PKZOOM),
power menu measurements (ACP, ACPE, CHP, and OBW), and Analog+ display mode
(ANLGPLUS).
You can use the results of the FFTCLIP command to determine if the FFT data is valid.
Syntax
FFTSTAT
Example
OUTPUT 718*"FFTCONTS*" Starts the FFT
OUTPUT 718;"FFTSTAT?;" Qv.wries FF’TSTAII:
ENTER 718;Fftstatus 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. ”
1 If the spectrum analyzer is performing an FFT measurement, FFI’STAT returns a ” 1. ”
2 If the spectrum analyzer is not performing an FFT measurement but the FFT markers
and FFT annotation are on, FFI’STAT returns a “2.”
FFTSTAT returns a “0” if FFTOFF has been executed.
Query Response
,,-.
r a c t i v e 7
o u t p u t
0 / ’ t e r m i n a t i o n +
7(
a c t i v e 4
annotation
FFTSTOP
FFT Stop Frequency
Sets the FFI’ stop frequency of the FFT measurement.
Syntax
Example
OUTPUT 718 * “FFTCONTS - ” Starts the FFT
OUTPUT 718; “FFTSTOP ;KHZ; ” Sets the FlTstopjYequemy to 1 kHz.
Description
To change the FFT stop frequency, FFTSTOP changes the sweep time of the spectrum analyzer
as follows:
400
FFT stop frequency = (Sweep time x 2j
You can execute the FFTSTOP command two different ways. You can either execute the
FFTSTOP command directly (for example, “FFTSTOP 1; ‘I) or use the MOV command to move
the 1 or 0 into the FFTSTOP command (for example, “MOV FFTSTOP, 1; ‘I). If you use the MOV
command, no text is displayed in the active function area during command execution.
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
FMGAIN
FM Gain
-. _:
Sets the total FM frequency deviation for full screen demodulation.
Syntax
/ f r e q u e n c y v a l u e \
FMGA IN HZ
T--*0-+
/
..’
..’
..’
/
J
XFMGAlN
Example
OUTPUT 718;"FMGAIN 10KHZ; ‘I Sets theFMgain.
Description
The center of the display (the fourth graticule) represents zero frequency deviation from the
spectrum analyzer center frequency. The top graticule and the bottom graticule represent a
positive or negative value of FM gain frequency deviation from the spectrum analyzer center
frequency. The value of FMGAIN divided by four yields the FM gain per division.
Query Response
Syntax
FOFFSET
. ._.’ / f r e q u e n c y v a l u e
HZ
\
Example
10 OUTPUT 718;"IP;FA 200MZ;" Initializes spectrum analyz4x Sets start frequency.
20 OUTPUT 718;"FB 1GZ;" Sets stop freqwncy.
30 OUTPUT 718;"TS;MKPK HI;" Places marker on signal peak.
40 OUTPUT 718;"MF;" Finds frequency of marker:
50 ENTER 718;A
60 PRINT A Printsfrequency of marker:
70 OUTPUT 718;"FOFFSET 500MZ;" Adds a frequewy oflset.
80 OUTPUT 718;"TS;MF;" The frequency of the marker now is the frequency of
the signal peak plus the frequency offset.
90 ENTER 718;A
100 PRINT A The displayed frequency is 500 MHz greater than the
frequency displayed in line 60.
110 END
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.
Query Response
Syntax
/ l a b e l \
XFORMAT
Option Required: An HP 8590L or HP 8592L needs to have Option 003 installed in the
spectrum analyzer to use the FORMAT command.
Example
OUTPUT 718;"FORMAT XMYCARDW l+rwmts a memory card with the label “MYCARD. ”
Description
The memory card if formatted with the LIF format. If a label is not specified, the label defaults
to HP859X.
FS
Full Span
Sets the frequency span of the spectrum analyzer to full span.
Syntax
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.
In harmonic lock, “FS;” sets both the center frequency and the span according to the harmonic
band shown in the following table.
Syntax
user-defined
f u n c t i o n nane
/ \
FUNCDEF character
comnonds t o
/ b e e x e c u t e d \
a n a l y z e r comnand
< # A character
character
Restriction: User-defined function name cannot be a reserved word (see lkble 5-2).
Related Commands: ABORT, DISPOSE, KEYDEF, RETURN.
Example
Connect CAL OUT to the spectrum analyzer input.
IO OUTPUT 718;“IP;” Initializes spectrum analyzer
20 OUTPUT 718;“VARDEF H-SPAN,O;” D&nes user-o!@ned variable with an
initial value of 0.
30 OUTPUT 718;“FUNCDEF S,HIFT,O”; Creates user-&@u?d jimction, called
SHIFT. Shift divides the span by two
and adds the results to the center fre-
quency. The Y@” delimits the d@inition.
40 OUTPUT 718;“DIV H_SPAN,SP,2;“; Puts half of span value into H-SPAN.
50 OUTPUT 718;“ADD CF,CF,H-SPAN;“; Adds H-SPAN to Cl?
60 OUTPUT 718*“@*” Marks the end of the FUNCDEF declaration.
70 OUTPUT 718;“KkDEF l,S-HIFT,%SHIFT-UP%;” Assigns the function XHIFT to the
user&$ned sojtkey, called SHITl’-UI?
80 OUTPUT 718;“CF 300MHZ;” Displays the calibrator signal.
90 OUTPUT 718;“SP IMHZ;“;
100 LOCAL 718 Returns control to local mode.
110 END
The semicolons at the end of lines 30, 40, and 50 in the example suppress BASIC’s carriage
return and line feed. Adding the semicolons at the end of the lines of a FUNCDEF declaration
saves memory (because the carriage returns and line feeds are not stored in the FUNCDEF).
Description
The FUNCDEF command can be used to create a user-defined function. Note that a
user-defined function does not return a value like functions do in many programming
languages. ‘lb use the FUNCDEF command, you must specify the function label and the list
of commands it executes. Once a user-defined function is created, it is stored in spectrum
analyzer memory. The user-defined function can be executed by invoking the function name
within the definition of a user-defined softkey, another user-defined function, or a computer
program. ‘Ib delete the function from spectrum analyzer memory, use the DISPOSE command.
(See Chapter 4 for more information about creating and using a FUNCDEF).
The ABORT, IF/THEN/ELSE/ENDIF, REPEAT/UNTIL, or RETURN commands are useful
commands for altering the user-defined function’s operation.
The following are general rules and limitations of FUNCDEF:
n Do not use existing function names or secondary keywords (reserved words) as labels for
user-defined functions. See %ble 5-2 for a list of reserved words.
w Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
w The maximum number of nested FUNCDEF declarations is 40. (Nested FUNCDEF
declarations is when one FUNCDEF calls another FUNCDEF.) See the programming example
for the ABORT command for an example of nesting FUNCDEF declarations.
n Avoid using the POWERON LAST, SAVE STATE, and RECALL STATE programming commands
within the function. These commands save and recall a state that, within auser-defined
function, may only partially recall the saved state.
Syntax
GATE OFF
/
ON
KATE
Example
Connect the HI SWEEP IN/OUT connector to the GATE TRIGGER INPUT. Connect the CAL OUT
to the spectrum analyzer input.
10 OUTPUT 718."IP-" It?rforms an instrument preset.
20 OUTPUT 718;"CF'300MHZ;SP 0HZ;ST 200MS;" Sets the center frequency, span, and
sweep time.
30 OUTPUT 718;"GD 66MS;GL 66M.S;” Sets the gate delay and gate length.
40 OUTPUT 718;"GATECTL EDGE;" Sets the gate triggering for the edge
of the trigger input signal.
50 OUTPUT 718."GP
> POS*"
9 Triggers on the positive edge of the
trigger input signal.
60 OUTPUT 718;"GATE ON;" Turns on the gating.
70 END
GATECTL
Gate Control
Selects between the edge and the level mode for Option 105, the time-gated spectrum analysis
capability.
Syntax
XGATECTL
Example
OUTPUT 718;“GATECTL LEVEL;”
Description
In the edge mode, a trigger input starts the delay timer that triggers the gate timer. The gate
polarity (GP), gate delay time (GD), and gate time length (GL) are operational in the edge mode,
but not in the level mode. In the level mode, the gate follows the trigger input level.
When used as a predefined variable, GATECTL returns a “0” if GATECTL has been set to
EDGE, a “ 1 n if GATECTL has been set to LEVEL.
Query Response
output
t e r m i n a t i o n --)
QCATECTL
Syntax
( GC
XGC
Example
OUTPUT 718;"GC;"
Description
The GC command sets the following time-gated spectrum analysis functions:
n 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
Sets the delay time from when the gate trigger occurs to when the gate opens.
Syntax
I-t i m e v a l u e -\
c GD \
u s
/
‘...._..’
;gY
L /
XGD
Example
OUTPUT 718; “GD 1US; ”
Description
GD applies only if GATECTL is set to EDGE.
Query Response
QQI
Syntax
XGDRVCLPAR
Example
OUTPUT 718;"GDRVCLPAR;" Clears all the pulse parameters.
Description
GDRVPWID, GDRVPRI, GDRVREFE are the programming commands that can be used to set the
pulse width, pulse repetition interval, and reference edge, respectively.
GDRVCLPAR also turns off the resolution bandwidth to pulse width coupling, video bandwidth
to gate length coupling, and sweeptime to pulse repetition interval coupling.
The GDRVCLPAR command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
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
\ / XGDRVGDEL
Equivalent Softkey: GDRVGDEL is equivalent to GATE DELAY when using the gate utility
(GATE UTILfTY ) functions.
Option Required: Option 105. Option 101 is recommended.
Preset Value: 1 ps
Related Commands: GDRVUTIL, GDRVGLEN, GD, GL.
Example
OUTPUT 718;"MOV GDRVGDEL,lUS;" Sets the gate marker delay to 1 ps.
Description
If the frequency window is currently the active window, GDRVGDEL updates the gate position
markers and the position of the gate. If the time window is currently active, only the gate
position markers are updated.
You can execute the GDRVGDEL command two different ways. You can either execute the
GDRVGDEL command directly (for example, "GDRVGDEL IMS ; ‘I) or use the MOV command
to move the value for the time delay into the GDRVGDEL command (for example, “MOV
GDRVGDEL, 1MS ; ‘I). If you use the MOV command, no text is displayed in the active function
area during command execution.
The GDRVGDEL command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
GDRVGDEL? returns the last value entered for GDRVGDEL. To determine the current gate
delay, query the gate delay (GD) command.
g a t e d e l a y
/
o u t p u t
t e r m i n a t i o n +
QCDRVGDEL
GDRVGLEN
Gate Length for the Frequency and Time Windows
Adjusts the gate length in both the time and frequency windows.
Syntax
- octe lenath -
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.
Related Commands: GDRVUTIL, GDRVGDEL, GD, GL.
Example
OUTPUT 718;"MOV GDRVGLEN,lUS;" Sets the gate marker to a length of 1 ps.
Description
You can execute the GDRVGLEN command two different ways. You can either execute the
GDRVGLEN command directly (for example, "GDRVGLEN 1MS ; ‘I) or use the MOV command to
move the value for the gate length delay into the GDRVGLEN command (for example, “MOV
GDRVGLEN , 1MS ; ‘I). If you use the MOV command, no text is displayed in the active function
area during command execution.
The GDRVGLEN command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
GDRVGLEN? returns the last value entered for GDRVGLEN. lb determine the current gate
time length, query the gate length (GL) command.
g a t e
l e n g t h 7
o u t p u t
termlnotion -
GDRVGT
Window Gate Control
Turns on or off the gate in the frequency window.
Syntax
g a t e
r off 7
GDRVGT 0
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.
Description
Before executing GDRVGT, you should do the following:
1. Ensure there is a trigger pulse connected to the GATE TRIGGER INPUT connector on the
rear panel of spectrum analyzer. The gate utility functions do not work if there is not a
trigger input.
2. Ensure that the GATE OUTPUT connector and the EXT TRIG INPUT connector are
connected together.
If the time window is the active window, turning on the gate with GDRVGT makes the
frequency window the active window. The GDRVGT command is a gate utility function (see
“GDRVUTIL” for more information about the gate utility functions). Executing a gate utility
command without Option 105 installed in the spectrum analyzer generates the COMMAND ERROR:
message and an SRQ 140.
You can execute the GDRVGT command two different ways. You can either execute the
GDRVGT command directly (for example, "GDRVGT 1; I’) or use the MOV command to move
the 1 or 0 into the GDRVGT command (for example, "MOV GDRVGT,l;"). If you use the MOV
command, no text is displayed in the active function area during command execution.
Query Response
r off 7 I
output
0 t e r m i n a t i o n +
7<
Syntax
- m a r k e r p o s i t i o n 7
US
4 /
.._._..’
2;;
L I
/
XGDRVGTIM
Example
OUTPUT 718;“MOV GDRVGTIM,lOMS;” Places the gate trigger marker 10 ms a&v- the start
of the sweep.
Description
If the frequency window is the active window, executing GDRVGTIM makes the time window
the active window.
Once you enter a value into GDRVGTIM, that value is retained until you change it, or execute
DISPOSE ALL. Pressing (-1 or turning the spectrum analyzer off does not change the
value of GDRVGTIM.
You can execute the GDRVGTIM command two different ways. You can either execute the
GDRVGTIM command directly (for example, “GDRVGTIM 1MS ; I’) or use the MOV command
to move the value for the time delay into the GDRVGTIM command (for example, “MOV
GDRVGTIM, 1MS ; ‘I). If you use the MOV command, no text is displayed in the active function
area during command execution.
The GDRVGTIM command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
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?.
m a r k e r
output
t e r m i n o t i o n --)
Syntax
pulse
r e p e t i t i o n i n t e r v a l 7
GDRVPR I u s
d f+
Example
OUTPUT 718;"MOV GDRVPRI,lMS;" Sets the pulse repetition interval to 1 ms.
Description
When the pulse repetition interval is entered, the approximate gate trigger position will be
indicated on screen by either a “T”for a positive trigger, or a “I” for a negative trigger. Unlike
EhlTER PRI , GDRVPRI does not make the marker function active or display the Pulse Param
softkeys.
Once you enter a value into GDRVPRI, that value is retained until you change it, or execute
DISPOSE ALL. Pressing (j-1 or turning the spectrum analyzer off does not change the
value of GDRVPRI.
You can execute the GDRVPRI command two different ways. You can either execute the
GDRVPRI command directly (for example, "GDRVPRI 1MS ; I’) or use the MOV command to move
the value for the time delay into the GDRVPRI command (for example, "MOV GDRVPRI , 1MS ; I').
If you use the MOV command, no text is displayed in the active function area during command
execution.
The GDRVPRI command is a gate utility function (see “GDRVUTIL” for more information about
the gate utility functions). Executing a gate utility command without Option 105 installed in
the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
GDRVPRI returns the current value for the pulse repetition interval.
p u l s e r e p e t i t i o n
r i n t e r v a l 7
o u t p u t
t e r m i n a t i o n -
Syntax
GDRVPWI D
/
.._._.:
Example
OUTPUT 718;"MOV GDRVPWID,lMS;" Sets the pulse width to 1 ms.
Description
Unlike ElQTER WIDTH , GDRVPWID does not make the marker function active or display the
Pulse Param softkeys.
Once you enter a value into GDRVPWID, that value is retained until you change it, or execute
DISPOSE ALL. Pressing CPRESET) or turning the spectrum analyzer off does not change the
value of GDRVPWID.
You can execute the GDRVPWID command two different ways. You can either execute the
GDRVPWID command directly (for example, "GDRVPWID 1MS ; ‘I) or use the MOV command
to move the value for the pulse width into the GDRVPWID command (for example, "MOV
GDRVPWID, 1MS; I’). If you use the MOV command, no text is displayed in the active function
area during command execution.
The GDRVPWID command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
GDRVPWID returns the current value for the pulse width.
pulse
/- w i d t h
output
t e r m i n a t i o n -
Syntax
u n c o u p l e d
, \
Example
OUTPUT 718;“MOV GDRVRBW,l;” Couples the resolution bandwidth to the pulse width.
Description
Before coupling the resolution bandwidth to the pulse width, you should enter the pulse width
into GDRVPWID. Coupling the resolution bandwidth to the pulse width updates the trace
display in the active window. If the resolution bandwidth and the pulse width are uncoupled,
the setting of the resolution bandwidth does not change.
The resolution bandwidth is at least three times Pu,sekadth when coupled. The resolution
bandwidth is updated to the coupled value when the window is next active.
You can execute the GDRVRBW command two different ways. You can either execute the
GDRVRBW command directly (for example, “GDRVRBW 1; I’) or use the MOV command to move
the 1 or 0 into the GDRVRBW command (for example, “MOV GDRVRBW, 1; ‘I). If you use the MOV
command, no text is displayed in the active function area during command execution.
The GDRVRBW command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
GDRVRBW returns a “1” if the resolution bandwidth is coupled to the pulse width, or a “0” if
it is not coupled.
OGDRVREW
Syntax
GDRVREFE
‘._._.’
/ XGDRVREFE
Example
OUTPUT 718;"MOV GDRVREFE,lMS;"
Description
Unlike ENTER REF EDGE , GDRVREFE does not make the marker function active or display the
Enter REF EDGE softkeys.
Once you enter a value into GDRVREFE, that value is retained until you change it, or execute
DISPOSE ALL. Pressing @?Z’Z7] or turning the spectrum analyzer off does not change the
value of GDRVREFE.
You can execute the GDRVREFE command two different ways. You can either execute the
GDRVREFE command directly (for example, "GDRVREFE 1MS ; ‘I) or use the MOV command
to move the value into the GDRVREFE command (for example, “MOV GDRVREFE, 1MS; ‘I). If
you use the MOV command, no text is displayed in the active function area during command
execution.
The GDRVREFE command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
r e f e r e n c e
/ edge \
output
t e r m i n a t i o n +
Syntax
uncoup I e d
.._._..’
c o u p l e d
/ \
XGDRVST
Example
OUTPUT 718;"MOV GDRVST,l;" Couples the sweep time to the pulse repetition interval.
Description
Before coupling the sweep time to the pulse repetition interval, you should enter the pulse
repetition interval into GDRVPRI. Coupling the sweep time to the pulse repetition interval
updates the trace display in the active window. If the sweep time and the pulse repetition
interval are uncoupled, the setting of the sweep time does not change.
The sweep time is 401 times the pulse repetition interval when coupled. The sweep time is
updated to the coupled value when the window is next active.
You can execute the GDRVST command two different ways. You can either execute the
GDRVST command directly (for example, "GDRVST 1; I’) or use the MOV command to move
the 1 or 0 into the GDRVST command (for example, "MOV GDRVST, 1; 'I). If you use the MOV
command, no text is displayed in the active function area during command execution.
The GDRVST command is a gate utility function (see “GDRVUTIL” for more information about
the gate utility functions). Executing a gate utility command without Option 105 installed in
the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
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.
Syntax
Example
OUTPUT 718;"GDRVSWAP;"
Description
Whenever the window is made active, the trace and gate position are updated. GDRVSWAP
also couples the resolution bandwidth, video bandwidth, and sweep time to the current pulse
width and pulse repetition interval values, if the pulse values have been entered and coupling
is active. (See “GDRVRBW, ” “ GDRVVBW, ” and “GDRVST” for more information about coupling
resolution bandwidth, video bandwidth, and sweep time to the current pulse width and pulse
repetition interval.)
The GDRVSWAP command is a gate utility function (see “GDRVUTIL” command for more
information about the gate utility functions). Executing a gate utility command without Option
105 installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
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
Example
OUTPUT 718 ; “MOV GDRVSWDE, 1US ; ” Sets the time delay to 1 ps.
Description
When using GDRVSWDE, the gate zone markers shown in the time window are updated to the
value of GDRVSWDE.
Once you enter a value into GDRVSWDE, that value is retained until you change it, or execute
DISPOSE ALL. Pressing (PRESET] or turning the spectrum analyzer off does not change the
value of GDRVSWDE.
You can execute the GDRVSWDE command two different ways. You can either execute the
GDRVSWDE command directly (for example, “GDRVSWDE 1MS ; I’) or use the MOV command
to move the value for the time delay into the GDRVSWDE command (for example, “MOV
GDRVSWDE, 1MS ; ‘I). If you use the MOV command, no text is displayed in the active function
area during command execution.
The GDRVSWDE command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
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.
o u t p u t
t e r m i n a t i o n +
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 -\
/ XGDRVSWP
Example
OUTPUT 718 ; “MOV GDRVSWP, 1MS ; ‘I Sets the time o?ek.zy to 1 rns.
Description
The positions of the gate markers and the gate trigger markers are updated to the new value of
the sweep time.
Once you enter a value into GDRVSWP, that value is retained until you change it, or execute
DISPOSE ALL. Pressing CM] or turning the spectrum analyzer off does not change the
value of GDRVSWP
You can execute the GDRVSWP command two different ways. You can either execute the
GDRVSWP command directly (for example, “GDRVSWP 1MS ; ‘I) or use the MOV command
to move the value for the sweep time into the GDRVSWP command (for example, “MOV
GDRVSWP , 1MS ; ‘I). If you use the MOV command, no text is displayed in the active function area
during command execution.
The GDRVSWP command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
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).
sweep time
/ \
o u t p u t
t e r m i n a t i o n +
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
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. The
upper window displays the input signal in the time domain, and the lower window displays the
input signal in the frequency domain. If the spectrum analyzer is in zero span when the gate
utility is turned on, the frequency span of the lower window will be set to a nonzero frequency
span.
Before executing GDRVUTIL, you should do the following:
1. Ensure there is a trigger pulse connected to the GATE TRIGGER INPUT connector on the
rear panel of spectrum analyzer. The gate utility functions do not work if there is not a
trigger input.
2. Ensure that the GATE OUTPUT connector and the EXT TRIG INPUT connector are
connected together.
3. Set the center frequency of the analyzer to the signal’s center frequency.
4. Set the reference level of the analyzer so that the signal’s peak is within the first graticule.
The spectrum analyzer cannot turn on the gate utility if the spectrum analyzer is not properly
triggered. Once the gate utility has been turned on, you can use the commands that begin
with “GDRV” to make the time-gate measurement. Executing a gate utility command without
Option 105 installed in the spectrum analyzer generates the COMMAND ERROR: message and an
SRQ 140.
Query Response
r off 7
o u t p u t
0 l termination +
1” f
QGDRVUT I L
GDRVVBW
Couple Video Bandwidth to Gate Length
Couples or uncouples the video bandwidth to the gate length.
Syntax
XGDRVVBW
Example
OUTPUT 718;"MOV GDRVVBW,l;" Couples the video bandwidth to the gate length.
Description
Before coupling the video bandwidth to the gate length, you should enter the gate length into
GDRVGLEN. Coupling the video bandwidth to the gate length updates the trace display in the
active window. If the video bandwidth and the gate length is uncoupled, the setting of the
video bandwidth does not change.
The video bandwidth is at least equal to the inverse of the gate length when coupled. The
video bandwidth is updated to the coupled value when the window is next active.
You can execute the GDRVVBW command two different ways. You can either execute the
GDRVVBW command directly (for example, "GDRVVBW 1; ‘I) or use the MOV command to move
the 1 or 0 into the GDRVVBW command (for example, "MOV GDRVVBW, 1; 'I). If you use the MOV
command, no text is displayed in the active function area during command execution.
The GDRVVBW command is a gate utility function (see “GDRVUTIL” for more information
about the gate utility functions). Executing a gate utility command without Option 105
installed in the spectrum analyzer generates the COMMAND ERROR: message and an SRQ 140.
Query Response
GDRVVBW returns a “1” if the resolution bandwidth is coupled to the pulse width, or a “0” if
it is not coupled.
QGDRVVBW
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
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.
Or,
n Send the following BASIC commands:
ABORT 7
LOCAL 7
ABORT 7 instructs the computer to release control of the HP-IB, and LOCAL 7 allows you to
control the spectrum analyzer from the front panel.
When using the PLOT command, the scaling points (Plx, Ply; P2x, P2y) can be specified.
These scaling points specify the (x,y) coordinates, which determine the size of the plot.
(Plx,Ply) refers to the lower-left plotter coordinates. (P2x,P2y) refers to the upper-right
plotter coordinates.
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.
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--+
/
r BW 7
*
C D -
. ...-’
/ color ,
-
LQ570SM
LQ570LG
DJCOLOR
D J540CLR
cu126e
Description
The data is output in HP raster graphics format. Executing “GETPRNT;“, “GETPRNT O;“, or
“GETPRNT BW;” produces a monochrome printout. Executing “GETPRNT 1;” and “GETPRNT
COLOR;” produces a “color format” output for an HP PaintJet printer. Execute “MENU 0;”
before printing to blank the softkeys.
Before executing the downloadable program that contains GETPRNT, you should do one of the
following:
n Disconnect the computer from the spectrum analyzer.
ABORT 7 instructs the computer to release control of the HP-IB, and LOCAL 7 allows you to
control the spectrum analyzer from the front panel.
GL
Gate Length
Sets the length of time the gate is open.
Syntax
( GL
. . ..._..’ /
24;
L /
J
XGL
Example
OUTPUT 718;"GL IUS;"
Description
GL applies only if GATECTL is set to EDGE.
Query Response
Syntax
XGP
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.
Query Response
o u t p u t
b t e r m i n a t i o n --)
QGP
GR
Graph
Graphs the given 9 coordinate while incrementing the x coordinate by 1.
Syntax
c GR
XGR
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.
NEXT I
Description
The GR command plots a graph at the amplitude point indicated by the next y coordinate. The
3 coordinates are specified in display units, with -22 at the bottom of the spectrum analyzer
display and 233 at the top of the spectrum analyzer display. See “PA” for more information
about display units. The x coordinate is always incremented by 1; it cannot be decremented.
The GR command also places the graph in the display list. See “DA” for more information
about the display list.
Syntax
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.
Query Response
o u t p u t
ON b t e r m i n a t i o n --)
OFF
002
HAVE
Have
Returns a “0” if the specified option or device is not installed.
Syntax
cu 125e
Example
OUTPUT 718; “HAVE HPIB; ” Queries whether Option 041 is installed.
ENTER 718;A Recm~ves response from spectrum analyzer
DISP A Disph ys response.
Description
The parameters are:
HPIB HP-IB interface, Option 021, or HP-IB and parallel interface, Option 041.
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).
TG Tracking generator, Option 010 or 011.
FMD FM demodulator, Option 102, 103, or 301.
QPD Quasi-peak detector, Option 103.
CNT Counter-lock. (The frequency counter is standard for an HP 85913, HP 85933,
HP 85943, HP 85953, or HP 85963; it is available as Option 013 for an
HP 8590L.)
OVEN Precision frequency reference, Option 004.
TV TV synch trigger, Option 102 or 301. If the TV synch trigger option is installed in
the spectrum analyzer and in use, “HAVE TV?; ” returns a “2. ”
TVPICT TV picture display, Option 180.
FADC Fast ADC, Option 101 or 301.
CARD Memory card reader. (The memory card reader is Option 003 for the HP 85901,
or HP 8592L. The memory card reader is standard for the HP 85913, HP 8593E,
HP 85943, HP 85953, or HP 85963.)
GATE Time-gated spectrum analyzer capability, Option 105.
BANDS Returns the number of frequency bands that the spectrum analyzer has. See the
following description.
NBW Narrow bandwidths, Option 130.
BANDS returns the number of frequency bands that the spectrum analyzer has, as shown in the
following table.
HP 85953 2
HP 8592L or HP 85933 5
HP 85963 3
“HAVE CARD;” returns additional information about the memory card. By checking the bit
status of the byte returned from “HAVE CARD;“, you can determine the information shown in
the following table.
2 Memory card is a random access card Memory card is a read only memory
(RAM). card (ROM).
You can use the BIT or BITF command to determine the status of the bits. For example,
OUTPUT 718;"VARDEF R-ESULT,O;" Stores the bit status in R-ESULT
OUTPUT 718;"BIT R,ESULT,HAVE CARD,S;" Checks the status of bit 3.
OUTPUT 718;"R,ESULT?;" Gets the result.
ENTER 718;A
DISP A Displays the bit status of bit 3.
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.
Example
OUTPUT 718;"HD;" Disables the active jbaction and clears the ac-
tive function block area on the spectrum analyzer
screen.
OUTPUT 718;"CF 600MHZ;HD;700MHZ;" This will leave the center frequency at 600 MHZ,
because HD deactivates any current function.
Description
The active functions are ACPBW, ACPSP, AT, BAUDRATE, CF, COUPLE, CRTHPOS, CRTVPOS,
DA, DL, DOTDENS, FA, FB, FFTSTOP, FMGAIN, FOFFSET, GATECTL, GD, GL, GP, INZ, LG,
MKA, MKD, MKFC, MKFCR, MKN, MKPAUSE, MKPX, ML, MODE, NDB, NRL, PREAMPG, RB,
RCLS, ROFFSET, RL, RLPOS, SAVES, SAVRCLN, SETDATE, SETTIME, SP, SQLCH, SRCAT,
SRCPOFS, SRCPSTP, SRCPSWP, SRCPWR, SRCTK, SS, ST, TH, TIMEDATE, TVLINE, VAVG,
VB, VBR, ZMKSPAN, ZMKCNTR and user-defined active function specified by the ACTDEF
command.
HN
Harmonic Number
Returns the harmonic number of the current harmonic band in which the spectrum analyzer is
tuning.
Syntax
PreZefined
function path only
XHN
Example
OUTPUT 718*"HN'*" Queries harmonic band of spectrum analyzer:
ENTER 718;kmb;; Gets response from the spectrum analyzer
DISP Number Displays the result on computer screen.
Query Response
The HN command returns the number of the harmonic band, if the spectrum analyzer is
sweeping single-band. A “-1” is returned if the spectrum analyzer is sweeping multiband.
Syntax
selected
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.
Preset State: HNLOCK OFF
Related Commands: CF, FA, FB, FOFFSET, HN, HNUNLK, SNGLS, SP
Example
INPUT "SELECT THE DESIRED FRECjUENCY BAND",Harm Gets harmonicbandfromusex
OUTPUT 718;"HNLOCK ";Harm;";" Loch harmonic band.
Description
HNLOCK ON locks onto the harmonic band that is appropriate for the current center
frequency, lowering the span, if necessary, due to the limits of the harmonic band.
HNLOCK <number>, where <number> is an integer, locks onto harmonic band <number> and
automatically selects the settings shown in the following table.
Remote
Commands
T
1Equivalent
Softkey
Frequent y
Settings 1
HNLOCK 0 BAND 0 Center frequency 1.450 GHz Span 2.900 GHz
Note Before changing the frequency range to another harmonic, unlock the band
with the harmonic unlock command, “HNLOCK OFF;” or “HNUNLK; “.
Start Frequency
If a start frequency is entered that is outside of the current band boundaries, it will be set
to the nearest band edge instead. If a start frequency that is greater than the current stop
frequency is entered, the (possibly modified) start frequency is used for both the start and the
stop frequency; therefore, the span will be set to zero. If the start and stop frequencies specify
too large a span, they will be modified. (Also see “FA.“)
Stop Frequency
If a stop frequency is entered that is outside of the current band boundaries, it will be set to
the nearest band edge instead. If a stop frequency that is less than the current start frequency
is entered, the (possibly modified) stop frequency will be used for both the start and stop
frequency; therefore, the span will be set to zero. (Also see “FB.“)
Center Frequency
The span will be modified if necessary to get the center frequency specified without crossing
the band edges. (Also see “CF.“)
Span
The span will be limited as necessary to keep the start and stop frequencies within the band
edges without changing the center frequency. The maximum span allowed is 2.943 GHz in band
0, 3.600 GHz in band 1, 6.957 GHz in band 2, and 7 GHz in higher bands. (Also see “SP.“)
Query Response
output
’ t e r m i n a t i o n --)
a02
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.
Syntax
Example
10 ASSIGN @a TO 718;FORMAT ON
20 ASSIGN BSa-bin TO 718;FORMAT OFF
30 INTEGER Binary(l:401) Llimensions an array called “‘Binary. ”
40 OUTPUT (PSa;"CF 300MZ;CLRW TRB;BLANK TRA;SP Zzkes a measurement sweep.
1OMZ;SNGLS;TS;"
50 OUTPUT QISa;"TDF B;MDS W;TB;" Outputs trace B (in binary) to computer:
60 ENTER QSa-bin;Binary(*) Stores trace data in array.
70 OUTPUT @Sa;"CF 1OOMZ;RB 30KZ;SP 1MZ;TS;" Changes the spectrum analyzer settings.
80 DISP "PRESS CONTINUE WHEN READY"
90 PAUSE
100 OUTPUT OSa;"IB"; Prepares spectrum analyzer to re-
ceive trace B data stored in array.
110 OUTPUT aSa_bin;Binary(*) Sends trace B data to spectrum analyzer
120 OUTPUT 718;"VIEW TRB;"
130 END
Description
The IB command sends trace B data as binary data only; IB is independent of the measurement
data size (MDS) command. The IB command expects 802 data bytes (401 data points, two bytes
each).
ID
Identify
Returns the spectrum analyzer model number to the controller (for example, “HP8593E”).
Syntax
Example
10 ALLOCATE A$[501 Allocates string to hold model number:
20 OUTPUT 718;"ID;" Gets m.oo!&numberz
30 ENTER 718;A$ Transfers number to computer:
40 DISP A$ Displ.uys m&3? number:
50 END
Query Response
Syntax
,- o p e r a n d 1 -,
GT
/ /
b p r e d e f i n e d v a r i a b l e / LT
huser-defined v a r i a b l e ) EQ
b p r e d e f i n e d f u n c t i o n / NE
L t r a c e element / GE
LE
analyzer command
p r e d e f i n e d v a r i a b l e /
buser-defined v a r i a b l e /
G trace element /
a n a l y z e r command 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.
60 OUTPUT 718; “ELSE; ” This line is executed if peak is less than or
70 OUTPUT 718;“CF 100MHZ;TS;MKPK HI;” equal to the threshold level.
80 OUTPUT 718; “ENDIF; ” End of IF/THEN/EUE/ENDIF
90 END
The example below does not include the ELSE portion of the IF/THEN/ELSE/ENDIF command.
This example lowers any signal positioned above the spectrum analyzer screen.
10 OUTPUT 718; “IP; ” Initializes spectrum analyzer
20 OUTPUT 718 ; “SNGLS ; TS ; MKPK HI ; MA ; ‘I Finds peak of trace.
30 OUTPUT 718;“IF MA,GT,RL THEN;” Compares peak amplitude and reference level.
40 OUTPUT 7 18 ; “MKRL ; ” rt?rfrms line 40 if the marker amplitude is
greater than the reference level.
50 OUTPUT 718; “ENDIF; ” Ends IF/THEN/EN/ENDIF structure.
60 END
Description
The IF portion compares operands 1 and 2 with the operators shown in the following table.
Operator Description
GT Greater than.
LT Less than.
EQ Equal to.
If the condition is true, the command list following the IF statement is executed and commands
between ELSE and ENDIF are skipped. If the condition is false, the commands after the ELSE
statement are executed. If there is no ELSE statement, program execution resumes after the
ENDIF statement.
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
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: REPEAT/UNTIL.
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
Specifies the value of input impedance expected at the active input port.
Syntax
Example
OUTPUT 718;"INZ 75;" Changes input impedance to 75 ohms.
OUTPUT 718 ; "AUNITS V; ” Changes amplitude units to volts.
Description
The actual impedance can be affected only by internal hardware. With the exception of Option
001 or 011 (HP 859OL or HP 85913 only), the spectrum analyzer hardware supports 5Ofl only.
The INZ command is used for computation purposes during power or voltage conversions.
The INZ command affects only the amplitude results that are reported in absolute relative
power (dBm units or watts). (See “AUNITS.“)
Query Response
QINZ
Syntax
Example
OUTPUT 718;"IP;"
Description
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.)
RB Sets the resolution bandwidth to 3 MHz.
RL Sets reference level to 0 dBm.
RLPOS Sets the reference level position to 8.
ROFFSET Sets reference offset to 0.
RQS 40 Allows SRQ 110, SRQ 140 for illegal commands or broken hardware.
SPEAKER Turns on the speaker. (Option 102, 103, or 301 only.)
SQLCH Sets the squelch level to 0. (Option 102 or 103 only.)
SRCALC Sets the source leveling control to internal. (Option 010 or 011 only.)
SRCNORM Sets the source normalization to off. (Option 010 or 011 only.)
SRCPSWP Sets the source power sweep to off. (Option 010 or 011 only.)
SRCPWR Sets the source power level to -10 dBm. (Option 010 or 011 only.)
ss Sets the center frequency step size to 100 MHz.
STATUS BYTE Clear the status byte.
TH One division above bottom graticule line, threshold line off.
TITLE Clears the title from the spectrum analyzer screen.
TM Selects free run trigger mode.
TDF Selects parameter units output format.
TRB Sets the trace values to 0.
TRC Sets the trace values to 8000.
TVLINE Sets TV line number to 17. (Options 101 and 102, or 301 only.)
TVSYNC Triggers on negative polarity of the video modulation. (Options 101
and 102, or 301 only.)
VAVG Turns off video averaging and sets the video averaging limit to 100.
VB Sets the video bandwidth to 1 MHz.
VBR Sets VBR to 0.300.
Syntax
KEYCLR
XKEYCLR
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;" Displays ???xnu 1.
OUTPUT 718;"SAVEMENU 101;" Copies the softkey functions from menu 1 into menu 101.
OUTPUT 718;"KEYCLR;" Erases the soflkey functions of wwnu 1.
PAUSE
OUTPUT 718;"MENU 101;" Lxsphys menu 101.
Description
The KEYCLR command clears softkeys 1 through 6. Use the DISPOSE command to clear a
single softkey.
Softkeys 1 through 6 can be displayed by executing “MENU 1;” or by pressing [m),
User Menus .
KEYCMD
Key Command
Allows you define the function and label of a softkey. The softkey label is updated whenever a
softkey is pressed.
Syntax
,- k e y n u m b e r \
KEYCMD del i m i t e r
/
b p r e d e f i n e d v a r i a b l e /
% u s e r - d e f i n e d v a r i a b l e )
9 p r e d e f i n e d f u n c t i o n /
b trace element /
executed when
- k e y i s p r e s s e d 7
/
executed when
r m e n u i s u p d a t e d 7
a n a l y z e r corrmand de I i m i ter
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. ”
10 OUTPUT 718;"IP;" Initializes spectrum analyzer:
20 !
30 OUTPUT 718;"VARDEF CmOUNTRY,l;" DQin..es variable called C-OUNTRI!
40 !
50 OUTPUT 718;"KEYCMD 1,"; Llqfims sojtkey 1.
60 OUTPUT 718;"%";
70 OUTPUT 718;"IF C,OUNTRY,EQ,
1;THEN;";
80 OUTPUT 718;"CF 105.3MHZ;SP 300KHZ;";
90 OUTPUT 718;"MOV CmOUNTRY,O;";
100 OUTPUT 718;"ELSE;";
110 OUTPUT 718;"CF lOO.lMHZ;SP 300KHZ;";
120 OUTPUT 718;"MOV C-OUNTRY,l;";
130 OUTPUT 718;"ENDIF;";
140 OUTPUT 718;"%,";
150 OUTPUT 718;"@";
160 OUTPUT 718;"IF C,OUNTRY,EQ,O THEN;";
170 OUTPUT 718;"KEYLBL l,%KSAD%;";
180 OUTPUT 718;"ELSE;";
190 OUTPUT 718;"KEYLBL l,%QSAD%;";
200 OUTPUT 718;"ENDIF;";
210 OUTPUT 718*"@*"-
8 9,
220 END
Example 2
Softkey 2 has a softkey label, “COUNTRY YES NO.” If the value of the variable COUNTRY
is 1, then YES is underlined and label of softkey 1 is “QSAD.” Pressing softkey 2 moves the
underline to NO and changes the label of softkey 1 to “KSAD. ”
10 OUTPUT 718;"IP;"
20
30 Ul$=CHR$(lG)
40 Off$=CHR$(l5)
50
60 OUTPUT 718;"VARDEF C-OUNTRY,l;"
70 !
80 OUTPUT 718;"KEYCMD 1,";
90 OUTPUT 718;"%";
100 OUTPUT 718;"IF C,OUNTRY,EQ,Q THEN;";
110 OUTPUT 718;"MOV CF 105.3MHZ;MOV SP,300KHZ;";
120 OUTPUT 718;"MOV C,OUNTRY,O;";
130 OUTPUT 718*"ELSE-"*
140 OUTPUT 7;8;"MO; CF lOO.lMHA;MOV SP,300KHZ;";
150 OUTPUT 718;"MOV CmOUNTRY,l;";
160 OUTPUT 718;"ENDIF;";
Description
The KEYCMD command updates the label whenever the softkey is pressed (as shown in
example 2).
The functions of KEYCMD and KEYDEF are similar. The advantage of KEYCMD is that the
label of the softkey can change dependent on a conditional statement without the softkey itself
being pressed. KEYCMD is useful for indicating the state of a function in the spectrum analyzer
by changing the appearance of the softkey.
KEYDEF
User-Defined Key Definition
Assigns a label and user-defined function to a softkey.
Syntax
,- k e y n u m b e r -\
D/ del imiter 1
b p r e d e f i n e d v a r i a b l e
h u s e r - d e f i n e d v a r i a b l e J
b p r e d e f i n e d f u n c t i o n /
b trace element /
analyzer command
-,
del i m i t e r
user-defined function
/-key label\
xkeydef
Example 1
Connect CAL OUT to the spectrum analyzer input.
OUTPUT 718*"IP*" Initializes spectrum analyzex
OUTPUT 718;"FUkDEF D-LP,Q"; L%@u?s a function called D-L?
OUTPUT 718;"CF 300MHZ;"; Changes center frequency to measure the
calibration signal.
OUTPUT 718;"SP IMHZ;"; Measures the calibration signal in narrow
span.
OUTPUT 718."(9."
3 , The ‘@” signifies the end of the &n&ion
declaration.
OUTPUT 718;"KEYDEF l,D,LP,%SHOWICAL%;" SojZkey 1 will now have the “‘SHOW CAL”
label and perform thejbnction D-LI?
OUTPUT 718;"KEYEXC 1;" Exectutes sofikey 1.
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.
OUTPUT 718;“KEYDEF 2, , ;‘I Removes the command string
ficnctions and the sojtkey
label.
Description
Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
Query Response
output
terminot ion l
QKEYDEF
KEYENH
Key Enhance
Allows you to activate inverse video mode or underline part or all of the softkey label.
Syntax
,- k e y number \
KEYENH del i m i t e r
9 p r e d e f i n e d v a r i a b l e /
buuser-defined v a r i a b l e )
% p r e d e f i n e d f u n c t i o n /
b trace element /
r k e y l a b e l 7
del i m i t e r
/
inverse video
I- c o n d i t i o n -\
I
rove enhancement
,- condi t i o n -\
a n a l y z e r comnand de I i m i t e r
XKEYENH
Example 1
The following program lines show two different ways of using KEYENH to underline “OFF” in
the softkey label.
OUTPUT 718;"KEYENH 2,@0N ";CHR$(lG)~;"OFF"; Uno!erlirws the “OFF” section of the la-
CHR$(l5);"@,0,0;" bel. Notice that the wuwe enhancement
condition is false, and CHRS(l6) and
CHR$(lS) control the “OFF” section of
the soflkey label.
OUTPUT 718;"KEYENH 2,O";CHR$(l6>;"ON"; Underlines the “OFF” section of the la-
CHR$(lS);" OFFQ,O,l;" bel. Notice that the move enhancement
condition is trme, and CHR$(16) and
CHR$(lS) control the “ON” section of the
softkey label.
The following program lines show two different ways of using KEYENH to underline “ON” in
the softkey label.
OUTPUT 718;"KEYENH 2,O";CHR$(l6);"ON";CHR$(l5); Urmkrlines the “ON” section of the
' OFF@,O,O;" llabel.
OUTPUT 718;"KEYENH 2,@0N";CHR$(l6);" OFF"; Underlines the “ON” section of the
CHR$(l5);"@,0,1;" label.
Example 2
Use the KEYENH command to turn on inverse video for the upper label line of softkey number
1.
Example 3
Changing the condition of the inverse video mode to false turns off the inverse video.
Example 4
Omitting Ul$ and Off$ turns on inverse video for the upper and lower softkey label lines.
Description
The KEYENH command has two parameters (inverse video condition and move enhancement
condition). Setting these parameters to true or false controls how the softkey label is displayed.
The softkey label can be displayed with sections of the label in inverse video or underlined.
If the inverse video condition for the softkey label is true, the following occurs:
w The top line of the softkey label is displayed in inverse video (see example 2).
w If there are no enhancements embedded in the softkey label for the second line of the
softkey label, the second line of the softkey label is displayed in inverse video. (See
example 4). (See the following section, “Using Enhancements,” for more information about
enhancements.)
If the inverse video condition for the softkey label is false, the inverse video is not used and
the softkey label appears as specified by the move enhancement condition.
If the move enhancement condition is true, the following occurs:
n If no enhancements are used in the softkey label, the last line of the softkey label is
underlined.
w If enhancements are used in the softkey label, the enhancement (inverse video or
underlining) is moved to the other side of the softkey label.
If the move enhancement condition for the softkey label is false, the softkey label appears as
specified by the inverse enhancement condition.
Using Enhancements
An alternate way to control underlining and inverse video is to use “codes” to separate sections
of a softkey label.
n If you want to underline different sections of the softkey label, use code CHR$(lG) (turns on
underlining) and CHR$(15) (turns off the enhancements).
n If you want to use inverse video on different sections of the softkey label, use code CHR$(14)
(turns on inverse video) and CHR$(15) (turns off enhancements).
Example 1 demonstrates that there are two ways to underline the “OFF” section of softkey
label using enhancements.
The recommended convention for using inverse video and underlining is to use inverse video to
indicate an active function and underlined labels to show a choice.
Syntax
key number
/ \
KEYEXC
XKEYEXC
Example
OUTPUT 718;"FUNCDEF D-LP,@"; De@ws a jimction called D-LET
OUTPUT 718*"CF
, 300MHZ.".
t 9 Changes center frequency to wwasure the
calibration signal.
OUTPUT 718;"SP IMHZ;"; Measures the calibration signal in narrow
span.
OUTPUT 718;"@;" The “@” signi~ the end of the jbzction
declaration.
OUTPUT 718;"KEYDEF l,D,LP,%SHOW CAL%;" Soflkey 1 will now have the “SHOW CAL.”
label and perform the fimction DAR
OUTPUT 718;"KEYEXC 1;" Executes sojtkey 1.
KEYLBL
Key Label
Relabels a softkey without changing its function.
Syntax
- k e v n u m b e r - .
KEYLBL del i m i t e r
/
User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
?redefined function Function that returns a value. Refer to %ble 5-l.
rrace element An element of trace A, trace B, trace C, or a user-defined trace.
Yumber Any valid integer. 1 to 6, 601 to 1200.
?redefied variable A command that acts as a variable. Refer to Table 5-1.
Delimiter Matching characters marking the beginning and end of the list of - 1 \ @ = / ^ $ % ; ! ’
spectrum analyzer commands. ” &
Character Any valid character. See “LB” for additional characters and label 1 to 8 characters per
functions. label line, use the (I)
symbol or blank
spaces to separate
softkey label lines.
Example
Connect CAL OUT to the spectrum analyzer input.
10 OUTPUT 718;"FUNCDEF D,LP,O"; &fines a function called D-LP The ‘@”
sp&ol indicates the beginning of the
function.
20 OUTPUT 718;"CF 300MHZ;"; Changes center frequency to masure the
calibration signal.
30 OUTPUT 718;"SP 1MHZ;"; Measures the calibration signal in nar-
row span.
Description
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.)
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 (MEAS/USEji), User hanus . Menus 101 through 200, as well
as menu 1, can be accessed using the MENU command. See “MENU” for more information on
accessing softkeys and menus.
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
LB character character
XLB
Example
10 OUTPUT 718*"IP-" Initializes spectrum awlyzez
20 OUTPUT 718;"BLiNK TRA;ANNOT OFF;" Clears trace and annotation from the
spectrum analyzer screen.
30 OUTPUT 718;"DT@;" Establishes @ as the termination of the
label text.
40 OUTPUT 718;"PU;PA 75,175;LB LABEL@;" Displays “‘LABEL” on the spectrum an-
alyzer screen.
50 OUTPUT 718;"PU;PA 75,150;LB"; Displays the dollar sign “$” on the
CHR$(36);"@;" spectrum analyzer screen. l%e semi-
colons before and a$er CHRS(36) pre-
vent the computer from performing a
line feed.
60 OUTPUT 718;"PU;PA 75,125;LB";CHR$(16); Underlines the text.
"AN UNDERLINED LABEL";CHR$(l5);"0;"
70 OUTPUT 718;"PU;PA 75,100;LB";CHR$(l4); Displays the text in inverse video.
"A LABEL IN INVERSE VIDEO";CHR$(l5);"@;"
80 END
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. If the text is not terminated, instructions and other text following the
actual label’s statement are displayed on the spectrum analyzer screen. The label mode can
always be terminated with an ASCII end-of-text code (decimal code 3), or with a character
specified previously by the DT command. The terminator character itself must immediately
follow the label.
To remove the text written by the LB command, write spaces over the text or use the CLRDSP
command.
The LB command also enters the text into the display list. See “DA” for more information
about the display list.
43 + T ”
84 126 205 248 r
50 2 91 167 212 T
51 3 92 : 168 + 213 A
52 4 93 1 169 + 214 V
53 5 94 170 § 216 I-+=++
54 6 95 171 * 217 II
55 7 96 . 172 218
1
56 8 97 a 173 219
57 9 98 b X
174 220
58 99 C 175 7 221
59 , 100 d 176 0 222
60 < 101 e 177 1 224
61 = 102 f 178 2 225
62 > 103 Ii! 179 3 226
-1
63 ? 104 h 180 227
2
64 @ 105 i 181 228
65 A 106 j 182 229
66 B 107 k 183 ; 230
67 C 108 1 184 231
68 D 109 m 185 N 232
69 E 110 n 186 II 233
70 F 111 0 187 :. 234
71 G 112 P 188 5 235
72 H 113 9 189 1
L
236
LF
Base Band Instrument Preset
Performs an instrument preset into base band (band 0).
Syntax
( LF
XLF
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).
Syntax
l o g a r i t h m i c scale 7
Example
OUTPUT 718;"LG 1DB;"
Description
The vertical scale can be specified (in tenths) from 0.1 to 0.9 dB, or in integers from 1 to 20 dB
per graticule division.
If LG is used as the destination in a MOV command, it changes the log scale, but does not
change the scale from linear to logarithmic.
Query Response
Syntax
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.
LIMIDEL sets LIMIREL OFF (specifies that the limit line is fixed) and LIMIFT FREQ (specifies
that the limit line is based on frequency). See “LIMILINE” for more information about limit
line construction.
Syntax
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. The parameters of LIMIDISP do the following:
ON Turns on the limit line display.
OFF Turns off the limit line display.
AUTO Allows LIMITEST to control the display of the limit lines. If LIMITEST is on,
the limit lines will be displayed. If LIMITEST is off, the limit lines will not be
displayed.
UPPER Displays the upper limit line only.
LOWER Displays the lower limit line only.
Note Turning on Analog+ display mode changes the way that LIMIDISP functions as
follows:
n LIMIDISP ON, LIMIDISP LOWER, and LIMIDISP UPPER do not work when
the Analog+ display mode is turned on.
n LIMIDISP AUTO will still perform the limit line test if LIMITEST is on, but
the limit lines will not be displayed.
Query Response
o u t p u t
t e r m i n a t i o n +
Syntax
Pre’def ined
function path only
Example
10 OUTPUT718;“IP;SNGLS;CF300MHZ;SPlOOMHZ;” Initializes spectrum analyzer and
changes the frequency and span
settings.
20 OUTPUT718;“LIMIDEL;” Deletes any limit-line tables, sets
the table type to $xed.
30 OUTPUT 718;“LIMIMODE UPPER;” Spec@es the upper limit-line table.
40 OUTPUT 718;“LIMISEG 250MHZ,-60DB,FLAT;” Creates an entry for the upper
limit-line table. Because the LIMISEG
command is used, the limit-line
will be boxed on the frequency.
50 OUTPUT 718;“LIMISEG 290MHZ,-60DB,SLOPE;”
60 OUTPUT718;"LIMISEG 295MHZ,-lSDB,FLAT;"
70 OUTPUT 718;"LIMISEG 305MHZ,-15DB,SLOPE;"
80 OUTPUT 718;"LIMISEG 3lOMHZ,-GODB,FLAT;"
90 OUTPUT 718;"LIMISEG SlOMHZ,-GODB,FLAT;"
100 OUTPUT 718;"LIMITEST 0N;TS;" Turns on limit-line testing.
110 OUTPUT 718;"LIMIFAIL?;" Returns the status of the limit-line
testing.
120 ENTER 718;A
130 DISP A Displays the result.
140 END
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
Syntax
Example
OUTPUT 718;"LIMIFT TIME;" Ifthe current limit-line table is a frequency limit-line table,
it is purged. LIMIFT TIME places the limit-line segments
on the spectrum analyzer display with respect to the sweep
time of the spectrum analyzer:
Description
If you execute “LIMIFT TIME;“, LIMISEGT, or SENTERT, the limit-line segments are placed on
the spectrum analyzer display with respect to the sweep time setting of the spectrum analyzer.
If you execute “LIMIFT FREQ;“, LIMISEG, or SENTER, the limit-line segments are placed
according to the frequency that is specified for each segment. If a limit line has already been
defined, changing the LIMIFI’ setting clears the existing limit line.
Query Response
TIME
FREQ
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
Example
10 OUTPUT 718;"TRDEF M,ASK,401;” Dejines a trace called “M-ASK. ”
20 OUTPUT 718;"MOV M,ASKC1,1001,1000;" Moves values into sections of the M-ASK
trace.
30 OUTPUT 718;"MOV M~ASK[101,2001,2000;"
40 OUTPUT 718;"MOV M~ASK[201,300],3000;"
50 OUTPUT 718;"MOV M,ASK[301,401] ,400O;”
60 OUTPUT 718;"LIMIHI M-ASK;" [email protected] M-ASK as the upper limit
line
70 OUTPUT 718;"LIMITEST ON;" Turns on limit-line testing.
80 OUTPUT 718;"LIMIFAIL?;" l&sts if trace A fails limit-line testing.
90 ENTER 718;A
100 DISP A Displays result of limit-line testing.
110 END
Description
Unlike specifying a limit line with LIMISEG, LIMISEGT, SENTER, or SENTERT, the limit line
specified with LIMIHI is not updated if the center frequency, frequency span, sweep time, or
reference level are changed.
Note Executing IP, LIMIDEL, LIMISEG, LIMISEGT, SENTER, or SENTERT will delete
the limit line specified with LIMILO or LIMIHI. Executing LIMILO or LIMIHI
will delete the limit line specified with LIMISEG, LIMISEGT, SENTER, or
SENTERT.
Use LIMITEST ON to display the limit line trace specified by LIMIHI. Use LIMITEST OFF to
blank the limit line trace specified by LIMIHI.
Syntax
LIMILINE
Example
10 DIM States$[2000] Dhnmsions an array to store the
limit-line irlformation.
20 OUTPUT 7l8;"IP;CF300MHZ;SPlOOMHZ;" Initializes spectrum analyzex
30 OUTPUT 718;"LIMIDEL;" Lkletes any limit-line tables, sets
the table type to fiked.
40 OUTPUT 718;"LIMIMODE UPPER;" Specifies the upper limit-line table.
45 OUTPUT 718;"LIMIFT FREG;" Selects a limit line based onfrequency.
50 OUTPUT 718;"LIMISEG 250MHZ,-60DB,FLAT;" Enters a value for the upper limit-
line table. Because the LJMXSEG
command is used, the limit-line
segment is for a limit-line based
mfMww.
60 OUTPUT 718;"LIMISEG 290MHZ,-60DB,SLOPE;"
70 OUTPUT 718;"LIMISEG 295MHZ,-15DB,FLAT;"
80 OUTPUT 718;"LIMISEG 305MHZ,-15DB,SLOPE;"
90 OUTPUT 718;"LIMISEG 3lOMHZ,-GODB,FLAT;"
100 OUTPUT 718;"LIMISEG 910MHZ,-60DB,FLAT;"
110 OUTPUT 718;"LIMILINE?;" Gets the current limit-line table
o!.@nitions.
120 ENTER 718 USING I'#,-K";States$ Enters in&ormation into array.
130 PRINT States$ Prints the current limit-line table
&$nitions.
140 END
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. Use LIMIREL to determine whether the values of the limit line are absolute values or
positioned relative to the reference-level and center-frequency settings.
4. Use LIMIMODE, LIMISEG, LIMISEGT, SENTER, SENTERT to enter the limit-line segments.
(Use LIMISEG or SENTER for a limit-line based on frequency; use LIMISEGT or SENTERT
for a limit-line based on sweep time.)
5. Use the LIMIDISP command to select if the limit line is displayed or not.
6. Use the LIMITEST command to turn on limit-line testing.
7. Use the LIMIFAIL command to determine if the measurement sweep passed or failed the
limit line boundaries.
Enabling limit-line testing: When limit testing is enabled, the segments in the current table
are interpolated into the limit-line traces according to the current span and center frequency or
sweep time of the spectrum analyzer. After the sweep, each value in trace A is compared to its
corresponding value in the limit-line traces. If the current limit-line table is empty (for instance
after using the command LIMIDEL) and limit testing is enabled, then the limit-line traces are
blanked and set to out-of-range values. By using the SUB, MKPK HI, and MKF? commands, you
can read the point of greatest difference between the trace and limit line. See “LIMITEST” for
more information about limit-line testing.
Saving the limit line table: Once you have built the limit line, you can save the limit-line
table on a memory card or in spectrum analyzer memory. Use the STOR or SAVRCLW
commands to store the current limit-line table on the memory card. Use SAVET or SAVRCLW to
store the limit-line table in spectrum analyzer memory.
Query Response
The query response is a character string consisting of LIMILINE, LIMIREL, LIMIMODE,
LIMIHALF, LIMISEG, LIMISEGT, SENTER, or SENTERT commands. LIMIMODE returns
the number of for the current limit-line table. (The LIMIHALF command is for backward
compatibility; it is not used as an HP 8590 Series spectrum analyzer programming command.)
number of
r s e g m e n t s 7
LIMIDEL LIMIREL
uPPer lower
/frequency\
/value 7 / v a l u e \
SENTER
SENTERT
/frequency\ /ompIitude\
LIMILO
Lower Limit
Allows you to specify a fixed trace as the lower limit line.
Syntax
XLIMILO
Example
10 OUTPUT 718;"TRDEF M,ASK,401;" D$ke.s a trace called ‘M_ASK. ”
20 OUTPUT 718;"MOV M~ASK[1,100],1000;" Moves mlues into sections of the M-ASK
trace.
30 OUTPUT 718;"MOV M~ASK[101,200],2000;"
40 OUTPUT 718;"MOV M,ASK[201,300],3000;"
50 OUTPUT 718;"MOV M~ASK[301,401],4000;"
60 OUTPUT 718;"LIMILO M-ASK;" Specifies M-ASK as the lower limit
line.
70 OUTPUT 718;"LIMITEST ON;" Turns on limit-line testing.
80 OUTPUT 718;"LIMIFAIL?;" 7bst.s if trace A fails limit-line testing.
90 ENTER 718;A
100 DISP A Displays result of limit-line testing.
110 END
Description
Unlike specifying a limit line with LIMISEG, LIMISEGT, SENTERT, or SENTER, the limit line
specified with LIMILO is not updated if the center frequency, frequency span, sweep time, or
reference level is changed.
Note Executing IP, LIMIDEL, LIMISEG, LIMISEGT, SENTERT, or SENTER will delete
the limit line specified with LIMILO or LIMIHI. Executing LIMILO or LIMIHI
will delete the limit line specified with LIMISEG or SENTER.
Use LIMITEST ON to display the limit line trace specified by LIMILO. Use LIMITEST OFF to
blank the limit line trace specified by LIMILO.
Syntax
Example
10 OUTPUT 718 , "IP;CF300MHZ;SPlOOMHZ;" Initializes spectrum an&y- changes
the frequency and span.
20 OUTPUT 718 ; "LIMIDEL;" Deletes any limit-line tables, sets
the table type to jixed.
30 OUTPUT 718;"LIMIMODE UPPER;" SpecQks the upper limit-line table
35 OUTPUT 718;"LIMIFT FREQ;" Selects a limit line boxed on frequency.
40 OUTPUT 718;"LIMISEG 250MHZ,-60DB,FLAT;" Enters a value into the upper limit-
!
line table.
50 OUTPUT 718;"LIMISEG 290MHZ ,-50DB,SLOPE;"
60 OUTPUT 718;"LIMISEG 295MHZ,-15DB,SLOPE;"
70 OUTPUT 718;"LIMISEG 300MHZ,-lODB,SLOPE;"
80 OUTPUT 718;"LIMIMIRROR;" Mirrors the upper limit-line entries.
90 OUTPUT 718;"LIMITEST ON;" Turns on the limit-line testing and
displays the limit lines.
100 END
f
The example results in the limit-line table shown in the following table.
-
1EG
- WART-FREQ
1 250.0 MHz
2 290.0 MHz
3 295.0 MHz
4 300.0 MHz
5 305.0 MHz
6 310.0 MHz
7 310.0 MHz
8
- 350.0 MHz
You may notice that the LIMIMIRROR command may create more than one table entry for a
frequency (for example, see segment 6 in the above table). The LIMIMIRROR command creates
an extra segment so that the previous segment is explicitly ended at the correct amplitude.
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
Example
This example uses LIMIMODE to enter segments into the upper limit-line table, and then to
enter a segment into the lower limit-line table (upper and lower limit lines are treated as
separate tables). Line 60 demonstrates entering a segment into a combined upper and lower
limit-line table.
10 OUTPUT 718;"LIMIDEL;" Deletes the current limit-line ta-
ble, sets the table type to jixed.
20 OUTPUT 718;"LIMIMODE UPPER;" Specifies the upper limit-line table.
30 OUTPUT 718;"LIMIFT FREQ;" Selects a limit line based on frequency.
40 OUTPUT 718;"LIMISEG 300MHZ,-30DB,SLOPE;" Enters a segment into the up-
per limit-line table. Because the
LMSEG command is used, the
limit-line table will be based on
freq-9.
50 OUTPUT 718;"LIMIMODE LOWER;" [email protected] the lower limit-line table.
60 OUTPUT 718;"LIMISEG 300MHZ,-70DB,SLOPE;" Enters a segment into the lower
limit-line table.
70 OUTPUT 718;"LIMIMODE UPLOW;" SpecQies the upper and lower limit-
line tables.
80 OUTPUT 718;"SENTER 350MHZ,-30DB,-80DB,FLAT;" Enters a segment into the upper
and lower limit-line tables.
90 OUTPUT 718;"LIMIDISP ON;" Displays the limit lines.
100 END
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”). If limit-line table entries are entered with LIMISEG or LIMISEGT,
they are treated as entries to separate tables even if LIMIMODE UPLOW or LIMIMODE DELTA
had been previously specified.
When used as a predefined variable, LIMIMODE returns a number from 0 to three, depending
on the setting of the LIMIMODE parameter. The number corresponds to the LIMIMODE
parameter as shown in the following table.
Query Response
o u t p u t
’ t e r m i n a t i o n ---)
QLIMIMODE
LIMIREL
Relative Limit Lines
Specifies whether the current limit lines are fixed or relative.
Syntax
LIMIREL OFF
/
ON
Example
OUTPUT 718;"LIMIFT FREQ;" Selects a limit line based on frequency.
OUTPUT 718;"LIMIREL ON;" SpecQks that the limit line will be relative to the reference-
level and center-frequency settings.
Description
You should use LIMIFT to select whether the limit lines are based on frequency or sweep time
before using LIMIREL, because changing between a frequency or sweep time limit line purges
the current limit line table and sets LIMIREL to OFF.
LIMIREL and the reference level: Regardless of whether the limit line is based on frequency
or sweep time, LIMIREL determines if the amplitude parameter in a limit line table represents
absolute values or relative values. If LIMIREL is set to OFF, the limit lines amplitude values
are specified in absolute amplitude and do not depend on the reference level (RL) setting. If
LIMIREL is set to ON, the limit line amplitude values are relative to the current reference level
(RL) setting.
For limit lines that are based on frequency: The LIMIREL command determines whether
the frequency parameter in a limit-line table represent absolute or relative values that are
referenced to the center-frequency settings.
n Executing “LIMIREL OFF;” specifies that the frequency values in a limit-line table are fixed
values, and the limit line is positioned accordingly. Fixed limit lines are specified in absolute
frequency and do not depend upon the center frequency value.
n Executing “LIMIREL ON;” specifies that the frequency values in a limit-line table are relative
values and positions the limit line relative to the center-frequency settings. Relative limit
lines are specified in relative frequency and are positioned with respect to the current center
frequency. When the current center frequency value is changed, the segment frequencies
are converted according to the current center frequency value.
Query Response
o u t p u t
l termination +
002
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.
Syntax
,- f r e q u e n c y -,
LIMISEC HZ
l predefined variable -/
Luser-defined v a r i a b l e -I
L p r e d e f i n e d f u n c t i o n I
k trace element z/
segment
/ type \
SLOPE
-0
TQ-d
b p r e d e f i n e d v a r i a b l e J
buuser-defined variable>
b p r e d e f i n e d f u n c t i o n J
trace element J
XLIMISEG
Example
10 OUTPUT 718;"IP;SNGLS;CF300MHZ;SPlOOMHZ;RB 3MHZ;" Initializes spectrum an-
alyq changes the fre-
quency, span, and bandwidth.
20 OUTPUT 718;"LIMIDEL;" Deletes the current limit-
line table, sets the table
type to $xed.
30 OUTPUT 718;"LIMIMODE UPPER;" Spec@es the upper limit-
line table.
35 OUTPUT 718;"LIMIFT FRED;" Selects a limit line based
on frequent y.
40 OUTPUT 718;"LIMISEG 250MHZ ,-GODB,FLAT;" Adds segment to the up-
per limit-line table
50 OUTPUT 718;"LIMISEG 290MHZ,-60DB,SLOPE;"
60 OUTPUT 718;"LIMISEG 295MHZ,-15DB,FLAT;"
70 OUTPUT 718;"LIMISEG 305MHZ,-15DB,SLOPE;"
80 OUTPUT 718;"LIMISEG 3lOMHZ,-GODB,FLAT;"
90 OUTPUT 718;"LIMISEG 910MHZ,-60DB,FLAT;"
100 OUTPUT 718;"LIMIMODE LOWER;" Specifies the lower limit-
line table.
110 OUTPUT 718;"LIMISEG 250MHZ,-75DB,FLAT;" Adds segment to the lower
limit-line table.
120 OUTPUT 718;"LIMISEG SlOMHZ,-75DB,FLAT;"
130 OUTPUT 718;"LIMITEST 0N;TS;" Enables limit-line testing.
140 OUTPUT 718;"LIMIFAIL?;" Returns the result of limit-
line testing.
150 ENTER 718;A
160 DISP A Displays the result.
170 END
Description
If the current limit line table contains lines based on sweep time (as opposed to a limit line
based on the frequency), executing LIMISEG will clear the current sweep time limit line table,
and set LIMIREL to OFF.
Each limit-line segment is specified with a starting frequency, an amplitude, and a segment
type. The segment type defines how the line segment is to extend from its starting point to the
next segment. The segment types are FLAT, SLOPE, and POINT.
n FLAT draws a zero-slope line between the coordinate point of the current segment and the
coordinate point of the next segment, producing limit-line values equal in amplitude for all
frequencies between the two points. If the amplitude values of the two segments differ, the
limit line will “step” to the value of the second segment.
w SLOPE draws a straight line between the coordinate point of the current segment and the
coordinate point of the next segment, producing limit-line values for all frequencies between
the two points.
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. The
POINT segment type should be used as the last segment in the limit-line table. However, if
the last segment in the table is not specified as the POINT segment type, an implicit point is
used automatically. If a visible POINT segment at the right edge of the display is not desired,
add an explicit last point segment (higher in frequency than the stop frequency) to the
limit-line table.
Segments are sorted according to starting frequency. A maximum of 20 segments can be
defined in each of the upper and lower halves of a limit line. When the segment type is
omitted, the last type given (or SLOPE if no previous type has been given) is used.
Use LIMISEG if you want to enter amplitude data in the upper or lower limit lines. If you
want to enter amplitude data as upper and lower amplitude pairs or as mid and delta pairs, use
the SENTER command instead of LIMISEG. Use LIMIMODE to specify entry into the upper
limit-line table or the lower limit-line table. (See line 30 of example.)
Syntax
,- t ime -\
LIMISEGT \ us /
g-;
L /
b p r e d e f i n e d v a r i a b l e d
%user-defined variable>
% p r e d e f i n e d F u n c t i o n -J
b trace element d
segment
,- a m p I i t u d e .-\ / type \
DE SLOPE
p--J I. , /
Y p r e d e f i n e d v a r i a b l e -/
*user-defined variable2
Y p r e d e f i n e d f u n c t i o n 2
Y trace element J
Example
OUTPUT 718;"LIMIDEL;" Deletes the current limit-line table, sets the
table type to jixed.
OUTPUT 718;"LIMIMODE UPPER;" Spec.@es the upper limit-line table.
OUTPUT 718;"LIMIFT TIME;" Selects a limit line based on the sweep time.
OUTPUT 718;"LIMISEGT OMS,-GODB,FLAT;" Adds segment to the upper limit-line table.
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;" Specifies the lower limit-line table
OUTPUT 718;"LIMISEGT OK,-75DB,FLAT;" Adds segment to the lower limit-line table.
OUTPUT 718;"LIMISEGT 20MS,-75DB,POINT;"
OUTPUT 718;"LIMITEST 0N;TS;" Enubles limit-line testing.
OUTPUT 718;"LIMIFAIL?;" Returns the result of limit-line testing.
ENTER 718;A
DISP A Displays the result.
Description
Each limit-line segment is specified with a starting sweep time, an amplitude, and a segment
type.
Note If the current limit line table contains limit lines based on frequency (as
opposed to a limit line based on the sweep time), executing LIMISEGT will
clear the current frequency limit line table, and set LIMIREL to OFF
Starting sweep time: When you specify the starting sweep time, you are specifying the
starting sweep time with respect to the sweep time of the spectrum analyzer. For example, if
you specify a starting sweep time of 0, the limit-line segment will start at the left side of the
spectrum analyzer display.
Segment type: The segment type defines how the line segment is to extend from its starting
point to the next segment. The segment types are FLAT, SLOPE, and POINT.
n FLAT draws a zero-slope line between the coordinate point of the current segment and the
coordinate point of the next segment, producing limit-line values equal in amplitude for all
sweep times between the two points. If the amplitude values of the two segments differ, the
limit line will “step” to the value of the second segment.
w SLOPE draws a straight line between the coordinate point of the current segment and the
coordinate point of the next segment, interpolating amplitude values for all sweep times
between the two points.
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. 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
the limit-line table. However, if the last segment in the table is not specified as the POINT
edge of the display is not desired, add an explicit last point segment to (higher in sweep time
Segments are sorted according to starting sweep time. A maximum of 20 segments can be
Use LIMISEGT if you want to enter amplitude data in the upper or lower limit lines. Use
LIMIMODE to specify entry into the upper limit-line table or the lower limit-line table (see line
30 of example). If you want to enter amplitude data as upper and lower amplitude pairs or as
mid and delta pairs, use the SENTERT command instead of LIMISEGT.
LIMITEST
Enable Limit Line ‘&sting
Compares trace A with the current limit-line data.
Syntax
XLIMITEST
Example
10 OUTPUT7l8;"IP;SNGLS;CF300MHZ;SPlOOMHZ;" Initializes spectrum analyzer and
changes the frequency and span
settings.
20 OUTPUT 718;"LIMIDEL;" Deletes any limit-line tables, sets
the table type to jixed.
30 OUTPUT 718;"LIMIMODE UPPER;" Specifies the upper limit-line table.
35 OUTPUT 718;"LIMIFT FREQ;" Selects a limit line based onfrequency.
40 OUTPUT 718;"LIMISEG 250MHZ,-60DB,FLAT;" Creates an entry to the upper limit-
line table.
50 OUTPUT 718;"LIMISEG 290MHZ,-60DB,SLOPE;"
60 OUTPUT 718;"LIMISEG 295MHZ,-lSDB,FLAT;"
70 OUTPUT 718;"LIMISEG 305MHZ,-lSDB,SLOPE;"
80 OUTPUT 718;"LIMISEG 310MHZ,-GODB,FLAT;"
90 OUTPUT 718;"LIMISEG SlOMHZ,-GODB,FLAT;"
100 OUTPUT 718;"LIMITEST 0N;TS;" Turns on limit-line testing.
110 OUTPUT 718;"LIMIFAIL?;" Returns the status of the limit-line
testing.
120 ENTER 718;A
130 DISP A Displays the result.
140 END
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
Fills linear interpolated data into the specified trace data points of a destination trace.
Syntax
n u m b e r o f e l e m e n t s
/- \
l number
/
9 p r e d e f i n e d v a r i a b l e / % p r e d e f i n e d v a r i a b l e /
h u s e r - d e f i n e d variable/ huser-defined v a r i a b l e /
b p r e d e f i n e d f u n c t i o n I % p r e d e f i n e d f u n c t i o n I
b t r a c e e l e m e n t / b t r a c e e l e m e n t J
/
$ 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 )
b p r e d e f i n e d f u n c t i o n 1
b t r a c e e l e m e n t /
Example
OUTPUT 718;"LINFILL TRC,O,O,O;" Initializes trace C.
OUTPUT 718;"MOV TRC[l,lO] ,TRA[l,lOl;" Moves the jirst 10 elements of trace A into
trace C.
OUTPUT 718;"LINFILL TRC,l0,40,8000;" Uses the 10th element of trace C as the start-
ing valwq fills trace C elements 11 through 50
with the interpolated data, and places end-
ing value (8000) into the 50th element of trace
C.
Description
LINFILL uses the value of the starting value and the ending value to calculate the linear
interpolation data (the values for ending value should be in measurement units). The “number
of elements” field allows you to specify the number trace data points that are “filled in” with
linear interpolation data. The number of elements field includes the starting element, so if the
starting value is 10 and the number of elements is 40, the ending element will be 50.
The data will not be interpolated if the starting value is 0. If the starting value is 0, the ending
value is copied into the first element of the destination trace. You may want to set the starting
value to 0 to initialize a trace before using LINFILL to fill the trace with interpolated data. If
the starting value and the number of elements exceed the length of the destination trace, the
interpolation ends at the end of the trace array; the ending value is never reached.
LN
Linear Scale
Specifies the vertical graticule divisions as linear units, without changing the reference level.
Syntax
( LN
Example
OUTPUT 718*"LN*" Selects linear mode.
OUTPUT 718;"LN;RL 30MV;"
Description
The LN command scales the amplitude (vertical graticule divisions) proportionally to the input
voltage, without changing the reference level. The bottom graticule line represents a signal
level of zero volts.
Voltage entries are rounded to the nearest 0.1 dB. Thus, 30.16 mV becomes - 17.4 dBm for a
5OB spectrum analyzer system.
Syntax
r f i l e n a m e 7
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 XLOAD
Example
OUTPUT 7 18 ; “LOAD %tMYTRA% ,TRA ; ” Loads MYTRA from the memory card into trace A.
OUTPUT 718 ; “LOAD %dM-YPROG% ; ” Loads a program from the memory card into spec-
trum aruzl~zer memory.
Description
Be sure to insert the memory card into the spectrum analyzer’s memory card reader before
using the LOAD command.
lb use the LOAD command, you must specify the file name of the file to be loaded from the
memory card into spectrum analyzer memory, and, if you are loading trace data, you must also
specify the trace destination.
i Display image file Loads and displays the display image file.
d Downloadable Loads the contents of the file that was stored with STOR. Because
program STOR stores a copy of user-memory in the file, more than one item
may be retrieved when executing the LOAD command.
I 1 I Limit lines I Loads the limit-line values into the current limit-line table. I
Loads the spectrum analyzer state, and changes the current spectrum
analyzer state to the state that was loaded.
ItJT.race 1 Loads the trace and state. The current spectrum analyzer trace and
state is changed to the trace and state that was loaded.
Destination: When recalling trace data, you need to specify either TRA, TRB, TRC, or
a user-defined trace as the destination. Omit the destination parameter when recalling
downloadable programs, states, limit-line tables, display image files, or amplitude correction
factors.
Note The LOAD command recalls data from the memory card. See “SAVRCLN, n
“RCLT, ” or “RCLS” to recall data from spectrum analyzer memory.
Syntax
b u s e r - d e f i n e d t r a c e /
b trace range /
% p r e d e f i n e d v a r i a b l e I
u s e r - d e f i n e d variable/
- s c a l i n g f a c t o r
M p r e d e f i n e d varic
u s e r - d e f i n e d v a r i a b l e )
predefined variable
user-defined variable
predefined function
XLOG
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
OUTPUT 718~"IP~" Initializes spectrum analyzer
Dt$nes a user-de$ned variable, called P-OWE& and sets
OUTPUT 718;"VAIiDEF P,OWER,O;"
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.
Example 2
This example finds the natural exponential of a number and uses the LOG function to return
the original source value of the EXP function.
10 OUTPUT 718;"VARDEF E-XP,O;" Dt$lnes a variable called E-XI!
20 OUTPUT 718;"EXP E,XP,2,2.30259;" Fino!s the natural exponential of 2.
30 OUTPUT 718;"E_XP?;" Returns the natural exponential of 2.
40 ENTER 718;Value
50 PRINT Value I?+& the value of the exponential.
60 OUTPUT 718;"LOG EmXP,E-XP,2.30259;" Uses the log function on the exponential
value.
70 OUTPUT 718*"E
, -XP'."
*, The log of the exponential value is ap-
proximately 2.
80 ENTER 718;Logvalue
90 PRINT Logvalue
100 OUTPUT 718;"VARDEF E-XPY,O;" Declares a variable called E-XPk:
110 OUTPUT 718;"EXP E,XPY,-5,2.30259;" Finds the natural exponential of -5.
120 OUTPUT 718;"E_XPY?;" Returns the value of the natural exponen-
tial of -5.
130 ENTER 718;Value2
140 PRINT Value2 FVints the value of the exponential.
150 OUTPUT 718;"LOG E-XPY,E-XPY,2.30259;" Uses the log fan&ion on the exponential
value.
160 OUTPUT 718;"E,XPY?;" The log of the exponential value is ap-
proximately -5.
170 ENTER 718;Logval
180 PRINT Logval
190 END
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. In this case, because 3.903 is
the log of 8000 and the largest positive trace value is 32,767, a scaling factor of 32,767 divided
by 3.903 or 8,395 may be applied to the data. 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.
The LOG command can be used to calculate the natural logarithm by using 2.30259 as the
scaling factor.
The LOG function returns an invalid result if the source is zero or a negative number.
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.
LSPAN
Last Span
Changes the spectrum analyzer’s span to the previous span setting.
Syntax
LSPAN
Example
OUTPUT 718;"LSPAN;"
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) Declares variable, Trace-A.
OUTPUT 718;"SNGLS;TS;" Activates single-sweep, updates trace A.
OUTPUT 718;"TDF B;MDS W;TRA?;" Reads trace A in “word” form&.
ENTER 7 18 USING 'I#, 40 1 ( W) II ; TRACE-A (* > Fbmu~ts trace A output using data size of one
word.
PRINT TRACE-A(*) Prints trace A.
Description
The MDS command formats binary data in one of the following formats:
B selects a data size of one 8-bit byte. When transferring trace data, MDS B transfers trace
data the faster than MDS W because only 401 bytes are transferred. Because MDS B
combines two bytes into one byte, some resolution is lost.
W selects a data size of one word, which is two 8-bit bytes. When transferring trace data,
MDS W transfers 802 bytes of trace data with no loss of resolution.
How data is represented with MDS W: When data is sent with MDS W, the trace data is
converted into two bytes as follows:
1. The trace element’s amplitude (in measurement units) is divided by 256. The binary
representation of the result is placed in the most significant byte (MSB).
2. The binary representation of the remainder is placed in the least significant byte (LSB).
For example, a trace element that is at the reference level has the value of 8000 (in
measurement units). The result of 8000 divided by 256 is 30, with a remainder of 120. For this
data, the contents of the MSB would contain the binary representation for 30.
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.
For example, a trace element that is at the reference level has the value of 8000 (in
measurement units). The result of 8000 divided by 32 is 250. For this data, the contents of the
byte would contain the binary representation for 250.
Contents of Byte
1 1 1 1 1 0 1 0
See “TDF” for information about using MDS for trace data transfers.
Query Response:
o u t p u t
l termination ---*
Syntax
Example
10 OUTPUT 718;"IP;TDF M;" Initializes the spectrum analyzer and formats the trace data
in measurenxent units.
20 OUTPUT 718;"RL -1ODM;" Changes the refwertce level to -10 dBm.
9 , *
30 OUTPUT 718*"MDU'*" Queries the position of the spectrum analyzer baseline and
reference level.
40 ENTER 718;A,B,C,D,A$ Moves the spectrum analyzer response to the computer
50 PRINT A,B,C,D,A$ Displays the results on the computer screen.
60 END
The example returns the following to the controller: 0, 200, -90, -10 dBm. The first two
numbers received indicate that the vertical scale spans from 0 to 200 plotter units. The third
and fourth number received indicate that the baseline is at -90 dBm, and the reference level is
at -10 dBm. So, the baseline value of -90 dBm is equal to 0 plotter units. The reference level
of -10 dBm is equal to 200 plotter units.
Description
The MDU command returns values for the spectrum analyzer baseline and reference level, in
plotter units and measurement units.
Query Response
QMDU
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 t r a c e /
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MEANTH, RMS, STDEV, VARIANCE.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer
20 OUTPUT 718*"SNGLS-" Activates the single-sweep mode.
30 OUTPUT 718;"CF 30;MHZ;SP IMHZ;" Sets measurement range.
40 OUTPUT 718;"TS;" Sweeps trace A.
50 OUTPUT 718;"MEAN TRA?;" Returns the mean value of trace A to the computer:
60 ENTER 718;Number Assigns value to computer variable, Number
70 DISP "MEAN OF TRACE A IS '-, Number Displays result on the computer screen.
80 END
Query Response
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 t r a c e /
b trace range /
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MEAN, RMS, STDEV, TH, VARIANCE.
Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more
information.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer:
20 OUTPUT 718;"SNGLS;" Activates the single-sweep
mode.
30 OUTPUT 718;"CF 300MHZ;SP IGHZ;" Sets measurement range.
40 OUTPUT 718;"TH -40;" Sets threshold level to -40
dR
50 OUTPUT 718*"TS*" Sweeps trace A.
60 OUTPUT 718;"MEiNTH TRA?;" Returns the mean value of
trace A above the thresh-
old to the computer:
70 ENTER 718;Number Assigns value to computer
variable, Number:
80 DISP "MEAN OF TRACE A ABOVE THE THRESHOLD IS ";Number Displays result on the com-
puter screen.
90 END
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 --+
MEASOFF
Measurement Off
Turns off the current measurement, erases the display, and then displays the MEAS/USER
menu.
Syntax
Example
OUTPUT 718;"MEASOFF;" lbns ofl the current measurement.
Description
If ACPPAR is set to automatic, executing MEASOFF returns the following spectrum analyzer
settings back to their premeasurement settings:
H Frequency span, resolution bandwidth, video bandwidth, center frequency step size, and
sweep time.
n Detector mode.
n Amplitude scale.
MEASOFF does not do any of the following:
n Change the values of the channel spacing (ACPSP) or the channel bandwidth (ACPBW).
n Restore the trace contents, trigger mode, amplitude units, and any trace math functions (see
‘l%ble 5-4 for a list of the trace math functions) to their premeasurement state.
You should execute MEASOFF when you no longer want to use any of the power menu
functions. (The power menu functions are ACP, ACPE, ACPGRAPH, CHP, and OBW).
MEASOFF may also turn off some other spectrum analyzer measurements. For example,
MEASOFF also turns off FFTCONTS, FFTAUTO, FFTSNGLS, NDBPNT, PCTAM, GDRVUTIL, and
TOI.
Syntax
XMEASURE
Example
Activate the tracking-generator source output.
OUTPUT 718;"MEASURE SR;" Sets spectrum anul~z43r to stimulus-response mode.
OUTPUT 718;"SRCPWR -1ODM;" Makes the tracking generator source power the active
function.
Description
“MEASURE SA;” activates spectrum analysis and auto couples the spectrum analyzer
functions. If AMB ON or AMBPL ON and RLPOS have been executed prior to MEASURE SA,
MEASURE SA turns off the reference level position. When normalization is off, all amplitude
units are specified in absolute values determined by:
n Amplitude units (AUNITS).
n Reference level (RL).
n Reference-level offset (ROFFSET).
n Input impedance (INZ).
n Logarithm scale (LG).
n Linear scale (LN).
w Amplitude Correction (AMPCOR).
“MEASURE SR;” activates stimulus-response measurements and uncouples the sweep time
for faster sweep times. If AMB ON or AMBPL ON and RLPOS are executed, MEASURE SR
activates the reference level position. When normalization is used, amplitude units are
specified relative to the display level.
“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.
When used as a predefined variable, MEASURE returns a value depending on the setting of the
MEASURE parameter.
Query Response
Syntax
f u n c t i o n p a t h o n l y
XMEM
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.
40 END
Description
Functions that affect the amount of user-allotted memory include: ACTDEF, FUNCDEF,
ONDELAY, ONEOS, ONSRQ, ONSWP, ONTIME, TRDEF, TRMATH, VARDEF.
The MEM command returns the number of bytes of user-allotted spectrum analyzer memory to
the controller.
Query Response
MENU
Menu
Selects and displays the softkey menus on the spectrum analyzer screen.
Syntax
MENU
Example 1
OUTPUT 718;"MENU 1;" Displays menu 1 on the spectrum analyzer screen.
Example 2
10 OUTPUT 718;"KEYDEF l,!IP;CF 300MHZ;SP IOOMHZ; [email protected] sojtkey 1.
MKPK HI;!,OSETUPI#l@;"
20 OUTPUT 718;"KEYDEF 2,!IP;CF 600MHZ;SP 1OOMHZ; D&ws soBkey 2.
MKPK HI;!OSETUPl#20;"
30 OUTPUT 718;"KEYDEF 3,!IP;CF 900MHZ;SP IOOMHZ; [email protected] soj%key 3.
MKPK HI;!,QSETUPI#3@;"
40 OUTPUT 718;"KEYDEF 4,!SNGLS;TS;MKPK Defines sofikey 4.
HI;MKD;MKMIN;!,OFINDIDELTAO;"
50 OUTPUT 718;"KEYDEF 5,!MKOFF ALL; Dynes sofi ke y 5.
CONTS;!,ORESUMElSWEEPO;"
60 OUTPUT 718;"KEYDEF G,!MENU 102! ,OMOREISETUPSQ;" Lk@tes sojtkey 6.
70 OUTPUT 718;"KEYDEF 607,!FA 88MHZ;FB 108MHZ; L3@nes so$key 607. So&
MKPK HI;DEMOD ON;DEMOD FM;MENU ~;!,QFM IDEMOD(P;~~ key 607 is accessed by exe-
cuting MENU 102 (see pro-
gramming line 60).
80 OUTPUT 718;"KEYDEF 608,!FA 10KHZ;FB 88MHZ; D@ues sofikey 608. Sofi-
MKPK HI;DEMOD ~N;DEMOD AM;MENU 1; !,OAM IDEMoD@;” key 608 is accessed by exe-
cuting MENU 102 (see pro-
gramming line 60).
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 . Menus 101 through 200, as well
as menu 1, can be accessed using the MENU command. The MENU command is a useful way
to “link” softkey menus together. For example, example 2 shows how menu 1 (with softkeys
1 through 6) can be used to access menu 102 (with softkeys 607 and 608). Menu 1 can be
v I
\
FM DEMOD
AM DEMOD \
The menu numbers 1 and 101 through 200 are the recommended menus available for the user
to use.
Executing “MENU 0;” clears the softkey menu from the spectrum analyzer screen.
Query Response
MERGE
Merge Two Traces
Merges the source trace into the specified area of the destination trace.
Syntax
y- d e s t i n a t i o n t r a c e
b u s e r - d e f i n e d t r a c e /
r d e s t i n a t i o n s t a r t 7 r d e s t i n a t i o n e n d 7
+ number
/ /
h p r e d e f i n e d v a r i a b l e / * p r e d e f i n e d v a r i a b l e 1
b p r e d e f i n e d f u n c t i o n M’ b p r e d e f i n e d f u n c t i o n /
p r e d e f i n e d v a r i a b l e I
buuser-defined vorioblel
user-defined trace b p r e d e f i n e d f u n c t i o n /
Related Commands: All other trace math commands. See lkble 5-4 for a list of trace math
commands.
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. If the source is not a
trace, its value is copied to the destination trace. If the destination segment is longer than the
specified source segment, the last element of the source trace is repeated to fill the destination.
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 single-
sweep mode.
OUTPUT 718;"FA 280MHZ;FB 320MHZ;TS;" Sets up the measurement range.
OUTPUT 718;"MKN;MKPK HI;" Places marker on peak of calibrator signal.
OUTPUT 718;"MF;" Rzkesfrequency of marker:
ENTER 718;A Returns frequency to the computer:
PRINT A Prints the frequency on the computer screen.
Description
The MF command returns the frequency of the active marker to the controller if the marker
is on screen. In delta marker mode, nonzero span, “MF;” returns the frequency difference
between the two markers. In zero span, “MF;” returns the marker time, or the delta marker
time.
The data that is returned by “MF;” depends on many command conditions including TDF,
MKREAD, and MDS.
If the trace data format P is used with MF, the result is one real value in time units or
frequency units, depending on the marker readout format. (See “MKREAD.“)
Example 1
OUTPUT 718;"TDF P;MKREAD FRCj;MF;" This returns a frequency value (in Hz) if not in
zero-span.
OUTPUT 718;"TDF P;MKREAD FRQ;MF;" This returns a time value (in seconds) if in zero-
span.
OUTPUT 718;"TDF P;MKREAD PER;MF;" This returns the time value (in seconds) of l/(marker
frequency).
OUTPUT 718;"TDF P;MKREAD SWT;MF;" This returns the marker time value (in seconds).
OUTPUT 718;"TDF P;MKREAD 1ST;MF;" This returns thefrequency value (in Hz)for l/(marker
time).
OUTPUT 718;"TDF P;MKREAD FFT;MF;" This returns the frequency value (in Hz).
If the trace data format is used with trace data format A, the result depends on the setting of
the MDS command.
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.
Example 3
OUTPUT 7 18 ; "TDF M ; MF ; ” Returns marker horizontal position value in ASCII.
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 t r a c e /
b t r a c e range /
b p r e d e f i n e d v a r i a b l e I
u s e r - d e f i n e d variable/
User-defined trace A trace defined by the TRDEF command. Any valid trace name.
User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
Predefined variable A command that acts as a variable. Refer to Table 5-l.
Predetied function Function that returns a value. Refer to Table 5-l.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Number Any real or integer number. Real number range.
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: MINPOS, MXM, TS.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer:
20 OUTPUT 718*"SNGLS*" Activates the single-sweep mode.
30 OUTPUT 718;"VARDEi M,INIMUM,O;" &y%.es vam’able with an initial value of 0.
40 OUTPUT 718;"TS;MKPK HI;"; Sweeps trace A and places the marker at the
highest peak.
50 OUTPUT 718;"MIN M-INIMUM,MKA,-20;"; Compares the marker amplitude to -20 dBm.
Stores the lesser of the two in MINIMUM.
60 OUTPUT 718;"M,INIMUM?;" Returns the result to the computer:
70 ENTER 718;Number Puts the result in the computer variable,
Number:
80 DISP Number LXsplays the result.
90 END
Description
If one of the sources is a single value, it acts as a threshold, and all values equal to or less than
the threshold pass to the destination. The values larger than the threshold are replaced by the
threshold value in the destination.
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.
MINH
Minimum Hold
Updates trace C with the minimum level detected.
Syntax
MINH
Example
OUTPUT 718;"CLRW TRC;CONTS;" Clears trace C and begin taking data.
OUTPUT 718;"MINH TRC;" Updates trace C with the minimum level detected.
Description
MINH updates trace C with a new value from a detector only if the new value is smaller than
the previous trace data value.
Syntax
MI NPOS
b u s e r - d e f i n e d t r a c e I
L trace range /
XMINPOS
Prerequisite Commands: TRDEF when using a user-defined trace ACTDEF. TS when using
trace data.
Related Commands: MIN, MKMIN, PKPOS.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyztx
20 OUTPUT 718;"MINPOS TRA;" Finds the minimum value of trace A.
30 ENTER 718;Number Returns value to the computer:
40 DISP Number Displays result.
50 END
Description
If a trace range is used with MINPOS, MINPOS returns a value relative to the first element of
the trace range. For example, if a trace has a range of 150 to 300 elements, and the minimum
value is element 200, MINPOS will return the value of 51.
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 t r a c e /
b t r a c e range /
- s o u r c e t r a c e
user-defined trace
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Example
10 OUTPUT 718;“IP;” Initializes spectrum analyzer
20 OUTPUT 718;“SNGLS;” Activates the single-sweep mode.
30 OUTPUT 718;“TS;” Zzkes sweep.
40 OUTPUT 718;“BLANK TRA;” Blanks trace A from spectrum analyzer screen.
50 OUTPUT 718;“MIRROR TRB,TRA;” Moves the mirror image of trace A into trace B
60 OUTPUT 718;“VIEW TRB;” Displays the result.
70 END
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
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
Example
OUTPUT 718*"IP*" Initializes the spectrum analyzex
OUTPUT 718;"MK;YPE AMP;" Changes the marker type to amplitude.
OUTPUT 718;"MKA -50;" Places the marker at -50 dBm.
Description
The MKA command specifies the amplitude of the active marker in current units when the
marker is the fixed or amplitude type (see “MKTYPE”). If both the delta marker and active
marker are on the screen, “MKA?;” returns the amplitude difference between the two markers.
Specifying the marker amplitude moves the marker to the point of the trace closest to the
given marker amplitude.
If the trace data format P (TDF P), is used with MKA, the result is one real value in the current
amplitude units (AUNITS can be used to change the current amplitude units).
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?;" Returns one byte representing the marker vertical
position (-32,768 to 32,767) divided by 32 and then
AhDed with 255.
OUTPUT 718;"TDF A;MDS H;MKA?;" Returns two bytes in a binary word format that has
a value from -32,768 to 32,767. The value represents
the binary trace amplitude value.
Using the trace data format I is equivalent to the TDF A format. If the trace data format is
used with trace data format M, the result is returned in ASCII measurement units (-32,768 to
32,767).
Example
OUTPUT 718;"TDF M;MKA?;" Returns one vertical position value in measurement units.
Query Response
MKACT
Activate Marker
Specifies the active marker.
Syntax
marker
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.
When this command is used, the following results occur:
n The marker number supplied by the command is made marker 1, the active marker.
n If the marker number is not already on, the marker is turned on with preset type (position),
and the marker is placed at center screen. The trace chosen is the first displayed trace
found: trace A, trace B, trace C.
Note Using MKACT replaces marker 1 with the new marker function. The amplitude
and frequency for the previous marker are not saved.
Query Response
“MKACT?; n returns the marker number.
Syntax
MKACTV
Example
OUTPUT 7 18 - “MKACT 2 - ” Makes marker number 2 the active marker:
OUTPUT 7 18 ; “MKACTV ; ’ Makes marker number 2 the active fin&ion.
Description
If you have more than one marker displayed on the spectrum analyzer display, you need to
make the desired marker the active function before you can manipulate the marker.
‘lb make the marker the active function:
1. Select the desired marker with the MKACT command (MKACT makes the specified marker
the active marker).
2. Execute MKACTV to make the active marker the active function.
If there is no active marker, executing MKACTV makes marker 1 the active marker and the
active function. MKACTV makes the marker an active function according to its marker type
(see “MKTYPE” for more information about marker type).
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
Example
OUTPUT 718. “IP * ” Initializes spectrum anulyzex
OUTPUT 718;"CF'SOOMHZ;SP 1OOMHZ;SNGLS;" Changes the center j?-equency and span,
then activates the single-sweep moo%.
OUTPUT 7 18 ; “TS ; MKPK HI ; ” Updates the sweep, places marker on signal
peak.
OUTPUT 718 ; “MKBW -3 ; ” Uses the MKBWjimction to find the signal
bandwidth at -3 dB below the marker:
Description
The MKBW command also displays (in the message area) the bandwidth at the power level in
dB below the current marker position or the current signal peak.
MKBW finds the bandwidth at the specified power level for one measurement sweep. If you
want the spectrum analyzer to find the bandwidth at the specified power level during every
measurement sweep, use the NDBPNT command instead of MKBW.
Syntax
MKCF
Example
This example provides a quick way to center the desired frequency on the spectrum analyzer
screen.
10 OUTPUT 718;"IP;SP 1MHZ;SNGLS;" Initializes spectrum an&q activates single-
sweep mode.
20 INPUT "ENTER IN DESIRED STATION
FREQUENCY, IN MHZ”, Freq
30 OUTPUT 718."CF Us,Freq;"MHZ;" Changes spectrum analyzer center frequency.
40 OUTPUT 718;"TS;MKPK HI;MKCF;TS;" Updates the trace, places marker at the signal
peak and centers it on screen.
60 END
Description
This command is performed only if an active marker is present on screen.
MKCONT
Marker Continue
Resumes the sweep after execution of a MKSTOP command.
Syntax
MKCONT
Example
10 OUTPUT 718."IP*TS*" Initializw spectrum aruzljgxx
20 OUTPUT 718;"MK;K I&' Creates an active marker:
30 OUTPUT 718;"MKSTOP;" Stops sweep at marker:
40 OUTPUT 718; "MKCONT;" Resumessweep.
50 END
Syntax
/ f r e q u e n c y value \
XMKD
Number Any real or integer number. Default unit is Hz, default value is Start frequency to
value of the active marker. stop frequency of
spectrum analyzer.
Example
10 OUTPUT 718;"IP;" Initializes spectmcm analyzer:
20 OUTPUT 718;"MKMIN;" Places a marker at the minimum amplitude of trace.
30 OUTPUT 718;"MKD;" Activates marker delta.
40 OUTPUT 718;"MKPK HI;" Places marker at highest amplitude of trace.
50 OUTPUT 718;"MKSP;" Changes span to the values of the l.@Z and right markers.
60 END
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.
If an active marker is not on the screen, MKD positions an active marker at center screen. If a
delta marker is not on the screen, MKD places one at the specified frequency, or at the current
active marker. If the active marker is in amplitude mode, the delta marker is placed at the
same amplitude as the active marker (or a specified value).
To read the amplitude, use MKA?. ‘lb read the frequency, use MKF? The results are displayed
on the spectrum analyzer screen.
In linear mode, MKD computes the ratio of the amplitudes of the active and delta markers
rather than the difference. This results in similar treatment for logarithmic and linear data
because the delta of the difference of two logarithmically generated numbers results in the
logarithmically generated value of the ratio of the two numbers. (You should not change
amplitude units when making a marker delta measurement, however.)
Syntax
norma I
XMKDLMODE
Example
OUTPUT 718;"MOV MKTBL,l;" Turns on the marker table.
OUTPUT 718;"DL -20;" Sets the display line.
OUTPUT 718;"MOV MKDLMODE,l;" Displays the marker amplitudes values relative to the
display line.
Description
If MKDLMODE is set to 0, the spectrum analyzer displays absolute marker amplitudes or
marker delta amplitudes (normal mode). If MKDLMODE is set to 1, the spectrum analyzer
displays the marker amplitudes relative to the display line (delta mode). Setting MKDLMODE to
1 turns on the display line automatically. Use the DL command to place the display line.
MKDLMODE determines the way the marker amplitudes are displayed in the marker table only,
it does not change the marker amplitude values that are returned remotely.
You can execute the MKDLMODE command two different ways. You can either execute the
MKDLMODE command directly (for example, "MKDLMODE 1; I’) or use the MOV command to
move the 1 or 0 into the MKDLMODE command (for example, "MOV MKDLMODE,l;"). If you use
the MOV command, no text is displayed in the active function area during command execution.
Query Response
de t a
OMKDLMODE
Syntax
\
HZ
/
KHZ
MHZ
GHZ
&-;
+F--) . . .
<X-).,’
Example
OUTPUT 718;"MKF GOOMHZ;" Places an active marker at 600 MHz.
Description
In nonzero frequency spans, MKF returns the active marker frequency as a real number when
MKF is queried. In zero span, “MKF?; ” returns the time value.
The data that is returned by MKF depends on many command conditions, including TDF,
MKREAD, and MDS.
MKF results with TDF set to P: If the trace data format P is used with MKF, the result is one
real value in time units or frequency units, depending on MKREAD.
Example
OUTPUT 718;"TDF P;MKREAD FRQ;MKF?;" This returns a frequency value (in Hz) if not in
zero-span.
OUTPUT 718;"TDF P;MKREAD FRQ;MKF?;" This returns a time value (in seconds) if in mo-
span.
OUTPUT 718;"TDF P;MKREAD PER;MKF?;" This returns the time value (in seconds) of l/(mrker
frequen4.d.
OUTPUT 718;"TDF P;MKREAD SWT;MKF?;" This returns the marker time value (in seconds).
OUTPUT 718;"TDF P;MKREAD IST;MKF?;" This returns the frequency value (in Hz) for
l/(m.arker time).
OUTPUT 718;"TDF P;MKREAD FFT;MKF?;" This returns the frequency value (in Hz).
MKF results with TDF set to A or I: 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;MKF?;" Returns one byte representing the marker position.
OUTPUT 718;"TDF A;MDS W;MKF?;" Returns two bytes in a binary word format that has a
value from 1 to 401.
Using the trace data format I is equivalent to the TDF A format.
MKF results with TDF set to M: 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.
Example
OUTPUT 718;"TDF M;MKF?;" Returns marker horimntal position value in ASCII.
Query Response
Syntax
Example
OUTPUT 718 ; "MKFC ON ; ” Turns on the wmrker counts
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
Example
OUTPUT 718;"MKFCR IOKHZ;" Sets the marker counter resolution to 10 kHz.
OUTPUT 718;"MKFCR?;" Queries the marker counter resolution.
ENTER 718;A Gets the query response.
DISP A LXspla ys the marker counter resolution.
Description
Executing either “MKFCR 0;” or “MKFCR AUTO; n auto-couples the marker counter resolution
to the frequency span.
Query Response
MKMIN
Marker Minimum
Moves the active marker to the minimum value detected.
Syntax
Example
10 OUTPUT 718;"IP;SNGLS;" Initializes spectrum analym activates
single-sweep mode.
20 INPUT "ENTER IN THE START FREqUENCY,
IN MHZ",Start,freq
30 INPUT "ENTER IN THE STOP FREQUENCY,
IN MHZ",Stop,freq
40 OUTPUT 718;"FA ";Start-freq;"MHZ" Sets the start frequency.
50 OUTPUT 718;"FB ";Stop,freq;"MHZ" Sets the stop frequency.
60 OUTPUT 718;"TS;MKPK HI;MKD;MKMIN;MKF?;" Updates trace, jinds trace peak, turns on
marker delta function, jinds the mini-
mum value of trace, and return the fre-
quency delta.
70 ENTER 718;Delta-freq Gets the result from spectrum analyzer
80 PRINT "DIFFERENCE IN FREqUENCY IS ",
Delta-freq,"HZ"
90 END
Syntax
MKN
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 an-
alyzer 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.
60 PRINT "PLACE MARKER ON THE DESIRED SIGNAL"
70 PRINT "PRESS HOLD THEN PRESS CONTINUE"
80 PAUSE
90 OUTPUT 718*"MKN'-"
# *, Gets the freqwnc y of the
marker:
100 ENTER 718;Mkr Puts thefrequency value
into the computer vari-
ab& Mkr:
110 PRINT "MARKER FREQUENCY IS ",Mkr,"Hz" Prints the result.
120 END
Description
In nonzero span, “MKN?;” returns the frequency value. In zero span, “MKN?;” returns the time
value.
Query Response
Syntax
Example
OUTPUT 718;"IP;CF 300MHZ;SNGLS;" Initializes spectrum an&y- changes cen-
ter frequency, activates single-sweep mode.
OUTPUT 718;"SP 1OMHZ;DET SMP;TS;" Changes span, activates sample detecto?
updates trace.
OUTPUT 718;"MKPK HI;MKA?;" Places marker on highest point of trace,
queries marker amplitude.
ENTER 718;Amp-one Pats the spectrum analyzer response in the
computer variable, Amp-one.
OUTPUT 718;"MKD UP;UP;MKNOISE ON;MKA?;" Moves marker and turns on the marker
noise function.
ENTER 718;Amp,two Puts the spectrum analyzer response in the
computer variable, Amp-two.
OUTPUT 718;"MKNOISE OFF;" Turns ofl the marker noise fin&ion.
DISP Amp-two Displays the result.
C-to,n=Amp-one - Amp-two Calculates the carrier to noise ratio.
PRINT "CARRIER TO NOISE RATIO IN 1 HZ
BANDWIDTH IS ";C-to-n Outputs result.
PRINT ' DB"
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. Note that the data values averaged are not exactly symmetrical with
respect to marker position. At the trace end points, the spectrum analyzer uses the nearest 32
data values. So while the marker may be moved to trace position 1 to 15, the actual amplitude
value returned will be the same value for any marker position from 1 to 15. A similar situation
applies for markers at the end of the trace.
A nominal correction for equivalent noise bandwidths is made by the firmware based on a
nominal 3 dB resolution bandwidth. The firmware assumes the noise bandwidth is 1.12 times
the resolution bandwidth. This means the shape of the resolution bandwidth filters cause the
noise power to be overstated by 1.12 times. The detection mode also affects the measurement.
If in log mode, the log detector understates the noise response. lb compensate, 2.5 dB is
added to the measurement. If the detector is in linear mode, the firmware uses 1.05 dB as a
correction value.
In log detector mode, the final reported value will then be, with the result reported in dBm in a
l-Hz bandwidth:
(Averaged value over 32 values) - 10 x (log[1.12 x Resolution bandwidth]) + 2.5 dB
In linear detector mode (dBm) units, the final reported value will then be, with the result
reported in dBm in a l-Hz bandwidth:
(Averaged value over 32 values) - 10 x (log[1.12 x Resolution bandwidth]) + 1.05 dB
In linear detector mode with the normal display of voltage units, the noise marker voltage
value will be related to the present marker voltage by this relation.
(V-noise-marker)2 = (V-average)’ x 1.12 x Resolution bandwidth x 0.7824
V-noise-marker = V-average/( 1.12 x Resolution bandwidth x 0.7824)“.5
V-noise-marker = V-average x l.O6633/(Resolution bandwidth)0.5
Query Response
o u t p u t
ON t e r m i n a t i o n +
OFF
002
Syntax
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
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 v a r i a b l e
b u s e r - d e f i n e d v a r i a b l e /
% p r e d e f i n e d f u n c t i o n /
b t r a c e e l e m e n t
J
XMKP
Example
OUTPUT 718;"IP;" Initializes spectrum analyzer:
OUTPUT 718;"MKP 100;" Mioves the active marker to a element 100 of trace A.
Description
If no marker is active, the marker is turned on with preset type (position) and marker is placed
at the given screen position. The marker is placed on the first displayed trace that is found (in
order): trace A, trace B, or trace C.
If the marker delta mode is active, the value of the marker position is relative to the fixed
marker, and therefore MKP can return a negative position.
Note that MKP and MKCF commands perform different functions. MKCF sets the center
frequency equal to the marker frequency and moves the marker to the center of the screen.
MKP places the marker to the position of the element specified.
Query Response
o u t p u t
t e r m i n a t i o n ---)
MKPAUSE
Marker Pause
Pauses the sweep at the active marker for the duration of the delay period.
Syntax
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.
Related Commands: DEMOD, MKA, MKF, MKFC, MKN, MKOFF, ST.
Example
OUTPUT 718;"MKPAUSE IOSC;" Changes the marker pause time to 10 seconds.
Description
To turn MKPAUSE off, turn off markers or send “MKPAUSE 0;“.
The MKPAUSE command requires a sweep time of 50 ms or longer. The sweep time is changed
to 50 ms if MKPAUSE is used with a sweep time that is less than 50 ms.
After MKPAUSE is executed, the sweep must be completed before another command will be
executed.
Query Response
output
t e r m i n a t i o n +
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 [PEAK SEARCH].
Example
10 OUTPUT 718;"IP;" Initializes the spectrum analyzer:
20 OUTPUT 718;"SNGLS;TS;MKPK HI;" Places active marker on highest peak.
30 OUTPUT 718;"MKA?;" Returns amplitude value of marker to the computer
40 ENTER 718;A Puts the spectrum analyzer response in the com-
puter variable, A.
50 DISP A tiplays amplitude value.
60 END
Description
Executing MKPK HI, or simply MKPK, positions the active marker at the highest signal
detected. If an active marker is on the screen, the MKPK parameters move the marker as
follows:
HI (highest) moves the active marker to the highest peak.
NH (next highest) moves the active marker to the next signal peak of lower amplitude.
NR (next right) moves the active marker to the next signal peak of higher frequency.
NL (next left) moves the active marker to the next signal peak of lower frequency.
Note This function is for use with the frequency markers only.
Syntax
7 ompl itude v a l u e 7
DE
Example
10 OUTPUT 718;"IP;CF 300MHZ;SP IGHZ;" Initializes spectrum anulym
changes start and stop frequencies.
20 INPUT "ENTER IN PEAK EXCURSION, IN DB ",Excursion
30 OUTPUT 718;"MKPX ";Excursion;"DB;" Changes peak excursion level.
40 OUTPUT 718;"TS;MKPK HI;MKPK NH;" Searches for highest peaks
of trace.
50 OUTPUT 718;"MKF?;" Finds frequency d&@rvnce
between peaks.
60 ENTER 718;Freq Puts the spectrum analyzer
response in the computer
variable, Req.
70 IF Freq <> 0 THEN Outputs results if marker
amplitude was not 0.
80 PRINT "PEAK FOUND"
90 ELSE Prints “NO PEAKS FOUND”
if Freq = 0.
100 PRINT "NO PEAKS FOUND"
110 END IF
120 END
Query Response
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.
Example
OUTPUT 718;"MKREAD FFT;"
Description
The MKREAD command can select the following types of active trace information:
=Q frequency
SWT sweep time
IST inverse sweep time
PER period
FFT Fast Fourier Transform Readout
The results of the data depend on the MKREAD parameter, the frequency span, and if the
marker delta function is used.
FRQ Reads frequency Reads delta frequency Reads time Reads delta time
SWT Reads time since Reads delta time Waveform Waveform measurements of
the start of sweep between end points measurements of detected modulation
detected modulation
Query Response
QMKREAD
Syntax
MKRL
Example
10 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;" Initializes spectrum an&y- changes
center frequency and span.
20 OUTPUT 718;"TS;MKPK HI;MKRL;TS;" Places a marker on trace peak,
sets the reference level to the am-
plitude of the active markq up-
dates the sweep.
30 OUTPUT 718;"RL?;" Gets the reference level.
40 ENTER 718 USING "K";Ref-level Puts the spectrum analyzer re-
sponse in the computer variable,
&fLkvel.
50 OUTPUT 718;"AUNITS?;" Gets the current amplitude units.
60 ENTER 718;Aunits$
50 PRINT "REFERENCE LEVEL IS",Ref-level,Aunits$
60 END
MKSP
Marker to Span
Sets the start and stop frequencies to the values of the delta markers.
Syntax
MKSP
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer
20 OUTPUT 718*"MKMIN-" Places a marker at the minimum amplitude of trace.
30 OUTPUT 718;"MKD;"' Activates marker delta.
40 OUTPUT 718;"MKPK HI;" Places marker at highest amplitude of trace.
50 OUTPUT 718;"MKSP;" Changes span to the values of the left and right markers.
60 END
Description
The left marker specifies start frequency, and the right marker specifies stop frequency. If MKD
is off, no operation is performed.
Syntax
MKSS
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;" Initializes spectrum an-
alym activates single-
sweep mode, changes cen-
ter frequency and span,
updates trace.
30 OUTPUT 718;"MKPK HI;MKSS;MKD;CF UP;TS;MKPK HI;" Places the marker on the
highest point of the trace,
changes the step size to
the marker frequency, ac-
tivates marker delta, in-
crease center frequency,
update trace, places the
marker at highest point
of the trace.
40 OUTPUT 718;"MKA?;" Gets the amplitude of the
marker:
50 ENTER 718;Delta,amp Puts the spectrum ana-
lyzer response in the com-
puter variable, Delta-Amp.
, 9 *
60 OUTPUT 718."MKF'." Gets the frequency of the
marker:
70 ENTER 718;Delta-freq Puts the spectrum ana-
lyzer response in the com-
puter variable, Deltafreq.
80 PRINT "DIFFERENCE IN AMPLITUDE IS ",Delta,amp,"dB"
90 PRINT "DIFFERENCE IN FREQUENCY IS ",Delta,freq,"Hz"
100 END
Description
Sets the center-frequency step-size equal to the marker frequency. If in the delta mode, the
step size is set to the delta frequency (absolute value).
MKSTOP
Marker Stop
Stops the sweep at the active marker.
Syntax
Example
10 OUTPUT 718;"IP;TS;" Initializes spectrum analyzer
20 OUTPUT 718;"MKPK HI;" Creates an active marker:
30 OUTPUT 718;"MKSTOP;" Stops sweep at markex
40 OUTPUT 718;"MKCONT;" Resumes sweep.
50 END
Syntax
t a b l e
7 o f f -
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. The marker table displays the following information about the on-screen markers: the
trace (trace A, B, or C) on which the marker is located, the type of marker (frequency, time,
inverse sweep time, or period), the frequency or time of the marker, and the amplitude of the
marker. While the marker table is turned on, the marker table data is updated at the end of
every sweep, or whenever a marker is moved. (MKTBL command uses the ONMKRU command
to update the marker table information).
The marker table is displayed on the spectrum analyzer display only. To obtain the information
that is displayed in the marker table remotely, you must use the following programming
commands.
H Use MKACT to select a marker. Use the MKACTV command makes the selected marker the
active function.
H Use MKA? to determine the amplitude of a marker.
n Use MKF? to determine the frequency or time of a marker.
n Use MKREAD? to determine the type of marker.
n Use MKTRACE? to determine which trace the marker is located on.
Query Response
table
r off 7
output
0 ’ t e r m i n a t i o n +
table
qMKTBL
Syntax
XMKTRACE
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer
20 OUTPUT 718 *“MKMIN*” Finds the lowest amplitude of trace.
30 OUTPUT 718;"MKTRAbE TRB;" Moves marker to corresponding position on
trace B
40 OUTPUT 718;"BLANK TRA;CLRW TRB;" Blanks trace A and displays trace B
50 END
Query Response
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
Example
OUTPUT 718;"IP;" Initializes spectrum analy2ef.x
OUTPUT 718;"CF 300MHZ;TS;" Changes the center flequenc y.
OUTPUT 718;"MKTRACK ON;" Activates the marker track.
OUTPUT 718;"SP 10MHZ;TS;" Changes the span.
OUTPUT 718;"MKTRACK OFF;" Turns of the marker track.
Description
To keep a drifting signal at center screen, place the active marker on the desired signal before
turning on MKTRACK.
Query Response
QO2
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.
AMP allows markers to be positioned according to amplitude, as shown in the example. If
two or more points on the trace are at the same amplitude, the marker is moved to the
closest point on the trace with the correct amplitude. If no point on the trace is at the
specified amplitude, the marker is placed at the specified amplitude and not on the trace.
FIXED allows a marker to be placed at any fixed point on the spectrum analyzer screen. The
position of the marker cannot be changed unless another marker type is used.
Use “MKTYPE PSN” to return from using the AMP, FIXED, or DELTA types.
Query Response
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
Example
OUTPUT 7 18# * “ML -4ODM 9* ” As the reference level is changed, the coupled input
attenuator is changed automaticall@ This limits the
maximum signal at the mixvr input to -40 d&n for
signals less than or equal to the reference level.
Description
The ML command specifies the maximum signal level that is applied to the input mixer for a
signal that is equal to or below the reference level.
The effective mixer level is equal to the reference level minus the input attenuator setting.
When ML is activated, the effective mixer level can be set from -10 dBm to -60 dBm in 10 dB
steps.
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 t r a c e /
b trace range /
b p r e d e f i n e d v a r i a b l e I
buser-defined variable/
XMOO
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: DIV.
Example
10 OUTPUT 718;"VARDEF S_ONE,l5;" Places 15 into S-ONE.
20 OUTPUT 718;"VARDEF S_TW0,4;" Places 4 into S-TWO.
30 OUTPUT 718;"VARDEF D,EST,O;" D-EST holds the result.
40 OUTPUT 718;"MOD D,EST,S-ONE,S-TWO;"
50 OUTPUT 718;"D_EST?;" Moves the result to the computer:
60 ENTER 718;Number Puts the spectrum analyzer response
in the computer variable, Number:
70 DISP Number Displays a 3.
80 END
Description
If source 1 is a negative number and source 2 is a positive number, the MOD function returns
a negative remainder. If both sources are negative, the MOD function returns a negative
remainder.
Integer values are used when a trace is the destination or one of the sources. If trace data is
used as the source and the destination, the MOD function is done with 32-bit arithmetic using
16-bit integer data. If a user-defined variable or predefined variable is used as the source or
destination, the MOD function is done in floating point format. If a real number is used as a
source, but the destination is an integer value, the result is truncated. If a trace is used as
a source, be sure the trace contains a complete sweep of measurement information before
executing MOD.
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.
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. If a program (also called
a downloadable program or personality) has been loaded into the spectrum analyzer’s memory,
and the spectrum analyzer is using the personality mode, the number that is returned by MODE
may be modified.
Query Response
Syntax
7 d e s t i n a t i o n
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF when
using a user-defined variable.
Example
10 CLEAR 718 Clears the HP-IB bus and spectrum analyzxx
20 OUTPUT718.“IP-” Initializes spectrum analyzer
30 OUTPUT7181”FA’lOOMHZ;FB 1100MHZ;” Sets up the measurement range.
40 OUTPUT 718;“TS;MKPK HI;” Places a marker at the highest peak.
50 OUTPUT 718; “DL ON; ” Turns on display line.
60 OUTPUT 718;“MOV DL,MKA;” 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.
70 END
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.
Syntax
7 d e s t i n a t i o n -
h u s e r - d e f i n e d t r a c e /
b t r a c e range /
b p r e d e f i n e d v a r i a b l e I
buuser-defined variable)
h u s e r - d e f i n e d t r a c e /
b t r a c e range
h p r e d e f i n e d v a r i a b l e predefined variable
u s e r - d e f i n e d v a r i a b l e
predefined function
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF when
using a user-defined variable. TS when using trace data.
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. When the source
is shorter than the destination, the last element is repeated to fill the destination.
Syntax
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. fir the HP 859OL
or HP 859ZL only: Your spectrum analyzer must have Option 003 installed in it to select the
memory card as the mass storage device.
If MS1 is used as a predefined variable, it returns a “0” if the mass storage device is the
spectrum analyzer memory and a “ 1” if it is the memory card.
Query Response
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
J
1 L&xl. -----
User-defined trace A trace defined by the TRDEF command. Any valid trace name.
User-defined variable A variable defined by VARDEF or ACTDEF commands. Any valid variable
name.
Predeflned variable A command that acts as a variable. Refer to Table 5-l.
Predefined function Function that returns a value. Refer to Table 5-1.
Trace range A segment of trace A, trace B, trace C, or a user-defined trace.
Number Any real or integer number. Real number range.
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: MIN, PKPOS, TS.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer
20 OUTPUT 718;"CF 300MHZ;SNGLS;" Changes the centerfrequency and activate single-
sweep mode.
30 OUTPUT 718;"TS;VIEW TRA;" Updates trace. Displays and stores the results of
trace A.
40 OUTPUT 718;"MXM TRB,TRA,4000;" Moves elements of trace A that exceed 4OUO trace
data points (above center screen) to trace B
50 OUTPUT 718;"BLANK TRA;VIEW TRB;" Displays result.
60 END
Description
If one of the sources is a single value, it acts as a threshold; all values equal to or greater than
the threshold pass to the destination.
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.
MXMH
Maximum Hold
Updates each trace element with the maximum level detected.
Syntax
MXMH
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.
Syntax
XM4
Example
OUTPUT718;“M4;”
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.
Query Response
Syntax
dB f r o m
XNDB
Example
OUTPUT 718;"MOV NDBPNT,l;" lkns on the N dB points masurmt.
OUTPUT 718;"NDB -6DB;" Sets the N dB points masurernent to measure 6 dB below
the signal’s peak.
OUTPUT 718;"NDBPNTR?;" Queries NDBPNTR. NDBPNTR contains the rneasurenzent
results of the N dB points measurement.
ENTER 718;Six Stores the result in the variable Six.
Description
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. The
highest on-screen signal must be greater than the peak excursion above the current threshold,
but the N dB points may fall below the threshold.
Query Response
dB f r o m
/ peak \
o u t p u t
t e r m i n a t i o n +
NDBPNT
N dB Points
Turns on or off the N dB points function.
Syntax
XNDBPNT
Example
This example finds the shape factor of a signal.
OUTPUT 718;"MOV NDBPNT,l;" Turns on the N dB points
measurement.
OUTPUT 718;"NDB -6DB;" Sets the N dB points mea-
surW to wmxsure 6 dB
below the sign& !s peak.
OUTPUT 718."NDBPNTR'*"
, -, Queries NDBPNTR. NDBPNTR
contains the wzmsurernent re-
sults of the N dBpoints mmsurement.
ENTER 718;Six Stores the result in the vari-
able Six.
OUTPUT 718;"NDB -6ODB;" Sets the N dB points rnea-
surernent to measure 60 dB
below the signal’s peak.
OUTPUT 718;"NDBPNTR?;" Queries NDBPNTR.
ENTER 718;Sixty Stores the result in the vari-
able Sixty.
IF Six 0 -100 AND Sixty <> -100 THEN If both the rneasurernmt at
-6dBand-60dBweremlid,
print the shape factor of the
signal.
PRINT "Shape factor is ",Sixty/Six Prints the shape factor of the
signal.
ELSE Cfthe bandwidth at -6 dB or
-60 dB could not be found,
an error statement isprinted.
PRINT "Error, bandwidth could not be determined"
END IF
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. The N dB points measurement is repeated at the end of every
sweep (NDBPNT uses the ONEOS command to update the measurement data) until you turn off
the N dB points measurement. To determine the bandwidth measured by NDBPNT, you must
query NDBPNTR.
To be able to measure a signal with NDBPNT, there must be an on-screen signal that is greater
than the peak excursion (see “MKPX” for more information about the peak excursion) above
the threshold, and there cannot be any other signals with amplitudes within N dB of the peak
of the highest signal. If a signal cannot be found or there is more than one signal within the
value of NDB of the highest signal, the value of NDBPNTR will be -100.
You can execute the NDBPNT command two different ways. You can either execute the
NDBPNT command directly (for example, “NDBPNT 1; ‘I) or use the MOV command to move
the 1 or 0 into the NDBPNT command (for example, “MOV NDBPNT, 1; ‘I). If you use the MOV
command, no text is displayed in the active function area during command execution.
Restrictions
Turning on the NDBPNT function turns off the following functions: windows display mode
(WINON), the FFT menu measurements (FFTAUTO, FFTCONTS, FFTSNGLS), gate utility
functions (GDRVUTIL), TO1 measurement (TOI), marker table (MKTBL), peak table (PKTBL),
percent AM (PCTAM), peak zoom (PKZOOM), and power menu measurements (ACP, ACPE, CHP,
and OBW).
You should turn off the N dB points measurement (set NDBPNT to 0) when you are done with
the N dB points measurement.
Query Response
r Off 7
0 o u t p u t
’ t e r m i n a t i o n +
1” f
QNDBPNl
NDBPNTR
N dB Points Bandwidth
Returns the bandwidth measured by the N dB points measurement (NDBPT).
Syntax
NDBPNTR
Example
OUTPUT 718;"MOV NDBPNT,l;" Turns on the N dB points measurement.
OUTPUT 718;"NDB -6DB;" Sets the N dB points measurement to mmsure 6 dB below
the signal’s peak.
OUTPUT 718;"NDBPNTR?;" Queries NDBPNTR. NDBPNTR contains the measurement
results of the N dB points measurement.
ENTER 718;Six Stores the result in the variable Six.
Description
NDBPNTR returns a -100 if the NDBPNT function has not been turned on, or if NDBPNT did
not find a signal to measure. (For NDBPNT to be able to measure a signal, there must be an
on-screen signal that is greater than the peak excursion above the threshold, and there cannot
be any other signals with amplitudes that are within N dB of the peak of the highest signal.)
Query Response
b o n d w i d t h
’
output
t e r m i n a t i o n +
Syntax
I t e m Description/Default I Range
Number Any real or integer number. Default unit is dBm.
Example
10 OUTPUT 718*"IP*" Initializes spectrum anal2/2er
20 OUTPUT 718;"SRCPWR -1ODB;" Sets tracking generator output.
30 PRINT "CONNECT TRACKING GENERATOR OUTPUT TO INPUT"
40 PRINT "THEN PRESS CONTINUE"
50 PAUSE
60 OUTPUT 718;"MEASURE SR;" Sets the measurement mode
to stimulus-response.
70 OUTPUT 718;"CLRW TRB;TS;" lbkes a measurement sweep
of thejlatness of the system.
80 OUTPUT 718;"BLANK TRB;"
so PRINT "CONNECT DEVICE TO ANALYZER"
100 PRINT "THEN PRESS CONTINUE"
110 PAUSE
120 OUTPUT 718;"CLRW TRA;TS;" Zxkes a mxxzsurement sweep
of the device under test in
the system.
130 OUTPUT 718;"AMBPL ON;" Normalizes the response.
140 OUTPUT 718;"RLPOS 4;" Changes the location of the
reference level to thefourth
graticule from the bottom.
150 OUTPUT 718;"NRL 40DB;" Oflsets trace A so it is on-
screen.
160 END
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. In normalized mode (relative
power or dB-measurement mode), NRL offsets the trace data on-screen and does not affect the
instrument gain or attenuation settings. This allows the displayed normalized trace to be moved
without decreasing the measurement accuracy due to changes in gain or RF attenuation. If the
measurement range must be changed to bring trace data on-screen, then the range level should
be adjusted. Adjusting the range-level normalized mode has the same effect on the instrument
settings as does reference level in absolute power mode (normalize off).
Query Response
Syntax
Example
10 OUTPUT 718;"ST 3SC;OA;" Changes the sweep time, activates the OA command.
20 ENTER 718;Number Gets the response from the spectrum analyzer
30 DISP Number LIispkqys “3” on the computer screen.
40 END
Query Response
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
Example
OUTPUT 718*"OBW*"
9 >
Description
OBW measures the power bandwidth of the measured spectrum based on the value of occupied
bandwidth percent (OBWPCT). OBW also measures transmit frequency error (the difference
between the center frequency and the midpoint of the percent occupied bandwidth), and the
total power of the occupied bandwidth. OBW performs the measurement using the value for
channel spacing (ACPSP).
To use OBW:
1. Set the center frequency to the carrier’s frequency.
2. For best accuracy, set the reference level so that the carrier signal peak is within the first
(top) division of the screen graticule.
3. Select the channel spacing with the ACPSP command.
4. If you want the spectrum analyzer settings to be set automatically, ensure that ACPPAR is
set to 1. If you want to set the spectrum analyzer settings manually, set ACPPAR to 0. See
“ACPPAR” for more information about selecting the spectrum analyzer settings manually.
5. If the spectrum analyzer is in the continuous-sweep mode, use the single sweep command
(SNGLS) to select the single-sweep mode.
6. Execute the OBW command.
7. Query OBWBW, OBWLOWER, OBWUPPER, OBWFERR, and OBWPWR variables for the
numeric results of the OBW measurement. See the following table for more information
about these variables.
8. Query trace A (TRA) for the trace results of the OBW measurement.
Measurement Results: The results of the OBW command are stored in the variables and trace
in the following table.
Restrictions
Executing OBW turns off the following functions: windows display mode (WINON), N dB point
measurement (NDBPNT), the FFI’ menu measurements (FFIAUTO, FFTCONTS, FFTSNGLS),
gate utility functions (GDRVUTIL), TO1 measurement (TOI), marker table (MKTBL), peak table
(PKTBL), percent AM (PCTAM), and peak zoom (PKZOOM).
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+
Example
OUTPUT 718;“MOV OBWPCT,SO;” Sets the occupied bandwidth percent to 50%.
OUTPUT 718; “OBW; ” I+yforms the occupied bandwidth wteasurement.
Description
Once you enter a value into OBWPCT, that value is retained until you change it, or execute
DISPOSE ALL. Pressing (j-1 or turning the spectrum analyzer off does not change the
value of OBWPCT.
You can execute the OBWPCT command two different ways. You can either execute the
OBWPCT command directly (for example, “OBWPCT 50 ; I’) or use the MOV command to move
the value into the OBWPCT command (for example, “MOV OBWPCT ,50 ; ‘I). If you use the MOV
command, no text is displayed in the active function area during command execution.
Query Response
/ p e r c e n t ,
o u t p u t
terminot ion --*
Syntax
Example
10 DIM Learn-String$ [202] Allocates rn-ewmy space for the Learnd3Ping.
20 OUTPUT 718 ; “OL ; ” Asks for first state.
30 ENTER 718 USING ‘I# ,202A”; LEARN-STRINGS Computer receives the irlformation.
40 DISP “CHANGE ANALYZER TO ANOTHER STATE,
THEN CONTINUE TO RESTORE FIRST STATE;”
50 PAUSE
60 OUTPUT 718; LEARN-STRING$ Returns the spectrum analyzer to its for-
mer state (when OL was first activated
in line 20).
70 END
Description
The information received from the spectrum analyzer is called the learn string. The learn string
can be sent from the controller back to the spectrum analyzer to restore the spectrum analyzer
to its original state.
The learn string requires 202 bytes of storage space. See “Saving and Recalling Instrument
States, n in Chapter 3 for more information.
To restore the spectrum analyzer to the learn string state, you must return the learn string to
the spectrum analyzer. The learn string contains information to tell the spectrum analyzer that
it is learn string data. (Also see “RCLS” and “SAVES.“)
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
Related Commands: CAT, DISPOSE, ERASE, IP, ONDELAY, ONEOS, ONMKR, ONSRQ,
ONSWP, ONTIME.
Example
OUTPUT718;"ONCYCLE 86400,!MKPK HI;!;" Places a marker on the highest signal peak
everg 24 hours (86,400 equals 24 hours x 60
minutes x 60 seconds).
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.
Clearing the ONCYCLJZ definition: IP clears the ONCYCLE definition. You can use the
DISPOSE command to clear the ONCYCLE definition also.
Query Response
t ime
#A msb length
output
a n a l y z e r command terminot ion ä
OONCYCLE
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
Related Commands: CAT, DISPOSE, ERASE, IP, ONCYCLE, ONEOS, ONMKR, ONSRQ,
ONSWP, ONTIME.
Example
OUTPUT 718;"ONDELAY 000030,!CF 1.2GHZ;!;" Changes the center frequency after 30
seconds.
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.
Query Response
t i m e l e f t
u n t i l e v e n t
/ \
# A m s b l e n g t h I s b l e n g t h
QONDELAY
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 f i e l d 7
A - b l o c k d a t a f i e l d
l - b l o c k d a t a f i e l d
a n a l y z e r comnond character 6% E O I
Example
OUTPUT 718;"ONEOS!CF IOOMHZ;!" Center frequemg is changed at the end of the 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. The I-block data field is used when the length of the
character data is unknown. The I-block data field is available for HP-IB interface only.
Clearing the ONEOS definition: IP clears the ONEOS definition. You can use the DISPOSE
command to clear the ONEOS definition also.
Query Response
kt output
termination
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 comnand
Related Commands: CAT, DISPOSE, ERASE, IP, ONCYCLE, ONDELAY, ONEOS, ONSRQ,
ONSWP, ONTIME.
Restrictions: Not available with Analog+ display mode. See “ANLGPLUS” for more
information.
Example
OUTPUT 718;"ONMKR !PU,PA 100,lOO;TEXTQCONNECT CAL The text is displayed on the
OUT TO INPUTQ;!;" spectrum analyzer screen when
the sweep reaches the marker
position.
Description
The ONMKR command performs the list of spectrum analyzer commands when the sweep
reaches the marker. The sweep resumes after the list of spectrum analyzer commands is
executed, provided the list of spectrum analyzer commands does not halt execution.
Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
Clearing the ONMKR definition: IP clears the ONMKR definition. You can use the DISPOSE
command to clear the ONMKR definition also.
Query Response
43 output
termination
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 -
Example
The following example uses ONMKRU to display the marker's amplitude in watts.
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. Executing any of the marker
commands (for example, MKA, MKF, or MKNOISE) also executes the function.
Restrictions: The user-defined function should not include a take sweep (TS).
Clearing the ONMKRU definition: IP clears the ONMKRU definition. You can use the
DISPOSE command to clear the ONMKRU definition also.
Query Response
< #A
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.
Description
Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
Clearing the ONPWRUP definition: DISPOSE.
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
Related Commands: CAT, DISPOSE, ERASE, IP, ONDELAY, ONEOS, ONMKR, ONSWP,
ONTIME, SRQ.
Example
OUTPUT 718;"ONSRQ !PU;PA 100,lOO;TEXT QSRQ OCCURRED@; !;” “SRQOCCURRED”isdis-
played on the spectrum
analyzer screen if an SRQ
is encountered.
Description
Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
Clearing the ONSRQ definition: IP clears the ONSRQ definition. You can use the DISPOSE
command to clear the ONSRQ definition also.
Query Response
< #A a n a l y z e r comnand
OONSRO
Syntax
r /
r s t r i n g d a t a f i e l d 7
/ A - b l o c k d a t a 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
Related Commands: CAT, DISPOSE, ERASE, IP, ONDELAY, ONEOS, ONMKR, ONSRQ,
ONSWP.
Example
OUTPUT 718;"0NSWP!CF IOOMHZ;!" The center frequency is changed to 100 iW%z at the
beginning of the 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. The msb length and lsb length
represent the length of the character data. The #I, character data, and EOI (END) form an
I-block data field. The I-block data field is used when the length of the character data is
unknown. The I-block data field is available for the HP-IB interface only.
Clearing the ONSWP definition: IP clears the ONSWP definition. You can use the DISPOSE
command to clear the ONSWP definition also.
Query Response
QONSWP
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
/- yeor -1 , - m o n t h -,
- day \
d i g i t d i g i t d i g i t d i g i t
d i g i t d i g i t d i g i t d i g i t
#A msb length
OONT I ME
Syntax
C OP
Example
10 DIM A$[201 Allocates memory space for result.
30 OUTPUT 718 ,* “OP’* 9* ” Gets the lower-kfl and the upper-right coordinates of the spectrum
analyzer display.
40 ENTER 718;A$ Moves result to the computex
50 DISP A$ Dkplays the result.
60 END
Description
The values returned represent x and y screen coordinates of the spectrum analyzer display.
The screen coordinates designate the total on-screen area. The values returned are the
minimum x coordinate, the minimum y coordinate, the maximum x coordinate, and the
maximum y coordinate.
Query Response
output
termination +
‘2OP
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 variable N’
user-defined variable I
trace element
-
f /
/ output doto \
- predefined variable
user-defined variable /
trace element
delimiter
xoutput
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. The ENTER command is then used to receive the coordinates from
the plotter. Program lines 110 to 140 display the coordinates on the spectrum analyzer screen.
Softkey 1 is programmed to display the plotter coordinates. Softkey 1 can be accessed by
pressing (j-1, IJser Menus .
Description
Use OUTPUT to send data or instructions to an HP-IB device using the following output
formats.
K Outputs in free-field ASCII format with no terminator.
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.
F Outputs an ASCII number with the field width and decimal places specified. For
example, a number displayed as 13.3 has a field width of 13 and a decimal place
of three. If a “C” follows the ASCII number, a carriage return and line feed will
terminate the output.
Because HP-IB allows only one controller on the HP-IB, OUTPUT must be synchronized with a
controller operation or else incorporated into user-defined functions that are executed with
softkeys when the spectrum analyzer is under manual control. If another controller is detected
on the HP-IB, the OUTPUT function is aborted.
Execute RELHPIB (RELEASE HP-IB) to discontinue spectrum analyzer control of HP-IB.
Syntax
x Y
coordinate coordinate
/ \ / \
number
XPA
Related Commands: CLRDSP, DSPLY, TEXT, PD, PLOT, PR, PRINT, PU.
Example
OUTPUT 718;"IP;BLANK TRA;" Initializes the spectrum analyzer and blanks
trace A.
OUTPUT 718;"ANNOT 0FF;GRAT OFF;" Clears the spectrum analyzer screen.
OUTPUT 718;"PU;" Fen up.
OUTPUT 718;"PA 100,100;PD 100,150;" PU and PA commands prevent an initial
vector from being drawn before the pen is
positioned at (100, 100). PD draws a vector
to (loo, 150).
OUTPUT 718;"150,150,150,100,100;" Draws the last three sides of the rectangle.
Description
The vector is drawn on the screen if the pen-down (PD) command is in effect. If the pen-up
(PU) command is in effect, the vector does not appear on the screen.
Display units are the scaling units of the spectrum analyzer display for on screen graphics
commands such as PA or PR. One display unit is the distance between two points along an the
x or Q axis. For the HP 8590 Series spectrum analyzer, there are a maximum of 511 display
units (-40 to 471) along the x axis and 255 display units (-22 to 233) along the y axis. See
Figure 5-8.
ATTEN 1 0 dG
SThRT
I
FREQ
3 . 2 5 0 GHz I
STOP
FREQ
I
CF STEP
aulp M A N
I
FREQ
OFFSET
I
Band
Lock
o,o
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. For example, you could execute “PU;PA 0,O;PD;PA 0,200,400,200,400,0,0,0;” to draw
a box around the graticule area.
Because PA is an active function, executing PA causes the.active function area on the spectrum
analyzer screen to blank. lb prevent the text following PA from being written in the active
function area, execute hold (HD) after PA.
PU should be executed before the first PA command, and PA should be executed before
executing TEXT, PD, or DSPLY commands.
Syntax
cu124e
Example
OUTPUT 718; “PARSTAT; ”
ENTER 718;A
PRINT “A”
Description
‘Ihble 5-9. Spectrum Analyzer Status Byte (Option 024)
4 16 N/A WA
3 8 Printer error
1 2 Paper end
0 1 Printer busy
5 32 Paper end
3 8 Printer error
2 4 N/A N/A
1 2 N/A N/A
0 1 N/A N/A
Query Response
Syntax
Example
OUTPUT 718;"MOV PCTAM,l;" Turns on the percent AM rneasurmt.
OUTPUT 718;"PCTAMR?;" Queries PCTAMR. FCTAMR contains the results of the
percent AMmeasurement.
ENTER 718;Percent Stores the value of PCTMR in the variable Brcent.
PRINT "Percent AM is ",Percent Prints the results.
OUTPUT 718;"MOV PCTAM,O;" Turns ofl the percent AM measurement.
Description
Setting PCTAM to 0 turns off the percent AM function. Setting PCTAM to 1 turns on the
percent AM function. When the percent AM function is turned on, the spectrum analyzer finds
the signal with the highest amplitude, and then finds two signals (with lower amplitudes) on
either side of the highest signal. The highest on-screen signal is assumed to be the carrier, and
the adjacent signals are assumed to be the sidebands. The amplitude levels of all three signals
are measured, and the percent AM is calculated using the carrier level and the sideband with
the higher amplitude level. Percent AM is calculated as follows:
Leuek7a,rier
P e r c e n t Ah4 = 2 0 0 x
LeV47ideband
The percent AM measurement is repeated at the end of every sweep (PCTAM uses the ONEOS
command) until you turn off the percent AM measurement. You must query PCTAMR to
determine the percent AM.
PCTAM can perform the percent AM measurement only if there are three on-screen signals
that have the characteristics of a carrier with two sidebands. Also, to be considered a signal,
the levels of the carrier and sideband signals must be greater than the peak excursion above
the threshold. If there are not three signals that fit the characteristics of a carrier with two
sidebands, the value of PCTAMR will be -100.
You can execute the PCTAM command two different ways. You can either execute the PCTAM
command directly (for example, "PCTAM 1; ‘I) or use the MOV command to move the 1 or 0 into
Query Response
r off 7
output
0 l termination +
I< f
QPCTAM
Syntax
PCTAh4R
Example
OUTPUT 718;"MOV PCTAM,l;" Turn-s on the percent AMmeasurement.
OUTPUT 718;"PCTAMR?;" Queries PCTAMR. PCTMR contains the results of the
percent AM?neasurement.
ENTER 718;Percent Stores the value of PCTMR in the vam’able I%rcnt.
PRINT "Percent AM is ",Percent Prints the results.
OUTPUT 718;"MOV PCTAM,O;" Turns ofl the percent AM mmsur~t.
Description
PCTAMR returns a -100 if the PCTAM function has not been turned on, or if the on-screen
signal is not valid or is not present. PCTAM can perform the percent AM measurement only if
there are three on-screen signals that have the characteristics of a carrier and two sidebands.
Also, to be considered a signal, the levels of the carrier and sideband signals must be greater
than the peak excursion above the threshold.
Query Response
output
termination +
PD
Pen Down
Instructs the spectrum analyzer to plot vectors on the spectrum analyzer screen until a PU
command is received.
Syntax
( PD
XPD
Example
OUTPUT 718;"IP;BLANK TRA;" Initializes the spectrum analyzer and blanks
trace A.
OUTPUT 718;"ANNOT 0FF;GRAT OFF;" Clears the spectrum analyzer screen.
OUTPUT 718;"PU;" R?n up.
OUTPUT 718;"PA 100,lOO;PD 100,150;" PU and PA commands prevent an initial
vector from being drawn before the pen is
positioned at (100, 100). PD draws a vector
to (loo, 150).
OUTPUT 718;"150,150,150,100,100,100;" Draws the last three sio!es of the rectangle.
Description
The command PD is used to enable drawing of all vectors specified by the commands PA (plot
absolute), or PR (plot relative). It remains in effect until a PU command is received. PD does
not need to be executed before using the TEXT or DSPLY commands.
Syntax
predefined variable
XPDA
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF for a
user-defined variable. TS when using trace data.
Related Commands: PDF, RMS, STDEV.
Example
OUTPUT 718;"IP;SNGLS;" Initializes spectrum analyzer and activates the single-
sweep m4de.
OUTPUT 718;"VB 1OKHZ;HD;TS;" Changes video bandwidth, updates trace.
OUTPUT 718;"MOV TRB,O;" &places trace B data with all zeros.
OUTPUT 718;"PDA TRB,TRA,l;" Determines the distribution of trace A and sums results
into trace B
OUTPUT 718;"MPY TRB,TRB,S;" Multiplies values in trace B by 5 to make the results more
visible.
OUTPUT 718;"VIEW TRB;" Displays the result.
Description
The PDA command takes the data in the source trace on a point-by-point basis. Each amplitude
value is divided by 100 times resolution value, and the result of the division is rounded to an
integer. If the result falls within the range of the buckets of the destination trace, the content
of the corresponding destination trace element is increased by one. For example, to show the
distribution of amplitudes on a trace with values ranging from 0 to 8000, a resolution value of
1 dB would result in 81 buckets ((SOOO/(l x lOO))+ 1). Amplitude values ranging from 0 to 99
would go to bucket 1, values from 100 to 199 would go into bucket 2, and so forth. Finally,
values from 7900 to 7999 would go to bucket 400. An amplitude value of 8000 would fall into
bucket 81.
Due to the summing nature of the PDA command, the destination trace should always be
initialized to all zeros.
The PDA function is similar to the probability density function in statistics. The probability
density function has the y-axis as the probability of an occurrence, where the PDA function of
the HP 8590 Series spectrum analyzer has the number of occurrences as its y-axis. The PDA
could be converted to a probability density function by dividing, in an external controller, the
value of each bucket by the total number of source elements. Note that performing the divide
inside the spectrum analyzer would not be appropriate because the result is less than 1, which
would be truncated to 0.
Syntax
- d e s t i n a t i o n 7
user-defined trace
user-defined trace
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: PDA, TH.
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;"; Initializes spectrum anal~.z.ex
20 OUTPUT 718;"SP 1OOMZ;CF 300MZ;” Changes the span and centerfrequency
3 0 OUTPUT 718;"TH -50 DM;TS;" Activates the threshold level, take a
sweep.
40 OUTPUT 718;"VIEW TRB;CLRW TRA;MOV TRB,O;" Sets trace B to zeros.
50 OUTPUT 718*"ST'*" Gets the sweep time.
60 ENTER 718;Sweepitime I&turns the sweep time to the controller:
70 Sup-retrace = Sweep-time+.1 Calculates the total sweep time, in-
cluding the retrace time.
80 Num,sweeps = 3600/Swp,retrace Calculates the number of sweeps in
one hour:
90 FOR I = 1 TO Num-sweeps Thisjino!s the maximum number of
sweeps that can be taken before nu-
merical ove@ow (greater than 32,767.)
100 OUTPUT 718;"TS;PDF TRB,TRA;" When I = Num-sweeps, trace B con-
tains the number of sweep that had
amplitudes at or above the threshold
level of -50 dBm.
110 NEXT I
120 END
Description
The TH command permits the user to set an amplitude threshold value. When PDF is
performed, measurement buckets of the source trace that exceed the threshold increment the
corresponding frequency bucket in the destination trace.
The destination trace should be set to zeros before PDF is executed for the first time.
Subsequent calls to PDF increment the 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. The PDF
function is similar to the probability density function in statistics. The probability density
function has the y-axis as the probability of an occurrence, where the PDF function of the
HP 8590 Series spectrum analyzer has the number of occurrences as its y-axis. The PDF could
be converted to a probability density function by dividing, in an external controller, the value
on each bucket by the total number of buckets. Note that performing the division inside the
spectrum analyzer would not be appropriate because the result is less than 1, which would be
truncated to 0.
Syntax
7 destination
% u s e r - d e f i n e d t r a c e I
sorting
r method
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MKPX, TH.
Example
Connect CAL OUT to the spectrum analyzer input.
OUTPUT 718."IP*" Initializes spectrum analyzer
OUTPUT 718;"CF'300MHZ;SP 1500MHZ;RB 30KHZ;SNGLS;" Changes the center frequency,
span, bandwidth. Actiuatessingle-
sweep mode.
OUTPUT 718;"TH -60DM;MKPX 10DB;TS;" Sets up threshold, sets mini-
mum peak excursion.
OUTPUT 718;"PEAKS TRB,TRA,FRQ?;" Returns the number of peaks in
trace A above the threshold.
ENTER 718;Number Gets the number of peaks from
the spectrum analyzer
DISP Number Displays the result on the com-
puter screen.
FOR I=1 TO Number Fbr one to the number of peaks
do the following steps.
OUTPUT 718;"MKP TRB[";I;"]"; Place marker at the position of
the first trace B element.
OUTPUT 718;"MKA?;" Find the amplitude of the marker
ENTER 718;A
OUTPUT 718*"MKF'*"
*9 Find thefrequency of the marker
ENTER 718;;
PRINT A,B Print the amplitude and the
frequency of the marker
NEXT I Repeat the FOR NEXT loop for
all of the peaks that werefound.
Description
When sorting by frequency (FRQ), PEAKS first computes the horizontal position of all peaks.
These positions are loaded into the destination trace consecutively, with the lowest frequency
value occupying the first element. Thus, signal frequencies, from low to high, determine the
amplitude of the destination trace from left to right.
When sorting by amplitude (AMP), PEAKS first computes the amplitudes of all peaks in the
source trace in measurement units, and sorts these values from high to low. The positions of
the peaks are then loaded into the destination trace, with the position of the highest amplitude
value occupying the first element.
For example, executing the programming example results in the following spectrum analyzer
display:
............................. .....................................................................
WF, S B
SC FS i
CORR’ : ; : ; : ; : : !
TH
-60 .0 . . . . . . . . . . . . . . . . . . . . . . . . . ..t......................................................................
dBm
I I
CENTER 300 MHz S P A N 1 . 5 0 0 8Hz
tRES B W 3 0 kHz UBW 3 0 kHz SWP 5.00 set R
If the FRQ parameter is used with the PEAKS command, the programming example returns the
values that shown in the following table.
L
Trace Element
TRB[ l]
TRB[2]
TRB[3]
TRB[4]
TRB[S]
If the AMP parameter is used with the PEAKS command, the programming example returns
the values that are shown in the following table.
Notice that MKA? and MKF? are used to determine the amplitude and frequency of the peak
position.
PEAKS sorts only signals that are above the threshold value. To be classified as a signal peak,
a signal must be MKPX above the threshold value and it must rise and fall at least the peak
excursion (MKPX value). To change the threshold, use the TH command before PEAKS is
executed.
If necessary, the last sorted value is repeated to fill remaining elements of the destination trace.
PEAKS must be used as either a query or as a source in another spectrum analyzer-command
function. Form a query by ending the PEAKS statement with a “?.” When used as a query,
PEAKS returns the number of peaks found. When querying the trace elements of destination
trace, the x-axis coordinate (relative to the first trace element) of the peak is returned.
Query Response
Syntax
peaks below
r DL ?
- 1
/
.._,_..’
01 I
/ peaks \
0
peaks above
r DL I
1
XPKDLMODE
Example
OUTPUT 718;“MOV PKTBL,l;” Turns on the peak table.
OUTPUT 718;“DL -20;” Sets the display line.
OUTPUT 718;“MOV PKDLMODE,l;” Displays the on.!?/ the signal peaks that are above the
display line.
Description
The value of PKDLMODE determines how the signal peaks are displayed. You can set
PKDLMODE to the following values:
n If PKDLMODE is set to 0, all signal peaks are displayed and listed.
H If PKDLMODE is set to - 1, only the signal peaks below the display line are displayed and
listed.
H If PKDLMODE is set to 1, only the signal peaks above the display line are displayed and
listed.
You can execute the PKDLMODE command two different ways. You can either execute the
PKDLMODE command directly (for example, “PKDLMODE 1; ‘I) or use the MOV command to
move the 1 or 0 into the PKDLMODE command (for example, I’MOV PKDLMODE, 1; I’). If you use
the MOV command, no text is displayed in the active function area during command execution.
Query Response
peaks below
peaks above
QPKDLMODE
Syntax
PKPOS
XPKPOS
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MINPOS, MXM.
Example
OUTPUT 718;"IP;" Initializes spectrum anulyz..ex
OUTPUT 718;"SNGLS;TS;" Activates single-sweep mode, takes sweep.
OUTPUT 718;"PKPOS TRA;" Finds the position of the highest peak.
ENTER 718;Pkresult Outputs result to the computex
DISP Pkresult Displays the result.
Description
If a trace range is used with PKPOS, PKPOS returns a value relative to the first element of
the trace range. For example, if a trace has a range of 150 to 300 elements, and the maximum
value is element 200, PKPOS will return the value of 51.
PKRES
Peak Result
PKRES returns the x-axis coordinates of the peaks in the peak table.
Syntax
Example
DIM Results(l0) Dimensions an array to hold the results.
OUTPUT 718;"TDF M;" Changes the trace data format to measure-
ment units.
OUTPUT 718;"PKSORT 0;" Selects listing the peaks by decreasing amplitude.
OUTPUT 718;"MOV PKTBL,l;" Turns on the peak table.
OUTPUT 718*"TS*"
> mforms a take sweep.
FOR I=1 TO'10 Uses a FOR NEXT loop to get the data from
PKRES
OUTPUT 718;"PKRESC";I;"]?" Queries each PKRES element.
ENTER 718;Results(I) Enters the PKRES element into the Results
element.
NEXT I
OUTPUT 718;"TDF P;" Changes the trace data format to parameter
units.
PRINT "PEAK","FREQUENCY","AMPLITUDE" Prints a heading.
FOR I=1 TO 10 Uses a FOR NEXT loop to print the results.
IF Results(I)>0 THEN Results(I) is greater than zero if peak was
found.
OUTPUT 718;"MKP ";Results(I);";" Places a marker at the x- axis coordinate.
OUTPUT 718;"MKF?;" Returns the frequency of the marker
ENTER 718;A Enters the marker’s frequency into A.
OUTPUT 718;"MKA?;" Returns the amplitude of the marker:
ENTER 718;B Enters the marker’s amplitude into B
PRINT I,A,B Prints the peak number; frequency, and amplitude
END IF Eno!s the IF THEN statement.
NEXT I
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. You cannot use the TDF P
trace data format before PKRES is queried.
2. Use PKSORT to select sorting the signal peaks by amplitude or by frequency.
3. Turn on the peak table with PKTBL.
4. Execute a take sweep (TS) to ensure that valid data is stored in PKRES.
Query Response
Querying PKRES returns the values of the 10 trace elements, with each value separated by a
comma. Querying one element of PKRES (for example, “PKRES [l]?; “) returns the value of that
element, followed by the output termination.
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
Example
OUTPUT 718;"MOV PKTBL,l;" Twn.s on the peak table.
OUTPUT 718;"MOV PKSORT,O;" Sorts the peaks by &creasing amplitude.
Description
If PKSORT is set to 0, the spectrum analyzer sorts and displays the list of the peaks according
to the amplitude of the peaks (highest amplitude first). If PKSORT is set to 1, the spectrum
analyzer sorts and displays the list of the peaks according to frequency (lowest frequency signal
peak is listed first).
See “PKRES” for information about how to get the information in the peak table remotely.
You can execute the PKSORT command two different ways. You can either execute the
PKSORT command directly (for example, "PKSORT 1; ‘I) or use the MOV command to move
the 1 or 0 into the PKSORT command (for example, "MOV PKSORT,l;"). If you use the MOV
command, no text is displayed in the active function area during command execution.
Query Response
decreasing
PKTBL
Peak ‘Ihble
Turns on or off the peak table.
Syntax
table
/- off 7
0
/
. . . .._...
table
I- 0” 7
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. The
upper window displays trace A, with the signal peaks of trace A identified and numbered
(the peaks are numbered according to their frequency or amplitude, see “PKSORT” for more
information). The lower window displays the peak table. The peak table displays the following
information about the on-screen signal peaks: the number of the peak, the frequency of the
peak, and the amplitude of the peak. A signal must be equal to or exceed the peak excursion
to be considered a peak. (See “MKPX” for more information about the peak excursion.) While
the peak table is turned on, the frequency and amplitude of each peak is updated at the
end of every sweep (PKTBL command uses the ONEOS command to update the peak table
information).
See “PKRES” for information about how to get the information in the peak table remotely.
You can execute the PKTBL command two different ways. You can either execute the PKTBL
command directly (for example, “PKTBL 1; ‘I) or use the MOV command to move the 1 or 0 into
the PKTBL command (for example, “MOV PKTBL , 1; ‘I). If you use the MOV command, no text is
displayed in the active function area during command execution.
Restrictions
Turning on the peak table turns off the following functions: windows display mode (WINON),
N dB point measurement (NDBPNT), the FFT menu measurements (FFTAUTO, FFTCONTS,
FFI’SNGLS), gate utility functions (GDRVUTIL), TO1 measurement (TOI), marker table (MKTBL),
percent AM (PCTAM), peak zoom (PKZOOM), and power menu measurements (ACP, ACPE, CHP,
and OBW).
You should turn off the peak table (set PKTBL to 0) when you are done with the peak table.
Query Response
table
Syntax
Example
OUTPUT 718;"PKZOOM IMHZ;" Sets thejinal frequency span to 1 MHZ.
OUTPUT 718;"PKZMOK?;" Queries the value of PKZMOK.
ENTER 718;Peak-zoom-ok
IF Peak-zoom-ok = 0 THEN zf PKZMOK is equal to 0, the PKZOOM routine did not
.find a signal.
PRINT "Signal Not Found"
ELSE
Query Response
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
..’
..’
..’
I
/
XPKZOOM
Item ! Description/Default
Number Any real or integer number. Default unit is Hz. Minimum frequency
span depends on
model, maximum
frequency span is
Example
OUTPUT 718;"PKZOOM 1MHZ;" Sets the final frequ..emz/ span to 1 MHz.
OUTPUT 718;"PKZMOK?;" Queries the value of PKZMOK.
ENTER 718;Peak_zoom,ok
IF Peak-zoom-ok = 0 THEN If PIEMOK is equal to 0, the PKZOOM routine did not
find a signal.
PRINT "Signal Not Found"
ELSE
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). The minimum
value for the final frequency span depends on the model of the spectrum analyzer.
‘lb be able to find a valid signal, PKZOOM changes the following commands:
TH Sets the threshold to 8 divisions from the top screen.
LG Changes the amplitude scale to logarithmic.
MKPX Sets the peak excursion to 6 dB.
VAVG Sets video averaging to off.
AT, RB, VB, ST Attenuation, resolution bandwidth, video bandwidth, and sweeptime are
autocoupled.
MKSS The center frequency step size is set to the marker’s frequency.
For a signal to be found by PKZOOM, the signal must have a peak excursion (rise and fall) of at
least 6 dB.
Restrictions
Executing PKZOOM turns off the following functions: windows display mode (WINON), N
dB point measurement (NDBPNT), the FF”I’ menu measurements (FF’IAUTO, FFTCONTS,
FFTSNGLS), gate utility functions (GDRVUTIL), TO1 measurement (TOI), marker table (MKTBL),
peak table (PKTBL), percent AM (PCTAM), and power menu measurements (ACP, ACPE, CHP,
and OBW).
Query Response
termination ---)
001
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
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.
These scaling points specify the (x,y) coordinates, which determine the size of the plot.
(Plx,Ply) refers to the lower-left plotter coordinates. (P2x,P2y) refers to the upper-right
plotter coordinates.
The PLOT command should not be used within a DLP; you should use the GETPLOT command
instead.
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.
PLTPRT
Plot Port
Selects which port to output plotter data from the analyzer. (Option 041 or Option 043)
Syntax
PLTPRT
cu122e
Example
OUTPUT 718;"PLTPFtT 3;" Routes the plot i@ommtion to the serial port for Option 043.
Description
PLTPRT 0 = HP-IB port of Option 021 or Option 041
PLTPRT 1 = serial port or Option 023
PLTPRT 2 = parallel port of Option 024
PLTPRT 3 = serial port of Option 043
PLTPRT 4 = parallel port of Option 041 or Option 043
Note Setting the PRNPRT to a port inconsistent with the installed hardware option is
ignored, so executing PLTPRT 1 on an HP-IB equipped analyzer is ignored.
Query Response
Syntax
XPOWERON
Example
OUTPUT 718; “POWERON LAST; ”
Description
POWERON LAST restores the last state of the spectrum analyzer. Limit line testing is not
considered to be a spectrum analyzer state and is not resumed after the spectrum analyzer is
turned off. The limit line table will be restored even if the spectrum analyzer is turned off,
however.
Note The last state of the spectrum analyzer is not retained in the case of battery
power failure of the spectrum analyzer’s internal battery.
When used as a predefined variable, POWERON returns either a “0” or a “1,” depending on the
setting of the POWERON parameter. Refer to the following table.
Query Response
QPOWERON
PP
Preselector Peak
Peaks the preselector.
Syntax
( P P
XPF
Example
OUTPUT 718;"IP;CF 3GHZ;SP SOOKHZ;" Initializes spectrum analyzq changes center fre-
quency, span.
OUTPUT 718;"TS;MKPK HI;MKCF;PP;" Baks the highest on-screen signal.
Description
‘Ib use PP, set the desired trace to clear-write mode, place a marker on a desired signal, then
execute PP. Commands following PP are not executed until after the spectrum analyzer has
finished peaking the preselector.
PP automatically adjusts the preselector tracking to peak the signal at the active marker.
(When the marker is tuned to a signal and PREXXL PEAK is pressed, an internal routine
searches for the peak response of the preselector and adjusts the tracking accordingly.) Using
preselector peak prior to measuring a signal yields the most accurate amplitude reading.
Preselector peak operates with the MARKER TJORMAL or MARKER A markers. If the marker is
OFF, pressing PRESET PEAK initiates a peak search routine and then peaks the response at that
marker; otherwise, it peaks around the active marker. The CAL : PEAKING message appears on
the active graticule area to indicate operation of the peaking routine. Preselector peak only
operates in the 2.75 to 22 GHz preselector bands.
Syntax
x Y.
coordinate coordinate
/ \ / \
number
XPR
Example
OUTPUT 718; “IP; ” Initializes spectrum aruzlym
OUTPUT 7 18 ; “BLANK TRA ; ANNOT OFF ; ” Clears the display.
OUTPUT 718;“GRAT OFF;” Turns off graticule.
OUTPUT 718;“PU;PA 0,100;” Rxitions pen.
OUTPUT 718;“PD;PR lOO,O,O,-lOO,-lOO,O,O,lOO;” Drawsa rectangle.
Description
Vector coordinate sets (x,y pairs) following the PR command can be either positive or negative,
depending on the direction of the individual vectors to be drawn. PU (pen up) and PD (pen
down) commands tell the spectrum analyzer to draw or not draw the vectors on the screen.
(See “PU” and “PD.“)
Display units are the scaling units of the spectrum analyzer display for on screen graphics
commands such as PA or PR. See “PA” for more information about 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. For example, you could execute “PU;PA 0,O;PD;PA 0,200,400,200,400,0,0,0;” to draw
a box around the graticule area.
Because PR is an active function, executing PR causes the active function area on the spectrum
analyzer screen to blank. To prevent the text following PR from being written in the active
function area, execute hold (HD) after PR.
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 the preamplifier
gain entered.
A preamplifier gain offset is used for measurements that require an external preamplifier or
long cables. The offset is subtracted from the amplitude readout so that the displayed signal
level represents the signal level at the input of the preamplifier or long cable. The preamplifier
gain offset is displayed at the top of the screen and is removed by entering zero.
Press CAL STClRE if you want the spectrum analyzer to use the current preamplifier gain offset
when power is turned on. Preamplifier gain offset is set to zero by DEFAULT CONFIG .
Query Response
Syntax
I- p r e f i x 7
Example
OUTPUT ~I~~PREFX %DAVE%;~~
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
I+@-sP +a--+
. . _.
xprint
Note To print without disconnecting the computer, you must execute the following
BASIC commands:
ABORT7
LOCAL 7
Then press Icopvl.
Description
The data is output in HP raster graphics format. PRINT, PRINT 0, or PRINT BW produces a
monochrome printout. PRINT 1 and PRINT COLOR produces a “color format” output for an
HP PaintJet printer. Execute “MENU 0;” before printing to blank the softkeys.
The PRINT command should not be used within a DLP; you should use the GETPRNT command
instead.
PRNTADRS
Print Address
Allows you to set the HP-IB address of the printer.
Syntax
printer
r address
Example
10 OUTPUT 718;"VARDEF L,OC,l;MOV L,OC,l2;" Dtf~nes a variable called L-OC, and
then moves 12 into L-OC.
20 OUTPUT 718;"PRNTADRS 1;" Sets the HP-IB address of the printer
to 1.
. You can insert programming com-
mands here.
300 OUTPUT 718;"OUTPUT PRNTADRS,F3.0,L,OC;" You could use this statement within
a DLP This statement outputs the
number 12 to the printer
Description
You may find it useful to assign PRNTADRS near the beginning of your program, and, from
then on, refer to the printer address in your program as PRNTADRS. The advantage of using
PRNTADRS in this way is that if you need to change the printer address, you need only
change the programming line that assigns the printer address to PRNTADRS (see line 20 of the
programming example).
Query Response
PRNTADRS? returns the current HP-IB address of the printer.
printer
r address
output
termination +
Syntax
PRNPRT
Example
OUTPUT 718 ; "PRNPRT 3 ; ‘I Routes the print in$ormution to the serial port for Option 043.
Description
PRNPRT 0 = HP-IB port of Option 021 or Option 041
PRNPRT 1 = serial port or Option 023
PRNPRT 2 = parallel port of Option 024
PRNPRT 3 = serial port of Option 043
PRNPRT 4 = parallel port of Option 041 or Option 043
Note Setting the PRNPRT to a port inconsistent with the installed hardware option is
ignored, so executing PRNPRT 1 on an HP-IB equipped analyzer is ignored.
Query Response
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
Example
OUTPUT 7 18 ; “PSTATE ON; ”
Query Response
output
termination ---)
002
Syntax
( PU
Example
OUTPUT 718;"IP;BLANK TRA;" Initializes spectrum anulyzeq blanks trace A.
OUTPUT 718;"ANNOT 0FF;GRAT OFF;" Turns oflannotation, graticule.
OUTPUT 718;"PU;" Prevents initial vector from king drawn.
OUTPUT 718;"PA 100,lOO;PD 100,150;" Rxitions pen, pen down.
OUTPUT 718;"150,150,150,100,100,100;" Draws remaining 3 sides of rectangle.
Description
The PU command is used before the commands PA (plot absolute), or PR (plot relative), to
suppress drawing while moving to the starting point of a vector. It remains in effect until a PD
command is received.
PURGE
Purge. File
Deletes the specified file from the current mass storage device.
Syntax
Example
OUTPUT 718; “MS1 CARD;" Selects the memoq card as the mass storage device.
OUTPUT 718;"PURGE %dMYFILE%;" Deletes the fZ.!.e called “dMYFZJ3” from the memory
card.
Description
Use the MS1 command to select the mass storage device (either the spectrum analyzer memory
or a memory card) before using the PURGE command. When deleting a file from a RAM card,
the RAM card files are repacked automatically after a PURGE command is executed.
Syntax
PWRBW
predefined variable
Parameter Values: The field used for the percentage must use a value between 0 and 100.
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF for a
user-defined variable. TS when using trace data.
Related Commands: RB, SP
Example
DISP "CONNECT CAL OUT TO INPUT" LXsplays a user prompt.
OUTPUT 718;“IP;" Initializes spectrum analyzex
OUTPUT 718;"SNGLS;" Activates single-sweep mode.
OUTPUT 718;"CF 300MHZ;SP 1MHZ;RB 300KHZ;" Changes centerfrequency,
span, and bandwidth.
OUTPUT 718;"MXMH TRA;TS;TS;TS;TS;" Activates the maximum
hold of trace A, sweep 4
times.
OUTPUT 718;"PWRBW TRA, 99.0;" Returns the 99% power
bandwidth.
ENTER 718;P Gets the resultf?om the
spectrum analyzer:
DISP "THE POWER BANDWIDTH AT 99 PERCENT IS";P/l.OE+3;"kHz" Displays the frequency
of the power bandwidth
specQi.ed on the computer
screen.
Description
If trace A is the source, a delta marker is set at the start and stop frequencies.
If 100% is specified, the power bandwidth equals the frequency range of the screen display. If
50% is specified, trace elements are eliminated from either end of the array, until the combined
power of the remaining signal responses equals half of the original power computed. The
frequency span of these remaining trace elements is the power bandwidth returned.
Query Response
Syntax
Example
OUTPUT 718;"PWRUPTIME;" Executes PWRUPTIME.
ENTER 718;A Places the result of PWRUPTIME into A.
A = A/1000 Changes the milliseconds to seconds.
PRINT "Minutes elapsed ",A/60 Prints the number of minutes that have elapsed since
the spectrum analyzer was turned on.
Description
PWRUPTIME can count the number of milliseconds for up to 232 milliseconds (232 milliseconds
is equivalent to 49.7 days). If the spectrum analyzer is left on for more than 49.7 days,
PWRUPTIME is reset to 0 and restarts the count.
Query Response
time
in milliseconds
RB
Resolution Bandwidth
Specifies the resolution bandwidth.
Syntax
XRB
Example
OUTPUT 718;"RB IKHZ;" Sets the resolution bandwidth to 1 kHz.
Description
The coupling between sweep time and resolution bandwidth is terminated by this command.
Execute RB AUTO to reestablish coupling. (Also see “AUTO.“)
The 200 Hz, 9 kHz, and 120 kHz 6-dB resolution bandwidths (used for EM1 testing) are available
by specifying 200 Hz (for spectrum analyzers with Option 130 installed), 9 kHz, or 120 kHz as
the frequency value; the front-panel knob, step increment keys, and auto-coupled settings
provide the 1, 3, 10 resolution bandwidth sequence only. Frequencies are rounded to the
nearest value in the 1, 3, 10 sequence if the frequency is other than 9 kHz, 120 kHz, 5 MHz, or
in the 1, 3, 10 sequence.
The spectrum analyzer provides uncalibrated bandwidths of 300 Hz (10 Hz if the spectrum
analyzer has Option 130 installed in it) and 5 MHz.
Query Response
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
Example
OUTPUT 718 ; “IP ; CF 300MHZ ; SP 1MHZ ; I’ Changes centerfreqwnc2(, span.
OUTPUT 718 ; “SAVES 3 ; ” Saves state in register 3.
OUTPUT 718.s “IP ,* ”
OUTPUT 7 18, * “RCLS 3 ,* ” Recalls the contents of register 3.
Description
You can specify a state register number from one to nine. Registers one through eight are
reserved for your use. Registers one through eight contain instrument state information if
instrument state information has been stored in it with the SAVES command. State register
nine contains the previous state data.
Note The RCLS recalls state data from spectrum analyzer memory. See “LOAD” or
“SAVRCLN” to recall state data from the memory card.
Syntax
RCLT
user-defined trace
trace range
I
XRCLl
Equivalent Softkey: The RCLT command and the VIEW commands are equivalent to
Intsmal -2 Trace.
Parameter Value: 0 to TRCMEM - 1.
Prerequisite Commands: TRDEF when using a user-defined trace.
Related Commands: CAT, CLRW, LOAD, SAVET, SNGLS, TRCMEM, TS, VIEW.
Example
10 OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;TS;" Initializes spectrum anulyq changes
the center frequency and span.
20 OUTPUT 718;"SAVET TRA,l;" Saves spectrum analyzer state and trace
A data in register 1.
30 OUTPUT 718;"IP;" Initializes spectrum analyzer
40 OUTPUT 718;"RCLT TRA,l;VIEW TRA;" Recalls spectrum analyzer state, trace
data; displays the result.
50 END
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.
To avoid overwriting the recalled trace data, the VIEW command should be performed
immediately after the RCLT command when recalling trace data (see line 40 in the example).
Note The RCLT recalls trace data from spectrum analyzer memory. See “LOAD” or
“SAVRCLN” to recall trace data from the memory card.
Syntax
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
The REPEAT and UNTIL commands form a looping construct.
Syntax
UNTIL
/
% p r e d e f i n e d v a r i a b l e I
buuser-defined vorioblel
L trace element /
Example
The following program lowers any off-screen signal.
10 OUTPUT 718;"IP;" Initializes spectrum anal~zfx
20 OUTPUT 718;"SNGLS;TS;MKPK HI;" Activates single-sweep mode, takes sweep, places
marker on signal peak.
30 OUTPUT 718;"IF MA,GT,RL THEN;" Performs lines 40, 50 and 60 if the marker
amplitude is greater than the reference level.
40 OUTPUT 718;"REPEAT;" Increases refwence level, takes sweep, places
50 OUTPUT 718;"RL UP;TS;MKPK HI;" marker on signal peak.
60 OUTPUT 718;"UNTIL MA,LE,RL;" Does line 40 until peak amplitude is less than
or equal to the reference level.
70 OUTPUT 718;"ENDIF;" Ends the IF THEN constrwt.
80 OUTPUT 718."CONTS-" s 3
70 END
Description
All commands following the REPEAT command are executed until the comparison specified
after the UNTIL command is true.
The following are used for comparing the operands:
GT Greater than
I.3 Less than
IJ3 Less than or equal to
GE Greater than or equal to
EQ Equal to
NE Not equal to
When used within a downloadable program (DLP), the number of REPEAT UNTIL statements
that can be nested is limited to 20.
RESETRL
Reset Reference Level
Resets the reference level to its instrument preset level.
Syntax
Example
OUTPUT 718;"RESETRL;"
Syntax
RETURN
Example
10 OUTPUT 718."IP*" Initializes spectrum analyzer
20 OUTPUT 718;"SNGLS;TS;DONE?" put in single sweep mode
30 ENTER 718;Done wait until done
40 !
50 OUTPUT 718;"FUNCDEF D,LP,O" dejines user de@ed fan&ion
60 OUTPUT 718;"CF 300MZ;SP 10MZ;TS;" set CF and SPAN
70 OUTPUT 718;"MKPK HI;" marker peak
80 OUTPUT 718;"PU;PA 60,180;" position pen, get ready for text
90 OUTPUT 718;"IF MKA,LT,-30 THEN;" marker less than -30 dBm?
100 OUTPUT 718;"TEXT'NO SIGNAL FOUND';"
110 OUTPUT 718;"HD;" refresh graticule
120 OUTPUT 718;"CONTS;" back to continuous sweep
130 OUTPUT 718;"RETURN;" exit the function
140 OUTPUT 718;"ELSE;"
150 OUTPUT 718;"TEXT'SIGNAL FOUND';"
160 OUTPUT 718*"ENDIF."
170 OUTPUT 718;"SP 5MZ;TS;MKPK;" narrow span, marker peak
180 OUTPUT 718."MKCF*" marker to CF
190 OUTPUT 718;"MKRL;TS;" marker to RL
200 OUTPUT 718;"HD;" refresh graticule
210 OUTPUT 718;"CONTS;" back to continuous sweep
220 OUTPUT 718~"Q~"
# , end of user &fined function
230 !
240 OUTPUT 718;"D,LP;" this line executes function D-LP
250 !
260 END
Description
The example shows the use of the RETURN command to exit from a user-defined function.
When the RETURN is encountered, execution within the function halts and control returns to
the calling context.
REV
Revision
Returns the date code of the firmware revision date in YYMMDD format (for example, 860910
indicates 10 September 1986).
Syntax
XRE”
Example
OUTPUT 718 ; "REV ; I’ Gets the firmware revision date of spectrum analgz-ez
ENTER 718;A Puts the spectrum analyzer response in the computer variable, A.
DISP A Displays the jiirmware rezviSiOn date on the computer screen.
Description
The date of the firmware revision also appears when the instrument is first turned on, but it is
displayed in the day, month, year format.
Query Response
output
termination l
QREV
Syntax
- ompl itude v a l u e 7
RL
XRL
Example
10 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;" Initializes spectrum analy,wq acti-
vates single-sweep mooTq changes cen-
tecfmww4, span.
20 OUTPUT 718;"TS;MKPK HI;MKRL;TS;" Zxkes sweep, places marker on signal
peak, sets reference level to marker
level.
30 OUTPUT 718;"RL?;" Queries reference level.
40 ENTER 718;RefJevel Puts the spectrum analyzer response
in the computer variable, Reflevel.
50 PRINT "REFERENCE LEVEL IS",Ref-level,"DM"
60END
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.
Query Response
Syntax
RLPOS
XRLPOS
Step Increment: 1.
Related Commands: IP, MEASURE, NRL, RL.
Preset State: RLPOS 8.
Example
OUTPUT 718;"IP;" Initializes spectrum analyzer
OUTPUT 718;"MEASURE NRM;" Changes the measurement mode to normalized.
OUTPUT 718;"AMBPL ON;" Activates trace normalization.
OUTPUT 718;"RLPOS 7;" Rwitions the refwence level at the seventh major gratic-
ule division.
Description
The RLPOS command changes the position of the reference level during log display mode. The
top and bottom graticule lines correspond to 8 and 0, respectively. RLPOS must be used with
MEASURE NRM or MEASURE SR, and AMBPL ON or AMB ON. Arrows appear on the left and
right side of the screen graticule when the reference level position is changed.
Query Response
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 t r a c e I
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MEAN, PDA, PDF, STDEV, VARIANCE.
Example
OUTPUT 718;"IP;SNGLS;TS;"
OUTPUT 718*"RMS TRA'."
-9
ENTER 718;Ikmber
DISP Number
Description
Trace data, user-defined trace data, and trace range data are treated as 16-bit integers.
Query Response
Syntax
ROFFSET
Example
10 OUTPUT 718; “IP; ” Initializes spectrum analyzex
20 OUTPUT 718;“RL -2ODB;” Changes the refwence level.
30 OUTPUT 718 ; “ROFFSET -10 ; ” Changes spectrum analyzer reference off-
set value.
40 OUTPUT 718;"RL?;" Gets the reference value from spectrum
analyzer:
50 ENTER 718;Ref Puts the spectrum analyzer response in
the computer variable, I@$
60 DISP "THE NEW REFERENCE LEVEL IS ",Ref LXsphys -30 as the new refwence level.
70 END
Description
Once activated, the ROFFSET command displays the amplitude offset in the active function
block. And, as long as the offset is in effect, the offset is displayed on the left side of the
screen.
Entering ROFFSET 0 or presetting the spectrum analyzer eliminates an amplitude offset.
Query Response
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
Example
OUTPUT 718;"RQS 12;" Sends a mask bit for hardware broken and end of sweep.
Description
Assignment of values for the mask is as follows:
Query Response
SAVEMENU
Save Menu
Saves menu 1 under the specified menu number.
Syntax
Example
OUTPUT 718;"MENU 1;" Laplays rrlenu 1.
OUTPUT 718;"SAVEMENU 101;" Copies the key functions from menu 1 into menu 101.
OUTPUT 718;"KEYCLR;" Erases the key functions of menu 1.
PAUSE
OUTPUT 718;"MENU 101;" Displays ?T?Enu 101.
Description
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 is can be accessed by pressing (j-1, UJser Menus .
Menus 101 through 200 as well as menu 1 can be accessed using the MENU command. See
“MENU” for more information about accessing softkeys and menus.
Syntax
state
r r e g i s t e r
SAVES
XSAVES
Example
OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;" Initializes spectrum analyze?; changes center
frequencvp span.
OUTPUT 718."SAVES
8 1."
3 Saves spectrum analyzer state in register 1.
Description
The state data is saved in the specified state register if the state registers have not been locked
by the PSTATE command.
Only state registers 1 through 8 are available for saving the instrument state. State register
nine contains the previous state data, state register zero contains the current state.
Note The SAVES command saves state data in spectrum analyzer memory. See
“STOR” or “SAVRCLN” to save state data on a RAM card.
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
Example
OUTPUT 718;"IP;CF 300MHZ;SP 20MHZ;TS;" Initializes spectrum analym changes the
center frequency and span.
OUTPUT 718;"VIEW TRA;SAVET TRA,l;" Puts trace A in the view mode, saves spec-
trum analyzer state and trace A data in reg-
ister 1.
OUTPUT 718;"IP;" Initializes spectrum analyzer
OUTPUT 718;"RCLT TRA,l;VIEW TRA;" Recalls spectrum analyzer state, trace data.
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.
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.
OUTPUT 718; “SAVRCLF SAVE; ” Spec@ies a save operation.
OUTPUT 718; “SAVRCLW TRA; ” Spec4Jie.s the source as trace A.
OUTPUT 718; “MS1 CARD; ” Specifies the card as the mass
storage device.
OUTPUT 718 ; ~~PFW~ %FRED% ; 11 SpecQies the pre$k to store the
trace data under:
OUTPUT 718;“PU;PA O,lGO;TEXT%ENTER TEST NUMBER%;” Prompts the user for the num-
ber to append to the prem.
OUTPUT 718 ; ” SAVRCLN EP ; ” Ajbr the user enters the num-
ber; the number is to appended
to the pre$xand the data trans-
fer is initiated.
The RAM card now contains a file called tFRED_(register number).
Syntax
number to
SAVRCLN
XSAVRCLN
Example
This example allows trace A to be saved on a RAM card.
OUTPUT 718;"SAVRCLF SAVE;" Specifies a save operation.
OUTPUT 718;"SAVRCLW TRA;" Spetii_ifies the source as trace A.
OUTPUT 718;"MSI CARD;" Specifies the card as the mass
storage dewice.
OUTPUT 718;lf~~~FX %FRED%;" SpecQies the prem to store the
trace data under:
OUTPUT 718;"PU;PA O,IGO;TEXT%ENTER TEST NUMBER%;" Prompts the user for the num-
ber to append to the prem.
OUTPUT 718;"SAVRCLN EP;" A$er the user enters the num-
ber, the number is appended to
the pre& and the data transfer
is initiated.
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.
Because the SAVRCLN command initiates the transfer of data, it should be the last command
specified in the sequence to save or recall data.
The sequence to save or recall data is as follows:
1. Specify either a save or recall operation with SAVRCLF.
2. Indicate the type of data to be saved or recalled using SAVRCLW.
3. Specify a RAM card or spectrum analyzer memory as the mass storage device with MSI.
4. When saving to or recalling from a RAM card, specify the prefix to be used with PREFX.
The prefix is ignored when saving or recalling from spectrum analyzer memory.
5. Enter the number to append to the prefix and initiate the data transfer with SAVRCLN.
When saving trace data, amplitude correction factors, or limit-line tables in spectrum analyzer
memory, specify a number within the trace register number range (0 to TRCMEM - 1). When
saving state data in spectrum analyzer memory, specify a number within the state number
range (1 to 8).
When saving data on a RAM card, the number plus the number of characters in the prefix must
not exceed eight characters.
Note With the memory card reader, the spectrum analyzer can read from either a
RAM (random-access memory) card or a ROM (read-only memory card). lb
write to a memory card, the memory card must be a RAM card. The spectrum
analyzer cannot write to a ROM card.
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.
OUTPUT 718;"SAVRCLF SAVE;" SpecQies a save operation.
OUTPUT 718;"SAVRCLW STATE;" Spec(jies the source as the current spectrum analyzer state.
OUTPUT 718;"MSI CARD;" SpecQies the card as the mass storage okwice,
OUTPUT 718;"PREFX %FRED%;" [email protected] the pre@ to store the state data under:
OUTPUT. 718;"SAVRCLN 34;" Appends the register number 34 to the prefix and initiates
the data transfm
The RAM card now has a file called sFRED-34 that contains the instrument state.
Description
SAVRCLW is used to save or recall data in spectrum analyzer memory or on a RAM card. See
“SAVRCLN” for the sequence of commands to initiate a data transfer.
The SAVRCLW parameters correspond to the type of data transferred as shown in the following
table.
Parameter Type of Data Transferred
TRA Trace A.
TRB Trace B.
TRC Trace C.
DLP Downloadable programs.
STATE Instrument state.
LIMILINE Limit lines.
. AMPCOR , AmDlitude correction factors
SEGDEL
Segment Delete
Deletes the specified segment from the limit-line tables.
Syntax
segment
7 number
SEGDEL
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). Line 60 demonstrates the effect of deleting a segment when the upper and
lower limit-line tables are treated separately.
10 OUTPUT 718;"LIMIDEL;" Deletes the current limit-line table, sets
the table type to jixed.
20 OUTPUT 718;"LIMIMODE UPPER ; ,I Speci$?es the upper limit-line table.
25 OUTPUT 718;"LIMIFT FREQ;" Limit lines to be based on frequenq.
30 OUTPUT 718;"LIMISEG BOOMHZ , -3ODB,FLAT;" Enters a segment into the upper limit-
line table.
40 OUTPUT 718;"LIMIMODE LOWER II Spe&fi.es the lower limit-line table.
50 OUTPUT 718;"LIMISEG 300MHZ;-70DB,FLAT;" l3nters a segment into the lower limit-
line table.
60 OUTPUT 718;"SEGDEL 1;" Deletes the segment from the lower limit-
line table.
70 END
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).
10 OUTPUT 718;"LIMIDEL;" Deletes the current limit-line table.
20 OUTPUT 718;"LIMIMODE UPPER;" Specifies the upper limit-line table.
25 OUTPUT 718;"LIMIFT FREQ;" Limit lines to be based on frequency.
30 OUTPUT 718;"LIMISEG 300MHZ,-30DB,FLAT;" Enters segment into the upper limit-
line table.
40 OUTPUT 718;"LIMIMODE LOWER;" Spec@es the lower limit-line table.
50 OUTPUT 718;"LIMISEG SOOMHZ ,-70DB,FLAT;" Enters a segment into the lower limit-
line table
60 OUTPUT 718;"LIMIMODE UPLOW;" Spe&@ both the upper and lower
limit-line tables.
70 OUTPUT 718;"SEGDEL 1;" Deletes the segment from the upper
and lower limit-line tables.
80 END
Description
The result of SEGDEL depends on the setting of the LIMIMODE command as shown in the
following table.
You may want to query LIMIMODE before using SEGDEL if you are unsure of the LIMIMODE
setting.
‘Ib determine the number of each segment, you can use the softkeys accessed by Edi% Limit
to display the limit-line table. (Limit-line entries are sorted according to frequency or time.)
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-) . .
L /
predefined variable
l o w e r o r d e l t a v a l u e
r u p p e r o r m i d v a l u e
$ p r e d e f i n e d v a r i a b l e J
huser-defined variable>
b trace element J
XSENTER
Example 1
This example enters limit-line values into the upper and lower limit-line tables.
OUTPUT 718;"LIMIFT FREQ;" Sets the limit lines to be based on
frew.=wh
OUTPUT 718;"LIMIMODE UPLOW;LIMIREL OFF;" [email protected] the upper and lower limit-
line table asfixed.
OUTPUT 718;"SENTER 300MHZ,-lODB,-50DB,FLAT;" Enters in values jiwasegment.
OUTPUT 718;"SENTER 350MHZ,-15DB,-60DB,FLAT;" Entersinvalwforasegment.
Example 2
OUTPUT 718;"LIMIFT FREQ;" Sets the limit lines to be based on
.Pewenw
OUTPUT 718;"LIMIMODE DELTA;LIMIREL OFF;" Specifies the mid and delta table for-
mat and#xed type.
OUTPUT 718;"SENTER 300MHZ,-20DB,lODB,FLAT; ‘I Entersinvalues forasegment.
OUTPUT 718;"SENTER 350MHZ,-30DB,20DB,FLAT;" Entersinvaluesforasegment.
Description
Each limit-line segment is specified with a starting frequency, an upper or median amplitude
value, a lower or delta amplitude value, and a segment type. The segment type defines how the
line segment is to extend from its starting point to the next segment.
Note If the current limit line table contains lines based on sweep time (as opposed to
a limit line based on the frequency), executing SENTER will clear the current
sweep time limit line table.
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. The POINT segment type should be
used as the last segment in the limit-line table. However, if the last segment in the table is
not specified as the POINT segment type, an implicit point is automatically used. If a visible
POINT segment at the right-hand edge of the display is not desired, add an explicit last point
segment to the limit-line table that is higher in frequency than the stop frequency.
Segments are sorted as they are entered according to starting frequency. A maximum of 20
segments can be defined using SENTER. When the type is omitted, the last type given (or
SLOPE if no previous type has been given) is used.
Syntax
t i m e -,
SENTERT us
-I /
predefined variable
user-defined variable
trace element
l o w e r o r d e l t a v a l u e
/ \
% p r e d e f i n e d v a r i a b l e d
buuser-defined voriobleJ
L trace element 2
Example 1
This example enters limit-line values into the upper and lower limit-line tables.
OUTPUT 718;"RL -1ODB;" Sets the reference level to -10 dB
OUTPUT 718~"LIMIDEL*" Erases any the current limit line table.
OUTPUT ~~~I~~LIMIFT +IME;" Sets the limit lines to be based on
sweep time.
OUTPUT 718;"LIMIMODE UPLOW;LIMIREL ON;" Specifies the upper and lower limit-
line table as rektive.
OUTPUT 718;"SENTERT lOMS,-lODB,-50DB,FLAT;" Enters in values for a segment.
OUTPUT 718;"SENTERT OMS,-15DB,-GODB,FLAT;" Enters in values for a segment.
OUTPUT 718;"LIMITEST 0N;TS;" Turns on the limit-line testing.
Example 2
OUTPUT 718;"LIMIFT TIME;" Sets the limit lines to be based on sweep
time.
OUTPUT 718;"LIMIMODE DELTA;LIMIREL OFF;" [email protected] the mid and delta table format
and jkzd type.
OUTPUT 718;"SENTERT lOMS,-20DB,lODB,FLAT;" Enters in values for a segment.
OUTPUT 718;"SENTERT OMS,-30DB,20DB,FLAT;" Enters in values for a segment.
OUTPUT 718;"LIMITEST 0N;TS" Turns on the limit-line testing.
Description
Each limit-line segment is specified with a starting sweep time, an upper or median amplitude
value, a lower or delta amplitude value, and a segment type. The segment type defines how the
line segment is to extend from its starting point to the next segment.
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.
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
Example
DIM Serial$[24] Reserves m.emory space for a string.
OUTPUT 718;"SER;" Gets the serial number from the spectrum analyzer:
ENTER 718; Serials Puts the spectrum analyzer response in the computer variable.
DISP Serial$ Displays the serial number on the computer screen.
Query Response
The last five digits of the serial number are returned.
output
’ t e r m i n a t i o n --)
Syntax
d a t e
f (YYMMDD)
XSETDATE
Example
OUTPUT 718;"SETDATE 890212;" Sets the date to Fidmu.zry 12, 1989.
Query Response
output
t e r m i n a t i o n l
QSETDATE
SETTIME
Set Time
Allows you to set the time of the real-time clock of the spectrum analyzer.
Syntax
t ime
r (HHMMSS)
XSETTIME
Example
OUTPUT 718;"SETTIME 135501;" Sets the time to 1:55:01 PM.
Query Response
,- h o u r
d i g i t
PSETTIME
Syntax
b u s e r - d e f i n e d trace /
b t r a c e r a n g e /
h p r e d e f i n e d v a r i a b l e /
buser-defined variable)
b p r e d e f i n e d f u n c t i o n /
L t r a c e e l e m e n t /
XSMOOTH
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF for a
user-defined variable. TS when using trace data.
Related Commands: SNGLS, TS, VAVG.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer:
20 OUTPUT 718;"SNGLS;TS;" Activates single-sweep mode, takes a sweep.
30 OUTPUT 718;"VIEW TRA;" Stores results of trace A.
40 OUTPUT 718;"SMOOTH TRA,lO;" Smoothes trace A.
50 OUTPUT 718;"VIEW TRA;" Displays the result.
60 END
Description
Each point value is replaced with the average of the values (in measurement units) of the
given number of points centered on it. Increasing the number of points increases smoothing at
the cost of decreasing resolution. If the number of points is an even number, then the number
of points is increased by one. If the number of points is larger than the size of SOURCE, then
the size of SOURCE is used (unless size of SOURCE is even, in which case the size of SOURCE
minus one is used). Smoothing decreases at the endpoints.
The purpose of this function is to perform a spatial video averaging as compared to the
temporal version supplied by the video-average (VAVG) command. The functions of SMOOTH
and VAVG are not interchangeable however. Unlike VAVG, SMOOTH averages values that occur
before and after the data point in time. This can cause some display irregularities at the start
and stop frequencies. Use low values for the SMOOTH parameter to avoid signal distortion.
By replacing the value of each point in a trace with the average of the values of a number of
points centered about that point, any rapid variations in video noise or signals are smoothed
into more gradual variations. It thereby performs a function similar to reducing the video
bandwidth without the corresponding changes in sweep time. As such, it does result in a
reduction of frequency resolution. Also, signal peaks are reduced with large smoothing values,
and this can cause the amplitude to appear to be low.
This command requires user memory for its execution. Memory is not permanently allocated,
so the largest amount of memory is available for the functions that are used in a particular
application. When the command is complete, memory is returned to the free user memory.
Syntax
SNGLS
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.
Fbr the HP 8592L or the HP 85933 only: The frequency span that can be viewed with a
single-sweep is bounded by the instrument range only; therefore, band 0 can be included in a
multiband sweep in single sweep mode. This allows a 0 GHz to 22 GHz span with an HP 8592L
or HP 85933 (also see “TS”).
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+
Example
OUTPUT 718;"IP;SP 20MHZ;" Initializes spectrum analym changes frequency span.
OUTPUT 718;"SP?;" Gets the span value from the spectrum analyzer
ENTER 718;Span Puts the spectrum analyzer response in the computer vari-
able, Span.
PRINT Span Displays the span value.
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.
Because span is affected by frequency, change the frequency before changing span (see
“HNLOCK”). For the HP 8592L and HP 85933, the span can be set to include band 0 and band
1 except in single-sweep mode.
Specifying 0 Hz enables zero-span mode, which configures the spectrum analyzer as a
fixed-tuned receiver.
Query Response
001
SPEAKER
Speaker
Turns on or off the internal speaker.
Syntax
XSPEAKER
Example
OUTPUT 718;"SPEAKER OFF;"
Syntax
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
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
Example
OUTPUT 718;"SQLCH 100;"
Description
SQLCH mutes weak signals and passes strong signals.
Query Response
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 t r a c e /
Y 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
Item Description/Default
User-defined trace A trace defined by the TRDEF command.
User-defined variable A variable defined by VARDEF or ACTDEF commands.
name.
Predeflned variable
Predefined function
Trace range
Number
A command that acts as a variable. Refer to Table 5-l.
Function that returns a value. Refer to ‘lbble 5-l.
A segment of trace A, trace B, trace C, or a user-defined trace.
Any real or integer number.
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF for a
!
Real number range.
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.
Syntax
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. The external leveling input (EXT ALC INPUT) is
located on the rear panel of the spectrum analyzer. Positive- or negative-polarity detectors
are supported. External leveling increases the amplitude accuracy by improving the effective
source match.
n SRCALC MTR narrows loop bandwidth so Hewlett-Packard power meters can be used for
external leveling.
Fbr the HP 859OL and HP 8591E only: The functions of SRCALC and ALC KTR INT XT& are
identical.
For the HP 85933, HP 85943, HP 85953, or HP 85963: Option 010 for the HP 85933,
HP 85943, HP 85953, or HP 85963 provide internal (INT) and external (EXT) leveling.
n SRCALC INT activates internal leveling.
n SRCALC EXT is for externai leveling. The external leveling input (EXT ALC INPUT) is
located on the rear panel of the spectrum analyzer. Only negative-polarity detectors are
supported. External leveling increases the amplitude accuracy by improving the effective
source match.
Query Response
QSRCALC
Syntax
/- a t t e n u a t i o n
XSRCAT
Example
The following example uses the SRCAT command to attenuate the source output. This value
specified for SRCAT (20 dB) applies to an HP 85913 only.
OUTPUT 7la;"SRCAT AUTO;" Activates source-attenuation coupling.
OUTPUT 7lapS~~PwR -2ODB;" Activates source output.
OUTPUT 71a;"SRCAT 20DB;" Sets attenuator to 20 dB This decouples the attenuator
from the source power-level setting.
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.
Query Response
Syntax
OFF
/
ON
XSRCNORM
Example
10 OUTPUT 718;"IP;SNGLS;RL 20DB;" Initial&s spectrum analog activates single-
sweep mode.
20 OUTPUT 718;"MOV TRA,5000;" Sets trace A to 5000 measurement units, which
is equal to -10 dBm.
30 OUTPUT 718;"VIEW TRA;"
40 OUTPUT 718;"MOV TRB,4000;" Sets trace B to 4000 measurement units, which
is equal to -20 dBm.
50 OUTPUT 718;"VIEW TRB;"
60 OUTPUT 718;"DL ODM;" Sets display line to 0 dBm, which is at 6000
measurement units.
70 OUTPUT 718;"SRCNORM ON;" Performs trace A - trace B + display line. The
result is 5000 - 4000 + 6000 = 7000 or 10 dBm.
Note that this has resulted in a subtraction of
amplitude in dBm, -10 dBm -(-20 dBm) = 10
dBm.
80 OUTPUT 718;"BLANK TRB;VIEW TRA;"
90 END
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. In such applications, amplitude units in dBm should be subtracted.
To accomplish this, the display line should be set to 0 dBm using DL as shown in the example.
Also see example 2 and 3 in “AMB” for comparison.
Query Response
output
ON ’ t e r m i n a t i o n +
OFF
002
Syntax
XSRCPOFS
Example
Use SRCPOFS to offset the power-level readout for the tracking-generator source.
OUTPUT 718;"MEASURE SR;" Sets spectrum analyzer to stimulus-response mode.
OUTPUT 718;"SRCPWR -1ODB;" Turns on source output.
OUTPUT 718;"SRCPOFS 13DB;" Oflets power-level readout for source by 13 dR
Description
The SRCPOFS command offsets the displayed power of the built-in tracking generator. This
function may be used to take into account system losses (for example, cable loss) or gains (for
example, preamplifier gain) reflecting the actual power delivered to the device under test.
Query Response
QQ,
SRCPSTP
Source Power-Level Step Size
Selects the source-power step size.
Syntax
I- s t e p s i z e
XSRCPSTP
Example
Select incremental changes of power effected by “SRCPWR UP;“, “SRCPWR DN;” commands, or
the step keys.
OUTPUT 718;"MEASURE SR;" Activates stimulus-response mode.
OUTPUT 718;"SRCPWR -1ODB;" Turns on the source output.
OUTPUT 718;"SRCPSTP .3DB;" Sets power-level step size to 0.3 dB
OUTPUT 718;"SRCPWR UP;" Increases the power level.
Description
The SRCPSTP command selects the step size for the following source commands:
n Power offset (SRCPOFS).
n Power sweep (SRCPSWP).
n Power (SRCPWR).
Use SRCPSTP to set the step size to a specific value.
“SRCPSTP AUTO;” sets the step size to one vertical scale division.
Query Response
SRCPSWP
Source Power Sweep
Selects the sweep range of the source output,
Syntax
/- sweep --\
( SRCPSWP > DB
. . . . . . . . . . . . .._._............. .’
J
XSRCPSWP
Example
Use SRCPSWP to sweep the power level of the source output.
OUTPUT 718;"MEASURE SR;" Activates stimulus-response mode.
OUTPUT 718;"SRCPWR -1ODB;" Sets power level of source output to -10 dBm.
OUTPUT 718;"SP 0;" Sets span to 0 Hz.
OUTPUT 718;"SRCPSWP IODB;" Sweeps source output from -10 dBm to 0 dBm.
Description
The SRCPSWP command works in conjunction with the SRCPWR (source power) command to
sweep the amplitude level of the source output. The SRCPWR setting determines the amplitude
level at the beginning of the sweep. The SRCPSWP command determines the change in
amplitude level of the sweep.
For example, if SRCPWR and SRCPSWP are set to -15 dBm and 4 dB respectively, the source
sweeps from - 15 dBm to - 11 dBm.
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.
Query Response
SRCPWR
Source Power
Selects the source power level.
Syntax
/- Power \
XSRCPWR
Example
Use SRCPWR to turn on the source and adjust its power level.
OUTPUT 718;"SRCPWR -2ODB;" Changes power level to -20 dBm.
OUTPUT 718;"AUNITS DBMV;" Changes the current amplitude unit.
OUTPUT 718;"SRCPWR 37;" The source power is rww 37 dBmK
Description
The SRCPWR command turns the source off or on and sets the power level of the source.
The source is turned on automatically whenever its value is specified with SRCPWR. Also see
“ SRCPSTP. ”
Query Response
SRCTK
Source Tracking
Adjusts the tracking of the source output with the spectrum analyzer sweep.
Syntax
SRCTK
I t e m Description/Default tinge
Number Any real or integer number. 0 to 16,383.
Example
OUTPUT 718;"MEASURE SR;" Activates the stimulus-response moo%?.
OUTPUT 718;"SRCPWR -2ODB;" Turns on the power at the source output.
OUTPUT 718;"SP IMHZ;" Sets measurement range.
OUTPUT 718;"RB IKHZ;"
OUTPUT 718;"TS;" Zzkes sweep.
OUTPUT 718;"SRCTK EP;" Allows entry offrom front-panel keys to adjust tracking.
Description
The SRCTK command adjusts the tracking of the tracking-generator output relative to the
center frequency of the spectrum-analyzer. SRCTK is used typically for bandwidths less than
300 kHz. Bandwidths greater than 300 kHz do not require tracking adjustment. Use SRCTK to
improve amplitude accuracy and maximize signal response. Use SRCTKPK to adjust tracking
automatically. See “SRCTKPK. n
Query Response
PO1
SRCTKPK
Source Tracking Peak
Automatically adjusts the tracking of source output with spectrum-analyzer sweep.
Syntax
Example
OUTPUT 718;"MEASURE SR;" Activates the stimulus-response mode.
OUTPUT 718;"SRCPWR -1ODB;" Turns on the power at the source output to its current
setting.
OUTPUT 718;"SP IMHZ;" Sets mhxsurement range.
OUTPUT 718;"RB 1KHZ;"
OUTPUT 718;"TS;" lbkes sweep.
OUTPUT 718;"SRCTKPK;" Automatically [email protected] the tracking.’
Description
The SRCTKPK command adjusts the tracking of the tracking-generator source output
automatically to maximize responses for measurements made with resolution bandwidths less
than 300 kHz.
SRCTKPK maximizes the amplitude of the displayed active trace.
Syntax
service
SRQ
XSRQ
Example
OUTPUT 718;"RQS 8;SRQ 8;" Sets bit mask for a hardware broken semrice request, genm-
ates a hardware broken interrupt.
Note A program can respond to the interrupt in the same way it would under a true
service request condition.
Description
The service request condition is also displayed on the spectrum analyzer screen with the
annotation SRQ XXX, where XXX is a three-digit octal number.
The conditions that can generate a service request are as follows:
32 = Illegal command
16 = Command complete
8 = Hardware broken
4 = End of sweep
2 = Units key pressed
A service request is generated only if the proper request mask bit has been set (see “R&S”),
and either the condition itself or the Force Service Request is sent. To set the request mask,
choose the desired interrupt conditions and sum their assigned values. Executing the RQS
command with this value sets the bit mask. After setting the bit mask, only the chosen
conditions can produce an interrupt.
Each bit in the status byte is defined as shown in the following table.
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).
Interrupt-Related Commands Common to All Interfaces:
n CLS Clear status byte, without read.
n RQS Request mask.
n SRQ Force service request.
n STB Read then clear status byte.
The HP-IB interface supports interface commands to read the status byte.
On HP-IB in HP 9000 Series 200 or 300 BASIC, the statement SPOLL (Device-address) can be
used to read the status byte.
The display message is an octal number based on the binary value of the status byte. This
octal number always begins with a u 1” since this is translated from bit 6, the universal service
request bit. The status byte for an illegal spectrum analyzer command (SRQ 140) is as follows:
bit number 7 6 5 4 3 2 1 0
status byte 0 1 1 0 0 0 0 0
binary 0 1 1 0 0 0 0 0
octal 1 4 0
bit number 7 6 5 4 3 2 10
status byte 01 1 0 0 1 0 0
octal value 1 4 4 = SRQ 144
Syntax
UP
AUTO
Example
10 CLEAR 718 Clears the HP-B
20 OUTPUT 718;"IP;SNGLS;CF 300MHZ;SP 20MHZ;TS;" Initializes the spectrum an&y-
activatessingle-sweep mode, changes
the center frequency, span, takes
sweep.
30 OUTPUT 718;"MKPK HI;MKRL;TS;MKF?;" Finds the highest peak, changes
the reference level to the markq
takes sweep, returns the frequency
of the marker:
40 ENTER 718 USING "K";Mk,freq Puts the spectrum analyzer re-
sponse in the computer variable,
h!k-freq.
50 OUTPUT 718;"MKA?;" Returns the amplitude of the marker
60 ENTER 718 USING "K";Mk-amp Puts the spectrum analyzer re-
sponse in the computer variable,
h&.
70 OUTPUT 718;"SS ";Mk-freq;"HZ" Changes the step size to the marker
freq-u
80 OUTPUT 718;"CF UP;TS;MKPK HI;MKA?;" Increases the centerfrequency, takes
sweep, puts the marker on the
highest peak and returns the am-
plitude of the marker
90 ENTER 718;Mk-amp1 Puts the spectrum analyzer re-
sponse in the computer variable,
Mk-ampl.
100 PRINT "THE FUNDAMENTAL IS ";Mk-amp-Mk,amp1 Outputs the result.
110 PRINT "dB ABOVE THE SECOND HARMONIC"
120 END
Description
The AUTO parameter removes SS as an active function but does not have an effect on its value.
Query Response
Syntax
Example
OUTPUT 718;"ST IOOMS;" Sets the sweep the to 100 milliseconds.
Description
When used as a predefined variable, ST returns the sweep time as a real number in seconds.
Query Response
Syntax
Pre$ef i ned
f u n c t i o n p a t h o n l y
XSTB
Example
10 OUTPUT718;"IP;" Initializes spectrum anal2/zer
20 OUTPUT 718;"SNGLS;" Activates single-sweep mode.
30 OUTPUT 718*"CLS-" 9 , Clears the status bits.
40 OUTPUT 718*"TS*"
# , i’bkes sweep.
50 OUTPUT 718."STB'." Returns the status bits.
60 ENTER 718;ktatui:Byte Puts the spectrum analyzer response in the computer variable,
Status-Byte.
70 PRINT Status-byte Displays the result.
80 END
Description
The STB command is equivalent to a serial poll command. The RQS and associated bits are
cleared in the same way that a serial poll command would clear them. The bits in the status
byte are explained under the RQS command.
Query Response
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 p a t h o n l y
9 u s e r - d e f i n e d t r a c e I
XSTDEV
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MEAN, PDA, PDF, VARIANCE.
Example
The following program segment finds the standard deviation of the amplitude of trace A.
Description
The formula to calculate the standard deviation is as follows:
,gz - XiY
J n - l
Query Response
o u t p u t
t e r m i n a t i o n +
STOR
Store
Stores data on a RAM card.
Syntax
/- f i l e n a m e 7
d a t a
r type 7
c h a r a c t e r
I- p r e f i x 7
f t k e y r a n g e ‘-\
number
XSTOR
Option Required: An HP 8590L or HP 8592L spectrum analyzer needs Option 003 installed in
it to use STOR.
Related Commands: CAT, LOAD, PREFX.
Example
OUTPUT 718;"TRDEF N,EW,400;" L%@tes a trace.
OUTPUT 718;"MOV N-EW,TRA;" Moves the contents of trace A into N-EM?
OUTPUT 718;"STOR t,%tF,UNCX%,N,EW;" Stores NJ3’Wunder thefile name of tFUNCX
as trace data.
OUTPUT 718;"STOR d,%dP,ROG-I%,*;" Stores all downloadable programs in the
spectrum analyzer memory on the RAM
card.
OUTPUT 718;"STOR a,%aA,MPDATA,7%;" Stores the current amplitude correction
factors.
OUTPUT 718;"STOR l,%lL~IMITS,l%;" Stores the current limit-line tables.
OUTPUT 718;"STOR s,%sS-TATEmIl;" Stores the spectrum analyzer state.
OUTPUT 718;"STOR d,%dK,EYS,l5%,601.606;" Stores soflkey j3mction.s 601 through 606
in thefile dKEYS-1.
OUTPUT 718;"STOR d,%dK,EY-l%,GOl;" Stores sofikey function 601 in the jile
oY!ZY-1.
OUTPUT 718;"STOR d,%dF-ILES,l%,KEN*;" Stores all downloadable programs with
the pre@ “KEN” on the RAM card.
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. It is necessary to use the correct data type (a, d, i, 1, s, or t) to load the file into spectrum
analyzer memory correctly. The letters correspond to the data type as shown in the following
table.
Note The STOR saves data on a RAM card. See “SAVET,” “SAVES,” or “SAVRCLN” to
save data in spectrum analyzer memory.
With the memory card reader, the spectrum analyzer can read from either a
RAM (random-access memory) card or a ROM (read-only memory card). lb
write to a memory card, the card must be a RAM card. The spectrum analyzer
cannot write to a ROM card.
Syntax
- d e s t i n a t i o n
b u s e r - d e f i n e d t r a c e /
b t r a c e range /
b p r e d e f i n e d v a r i a b l e /
u s e r - d e f i n e d v a r i a b l e
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF for a
user-defined variable. TS when using trace data.
Related Commands: AMB, AMBPL, BML, LIMITEST, SUM.
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.
Syntax
f u n c t i o n p a t h o n l y
k u s e r - d e f i n e d t r a c e /
b t r a c e r a n g e /
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: ADD, DIV, MEAN, MPY, SUB, TS, VARIANCE.
Example
10 OUTPUT 718;"IP;" Initializes spectrum analyzer:
20 OUTPUT 718;"SNGLS;TS;" Activates single-sweep mode, takes sweep.
30 OUTPUT 718;"SUM TRA?;" Gets the result.
40 ENTER 718;Tracegum Puts the spectrum analyzer response in the
computer variable, Trace-sum.
50 DISP Trace,sum;"MEASUREMENT UNITS" Displuystheresult.
60 END
Query Response
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 t r a c e I
L t r a c e r a n g e J
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Example
OUTPUT 718; “IP; ” Initializes spectrum analyzix
OUTPUT 718; “SNGLS;TS; ” Activates single-sweep mode, takes sweep.
OUTPUT 718; “SUMSQR TRA?; ” Gets the result.
ENTER718;Trace,sqrsum Puts the spectrum analyzer response in the
computer variably Trace-sqrsum.
DISP Trace,sqrsum; “MEASUREMENT UNITS” D&plays the result.
Query Response
Syntax
Example
10 OUTPUT 718;"IP;SNGLS;"
20 OUTPUT 718;"FA 300KHZ;FB IGHZ;"
30 OUTPUT 718;"SRCPWR -1ODB;"
40 OUTPUT 718;"SWPCPL SR;"
50 OUTPUT 718;"SRCTKPK;DONE?;"
60 ENTER 718;Done
70 LOCAL 718
80 END
Description
In stimulus-response mode, auto-coupled sweep times are usually much faster for
swept-response measurements. Stimulus-response auto-coupled sweep times are typically valid
in stimulus-response measurements when the system’s frequency span is less than 20 times the
bandwidth of the device under test.
When used as a predefined variable, SWPCPL returns either a “0” or a “1,” depending on the
setting of the SWPCPL parameters. Refer to the following table.
1sParametee
e t t i n g w_ rsfmrned]
Syntax
XSYNCMODE
Equivalent Softkey: SYK! EflZM NTSC , DEFAULT SYNC , SYNC EfEtpr PAL.
Related Commands: CRTHPOS, CRTVPOS, IP.
Example
OUTPUT 718;"SYNCMODE NTSC15;" Selects the NTSC format for the spectrum analyzer
monitor and monitor output.
OUTPUT 718;"IP;" An instrument preset activates the new synchronizing
constants.
Description
Whenever you use SYNCMODE to change the synchronizing constants, you must press (PRESET]
or execute IP to activate the new synchronizing constants. Changing the vertical scanning rate
may change the location of the time and date display on the spectrum analyzer display.
The SYNCMODE parameters NORMAL and LOAD15 allow you to change the horizontal and
vertical synchronizing constants for both the spectrum analyzer’s internal monitor and the
video signal to the MONITOR OUTPUT connector.
The SYNCMODE parameters NTSC15 and PAL15 allow you to change the vertical scanning rate
for both the spectrum analyzer’s internal monitor and the video signal that is output to the
MONITOR OUTPUT connector. The regular vertical scanning rate for the spectrum analyzer’s
monitor is 57 Hz; the NTSC15 changes the vertical scanning rate to 60 Hz, and the PAL15
changes the vertical scanning rate to 50 Hz. If you want to record the spectrum analyzer
display on a video cassette recorder (VCR) that uses the NTSC format, you must use the
NTSC15 parameter to change the vertical scanning rate of the spectrum analyzer monitor to 60
Hz. If you want to record the spectrum analyzer display on a VCR that uses the PAL format,
you must use the PAL15 parameter to change the vertical scanning rate of the spectrum
analyzer monitor to 50 Hz.
Syntax
( TA
Example
This example stores the TA results in array A.
DIM A(4011 I&SW memory area for array.
OUTPUT 718;"IP;" Initializes analyzer
OUTPUT 718;"SNGLS;CF 300MHZ;SP 2MHZ;TS;" Activates single-sweep mo& changes cen-
ter frequency and span, takes sweep.
OUTPUT 718;"TDF P;TA;" Changes trace dutu format, outputs trace
A.
FOR N = 1 TO 401 FOR NhXT loop moves each element of
trace A to the computer:
ENTER 718;A(N)
NEXT N
FOR N = 1 TO 401 FOR NEXT loop moves the trace values
from the computer to the printer
PRINT A(N) Prints out the results.
NEXT N
Description
The display unit values are transferred in sequential order (from left to right) as seen on the
screen.
Transfer of trace amplitude data should be done only as follows:
1. Select single sweep mode (SNGLS).
2. Select desired spectrum analyzer settings.
3. lake one complete sweep (TS).
4. Transfer data (TA).
This procedure ensures that the current settings of the spectrum analyzer are reflected in the
transferred data.
See Chapter 3, “Different Formats for Trace Data Transfers,” for more information about
transferring trace data. Items are separated by a comma when in TDF P format.
TB
Transfer B
Transfers trace B amplitude values from the spectrum analyzer to the controller.
Syntax
Example
DIM A(4011 &serves memory area for array.
OUTPUT 718;"IP;" Initializes analyz4x
OUTPUT 718;"SNGLS;CF 300MHZ;SP 2MHZ;TS;" Activates single-sweep mode, changes cen-
ter frequency and span, takes sweep.
OUTPUT 718;"TDF P;TB;" Changes trace data format, outputs trace
B
FOR N = 1 TO 401 FOR NEXT loop m.oves each element of
trace A to the computer:
ENTER 718;A(N)
NEXT N
FOR N = 1 TO 401 FOR NEXT loop moves the trace values
from the computer to the printer:
PRINT A(N) Prints out the results.
NEXT N
Description
The operation of TB is similar to the operation of TA.
See Chapter 3, “Different Formats for Trace Data Transfers, n for more information about
transferring trace data.
Syntax
XTDF
Example
DIM A(4011 Holds trace data.
OUTPUT 718;"IP;" Initializes armlym
OUTPUT 718;"BLANK TRA;CLRW TRB;" Views trace I3
OUTPUT 718;"SNGLS;CF 300MHZ;SP 2MHZ;TS;" Activates single-sweep mode, changes cen-
terfrequency and span.
OUTPUT 718*"TDF P-TB-"
, # Rwm4zts trace data.
FOR N = 1 lo 401 Transfer trace data to array A, one
element at a time.
ENTER 718;A(N)
NEXT N
FOR N = 1 TO 401 Loop prints out trace B data.
PRINT A(N) Prints out the results.
NEXT N
Description
The different trace data formats are as follows:
TDF P
Description: TDF P is the real number format. An example of a trace element returned with
the real number format is 10.00 dB. When querying the trace or marker value, the value is
returned using the amplitude unit set by AUNITS (for example, watts or dBm).
Restrictions: The spectrum analyzer must be in log scale to use TDF l? To send the trace data
back to the spectrum analyzer, the data must be converted to measurement units.
How data is returned: The following table describes what is transferred when the trace data
format is set to P, but the AUNITS are changed. In every case, the trace data transfer is ended
by a carriage return, and a line feed with an EOI.
Example of how data is returned: For example, if the reference level of the spectrum
analyzer is set to -10 dBm, the amplitude scale is set to 10 dB per division, and trace A
contains the following data:
TRA[l] contains 8000 (in measurement units). The value 8000 indicates trace element 1 is at
the reference level.
TRA[B] = 7000 measurement units (trace element 2 is -10 dB below the reference level).
TRA[3] through TRA[401] each contain 6000 (in measurement units). The value 6000
indicates that the trace elements 3 through 401 are all at -20 dB below the reference level.
Querying trace A with the TDF P format and AUNITS set to DBM returns ASCII character codes
for the following:
-lO.OO,-20.00,-30.00,(-30.00 is repeated 398 times),<CR><LF><EOI>
TDF A
Description: TDF A is the A-block data format. With the A-block data format, trace data is
preceded by “#, ” “A,” and a two-byte number (the two byte number indicates the number
of trace data bytes). The setting of the MDS command determines whether the trace data is
transferred as one or two g-bit bytes.
Restrictions: To use the A-block format for sending data, you must provide the number of
data bytes.
How data is returned: The following table describes what is transferred when the trace data
format is set to A, but the MDS setting is changed.
TDF I
Description: TDF I is the I-block data format. With the I-block data format, trace data must
be preceded by “#,” and “I.” The setting of the MDS command determines whether the trace
data is transferred as one or two g-bit bytes. Unlike using the A-block format, you do not
provide the number of data bytes when sending trace data back to the spectrum analyzer.
Restrictions: This format is not recommended for use with an RS-232 interface.
How data is returned: The following table describes what is transferred when the trace data
format is set to I, but the MDS setting is changed.
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 I format and MDS set to binary (MDS B) would
return the ASCII character codes for the following:
#I(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div 32 is repeated 398 times)
If MDS is set to W, querying trace A with the TDF I format would return the ASCII character
codes for the following:
#I(8000 div 256)(8000 mod 256)(7000 div 32)(7000 mod 256)(6000 div 256)(6000 mod 256)(the
number for 6000 div 256, then the number for 6000 mod 256 is repeated 398 times)
TDFI
Description: TDF I is the I-block data format. With the I-block data format, trace data must
be preceded by “#,” and “I.” The setting of the MDS command determines whether the trace
data is transferred as one or two 8-bit bytes. Unlike using the A-block format, you do not
provide the number of data bytes when sending trace data back to the spectrum analyzer.
Restrictions: This format is not recommended for use with an RS-232 interface.
How data is returned: The following table describes what is transferred when the trace data
format is set to I, but the MDS setting is changed.
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 I format and MDS set to binary (MDS B) would
return the ASCII character codes for the following:
#I(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div 32 is repeated 398 times)
If MDS is set to W, querying trace A with the TDF I format would return the ASCII character
codes for the following:
#I(8000 div 256)(8000 mod 256)(7000 div 32)(7000 mod 256)(6000 div 256)(6000 mod 256)(the
number for 6000 div 256, then the number for 6000 mod 256 is repeated 398 times)
!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).
How data is returned: The following table describes what is transferred when the trace data
format is set to B, but the MDS setting is changed.
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 B format and MDS set to binary (MDS B) would
return the ASCII character codes for the following:
(8000 div 32)(7000 div 32)(6000 div 32)(the number for 6000 div 32 is repeated 398 times)
If MDS is set to W, querying trace A with the TDF B format would return the ASCII character
codes for following:
(8000 div 256)(8000 mod 256)(7000 div 32)(7000 mod 256)(6000 div 256)(6000 mod 256)(the
number for 6000 div 256, then the number for 6000 mod 256 is repeated 398 times)
TDFM
Description: TDF M is the measurement data format. The measurement data format transfers
trace data in measurement units, and the measurement data can range from -32768 to
+ 32767.
Restrictions: TDF M cannot be used to send trace data back to the spectrum analyzer.
How trace data is returned: The following table describes what is transferred when the trace
data format is set to M.
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 M would return the ASCII character codes for the
following:
8000,7000,6000,(6000 repeated 398 times),<CR><LF>
Query Response
QTDF
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 7
d e l i m i t e r c h a r a c t e r de i m i t e r
XTEXT
Example
OUTPUT 718 ;"PU;PA 80,80;TEXT%CONNECT ANTENNA%;" Displays CONNECTANTENNA
on the analyzer screen.
OUTPUT 718 ; “PU;PA 100,100;TEXT%50~~;CHR$(250);"%;" Displays 50n on the analyzer
screen.
Description
The TEXT origin is at the lower-left corner of the first character. The pen is placed to the
right of and behind the last character position after the text characters. Line feeds are not
automatically generated for lines that extend past the edge of the screen.
See “LB” for the additional characters available by specifying the ASCII character code. (See
second line of the example for an example of using the ASCII character code.)
The TEXT command also enters the text into the display list. See “DA” for more information
about the display list.
Syntax
TH
XTH
Example
OUTPUT 718*"TH
9 UP-"
8 kncreases the threshold level.
Description
The threshold level is eight graticule divisions below the top of the screen unless otherwise
specified. The threshold level is annotated in reference level units at the lower-left corner of
the spectrum analyzer screen. AUTO deactivates clipping. The TH level is used for next peak
marker movements (see “MKPK”) and the PEAKS command even if the display clipping is off.
Query Response
TIMEDATE
Time Date
Allows you to set the time and date for the spectrum analyzer real-time clock in the
YYMMDDHHMMSS format.
Syntax
T IMEDATE
f-
/
XTIMEQATE
Example
OUTPUT 718;"TIMEDATE 881231135501;" Sets the analyzer time and date to 1:55:01 PM
on 31 December 1988.
Query Response
o u t p u t
terminot i o n *
QTIMEDATE
Syntax
OFF /
ON
XT IMEDSP
Example
OUTPUT 718;"TIMEDSP OFF;"
Query Response
t e r m i n a t i o n
TITLE
Title
Activates the screen title mode. The title is displayed above the top graticule and is left
justified.
Syntax
t i t l e t o b e
r dlsplayed 7
T I T L E c h a r a c t e r del i m i t e r
XTITLE
Example
OUTPUT ~I~;I~TITLE XADJUST ANTENNA%;" Displays ‘“‘ADJUST ANTENNA” on the ana-
lyzer screen.
Description
This function writes a message at the top of the spectrum analyzer
screen. The full width of the display is available for writing a maximum of 53 characters.
However, the marker readout may interfere with the last 26 characters. IP removes the
message.
The SAVET command saves the screen title is along with the trace in the trace register.
Syntax
XTM
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.
VID allows the next sweep to start if the trace data rises across a level set by the display
line. The functions of TM VID and BIDED are identical.
LINE allows the next sweep to start when the line voltage passes through zero, going
positive. The functions of TM LINE and LIYE are identical.
EXT allows the next sweep to start when an external voltage level passes through
approximately 1.5 V, going positive. The external trigger signal level must be between
0 V and + 5 V. Connect the external trigger to the EXT TRIG INPUT. The functions of
TM EXT and l%l’ERl?AL are identical.
TV allows TV triggering if Options 101 and 102, or Option 301 is installed. The functions
of TM TV and TV TftIG are similar. TM TV does not select the TV line number, set up
the amplitude level, change the span, change the bandwidth, or change the sweep
time.
Note Some spectrum analyzer functions are not performed until the spectrum
analyzer is triggered.
Query Response
QTM
Syntax
Example
OUTPUT 718*"MOV
, TO1, 1."
, Tums on the third-order intemnodu-
l&ion measurement.
OUTPUT 718*"TOIR'."
f -, Queries TOIR. TOIR contains the re-
sults of the third-order intermdula-
tion measurement.
ENTER 718;Toi Stores the value of TOIR in the vari-
able lbi.
PRINT 'Third-order intermodulation is ",Toi Prints the results.
OUTPUT 718;"MOV TOI,O;" Turns off the third-order interrnodu-
l&ion measurement.
Description
Setting TO1 to 1 turns on the third-order intermodulation measurement. Setting TO1 to 0 turns
off the third-order intermodulation measurement. When the third-order intermodulation
measurement is turned on, the spectrum analyzer first determines that there are four signals
on the spectrum analyzer display; the four signals must be the two fundamental signals and
two distortion products. All of the signals must be greater than the peak excursion above
the threshold. If four valid signals could not be found for the third-order intermodulation
measurement, the value of TOIR is -100. If four valid signals could be found, the spectrum
analyzer does the following:
1. Finds the four highest on-screen signals. (If the four highest on-screen signals are not the
two signals and two distortion products, the TO1 measurement cannot be performed.)
2. Determines the spacing between the highest two signals. The highest two signals are tone A
and tone B.
3. Verifies that the third and fourth highest signals (distortion A and distortion B) fall above
and below tone A and tone B by the frequency difference between tone A and tone B.
4. Measures the levels of the four signals (tone A, tone B, distortion A, and distortion B) and
calculates the third-order intermodulation intercept.
The third-order intermodulation intercept is calculated as follows:
TOI = (2 x LevelTone A - Leve~Di~tortion A + LeVelTone B)
2
The frequency of the distortion product (Distortion A) is equal to the following:
Frequewm8tortion A = 2 X FrequencYTone A - FreqwwTone B
You must query TOIR to determine the value of the higher third-order intermodulation product.
The third-order intermodulation measurement is repeated at the end of every sweep (TO1
uses the ONEOS command to update the measurement data) until you turn off the third-order
intermodulation measurement.
Restrictions
Turning the TO1 measurement on turns off the following functions: windows display mode
(WINON), N dB point measurement (NDBPNT), the FFT menu measurements (FF’IAUTO,
FFTCONTS, FFTSNGLS), gate utility functions (GDRVUTIL), marker table (MKTBL), peak table
(PKTBL), percent AM (PCTAM), peak zoom (PKZOOM), and power menu measurements (ACP,
ACPE, CHP, and OBW).
You can execute the TO1 command two different ways. You can either execute the TO1
command directly (for example, “TO1 1; I’) or use the MOV command to move the 1 or 0 into
the TO1 command (for example, “MOV TOI, 1; I’). If you use the MOV command, no text is
displayed in the active function area during command execution.
Because TO1 is performed at the end of every measurement sweep, you should turn off
the third-order intermodulation measurement (set TO1 to 0) when you are done with the
third-order intermodulation measurement.
Query Response
r Off 7
o u t p u t
0 ’ t e r m i n a t i o n +
QTO I
Syntax
TOIR
XTOIR
Example
OUTPUT 718;"MOV TOI,l;" Turns on the third-order intermodu-
l&ion nwasurmt.
OUTPUT 718*"TOIR'*"
8 -# Queries TOIR. TOIR contains the re-
sults of the third-order intmnodula-
tion wwasurmt.
ENTER 718;Toi Stores the value of TOIR in the var.6
able lbi.
PRINT "Third-order intermodulation is ",Toi Prints the results.
OUTPUT 718;"MOV TOI,O;" Turns ofl the third-order intemwdu-
k&on rrumsurmt.
Description
TOIR returns a -100 if the TO1 function has not been turned on, or if four on-screen signals are
not valid or are not present. For TO1 to perform a third-order intermodulation measurement,
there needs to be four signals on the spectrum analyzer display, and all four signals must be
greater than the peak excursion above the threshold.
Query Response
TOI
amp1 1 tude
output
t e r m i n a t i o n +
QTOIR
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
XTRA
Use the same syntax for TRB and TRC as shown for TRA, just substitute TRB or TRC for TRA.
1
Item Description/Default Range
Example
10 REAL Trace-a(l:401) Creates a 401-point trace array.
20 OUTPUT 718;"IP;" Initializes analym
30 OUTPUT 718;"TDF P;" Changes the format for real numbers.
40 OUTPUT 718;"SNGLS;"
50 OUTPUT 718;"CF 300MHZ;" Changes the center freqwncy.
60 OUTPUT 718;"SP 200MHZ;" Changes the span.
70 OUTPUT 718;"TS;"
80 OUTPUT 718;"MKPK HI;"
90 OUTPUT 718;"MKCF;" Mioves peak to center of analyzer screen.
100 OUTPUT 718;"TS;" Updates mkmsuremmt trace.
110 OUTPUT 718;"TRA?;" Gets the trace data.
Programming Commands 5-558
TRA/TRB/TRC Trace Data Input and Output
120 ENTER 718;Trace-a(*) Sends the trace data to the computer:
130 OUTPUT 718;"CONTS;" Activates continuous sweep mode
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. Because the lengths of trace A, trace B, and trace C are fixed, there are always 401 or 802
bytes transferred during binary input or binary output mode, respectively.
Query Response
The form of the query response is dependent upon the previously used TDF and MDS
commands as follows:
T D F M o r T D F I=, A S C I I
/ \
output
’ terminot ion ?-’
/ TDF A
/ TDF I \
,- T D F B -\
If Analog+ display mode is turned on, only the 401 or 802 bytes of trace data are returned; the
dot display is not returned.
TRCMEM
Trace Memory
Returns a nonnegative integer that indicates the total number of trace registers available for
SAVET and RCLT.
syntax
Example
OUTPUT 718;"TRCMEM?;" Gets the total number of trace registers.
ENTER 718;Number
DISP Number
Description
The value of TRCMEM is displayed on the spectrum analyzer display when you save a trace,
limit-line table, or table of amplitude correction factors in spectrum analyzer memory with
Trace -3 In&stml .
Query Response
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 A
4 p r e d e f i n e d f u n c t i o n I
G trace element /
Example
OUTPUT 718;"TRDEF NEW,lOO;" LIefines a trace called NEW
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.
Syntax
Example
OUTPUT 718;"TRDSP TRA,OFF;"
Description
TRDSP OFF reduces the time duration between sweeps.
TRGRPH
Trace Graph
Displays a compressed trace on the spectrum analyzer display.
Syntax
d i s p l a y e x p a n d i n g
u s e r - d e f i n e d t r a c e
Example
OUTPUT 718."IP-" Initializes analyzer
OUTPUT 718;"TRiEF NEW,lOO;" D&n,es a trace called NEW with 100 trace
elements.
OUTPUT 718;"CF 300MHZ;SNGLS;" Changes the center frequency, activates single-
sweep moo%.
OUTPUT 718;"TS;" ltLkes sweep.
OUTPUT 718;"COMPRESS NEW,TRA,POS;" Compresses the contents of trace A into trace
NEW
OUTPUT 718;"BLANK TRA;"
OUTPUT 718;"TRGRPH 0,0,400,4,NEW;" Redraws trace NEW 400 rneasurernent units
above the baseline, expanded by a factor of 4.
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
Executes a list of spectrum analyzer commands at the end of each sweep.
Syntax
/ s t r i n g d a t a f i e l d
A - b l o c k d a t a f i e l d
l - b l o c k d a t a f i e l d -1
Msb length Most signilicant byte of a two-byte word that describes the
number of bytes transmitted.
Lsb length Least significant byte of a two-byte word that describes the
number of bytes transmitted.
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.
The operands and results of trace math are truncated if they are not within certain limits. If
operating on traces A, B, or C, trace lengths must be less than or equal to 401. If operating on
user-defined traces, results must be less than or equal to 2047.
After the TRMATH command is executed, any current ONEOS definitions are executed, and
then any current limit-line testing (LIMITEST).
Limit the number of characters (between the delimiters) in the list of spectrum analyzer
commands to a maximum of 2047 characters.
Clearing the TRMATH definition: IP clears the TRMATH definition. You can use the DISPOSE
command to clear the TRMATH definition also.
Query Response
TRPRST
Trace Preset
Sets the trace operations to their preset values.
Syntax
Related Commands: AMB, BLANK, CLRDSP, CLRW, DISPOSE, DL, IP, TH.
Example
OUTPUT 718;"TRPRST;"
Description
TRPRST executes these commands:
AMB OFF
AMBPL OFF
ANLGPLUS OFF
BLANK TRB
BLANK TRC
CLRW TRA
DISPOSE ONEOS
DISPOSE ONSWP
DISPOSE TRMATH
DL OFF
EM
TH OFF
Syntax
XTRSTAT
Example
This example returns the measurement state of traces A, B, and C.
DIM States$[40] Declares arra2/ for results.
OUTPUT 718;"TRSTAT?;" Returns the status results to the computer:
ENTER 718 USING I'-K";States$
PRINT States$ Prints out status of traces.
Query Response
c
- ; o u t p u t
terminot i o n l
QTRSTAT
TS
Thke Sweep
Starts and completes one full sweep before the next command is executed.
Syntax
XTS
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.
In the example below, the command sequence does not allow sufficient time for a full sweep of
the specified span before VIEW is executed. Therefore, only the span set by the instrument is
displayed in trace A.
OUTPUT 718;"IP;SNGLS;CF 400MHZ;SP 20KHZ;VIEW TRA;"
A TS command inserted before VIEW makes the spectrum analyzer take one complete sweep
before displaying trace A. This allows the spectrum analyzer sufficient time to respond to each
command in the
sequence.
OUTPUT 718;"IP;CF 400MHZ;SP 20MHZ;TS;VIEW TRA;"
TS is recommended before transmission of marker data and before executing marker operations
such as peak search. This is because the active marker is repositioned at the end of each
sweep. When the spectrum analyzer receives a TS command, it is not ready to receive any
more data until one full sweep has been completed. However, when slow sweep speeds are
being used, the controller can be programmed to perform computations or address other
instruments while the spectrum analyzer completes its sweep.
On-event commands (ONCYCLE, ONDELAY, ONEOS, ONMKR, ONSRQ, ONSWP, ONTIME, and
TRMATH) do not interrupt a take sweep.
Note When MKPAUSE or MKSTOP are activated, TS considers the sweep complete
when it reaches the active marker.
Syntax
I ine
XTVL INE
Example
OUTPUT 718;"TVLINE 20;"
Query Response
o u t p u t
t e r m i n a t i o n +
TVSFRM
TV Frame
Selects the type of video frame to trigger on.
Syntax
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
BOTH is the same as TVSFRM VERTICAL.
When used as a predefined variable, TVSFRM returns a number. The number that is returned
depends upon the setting of the TVSFRM parameter, as shown in the following table.
I VERTICAL or BOTH I 0 I
EVEN 1
ODD I 2 I
Query Response
OTVSFRM
TVSTND
TV Standard
Selects the triggering for NTSC, PAL, PAL-M, and SECAM-L formats.
Syntax
XTVSTND
Example
OUTPUT 718;"TVSTND PAL;"
Description
TVSTND sets corrections for TVLINE for each standard format. TVSTND sets the polarity
to trigger on (positive or negative) automatically; it is necessary to use TVSYNC after using
TVSTND only if you require a non-standard format.
When used as a predefined variable, TVSTND returns a number. The number that is returned
depends upon the setting of the TVSTND parameter, as shown in the following table.
NTSC 0
PALM 1
PAL 2
SECAML 3
Query Response
QTVSTND
TVSYNC
TV Sync
Selects the polarity of video modulation to trigger on.
syntax
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.
When used as a predefined variable, TVSYNC returns a “0” when TVSYNC is set to POS, a “ 1”
if TVSYNC is set to NEG.
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 t r a c e /
b t r a c e r a n g e /
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: FFT.
Example
Connect calibrator signal to the spectrum analyzer input.
OUTPUT 718;"IP;" Initializes analyzer:
OUTPUT 718;"CF 300MHZ;" Changes the center frequency.
OUTPUT 718;"SP 0HZ;ST 800MS;" Changes span, sweep time.
OUTPUT 718;"TRDEF NEW,401;" Dq@uxs a trace called NEW
OUTPUT 718;"TWNDOW NEW,UNIFORM;" Trace NE?Vstores the window algorithm, UNIFORM.
OUTPUT 718;"CLRW TRB;"
OUTPUT 718;"SNGLS;TS;TS;" Activates single-sweep mode and updates trace.
OUTPUT 718;"FFT TRA,TRB,NEW;" Performs fast I;burier transform on trace B and
stores the results in trace A.
OUTPUT 718;"BLANK TRB;"
OUTPUT 718;"VIEW TRA;" Displays the result.
Description
The trace window function creates a trace array according to three built-in algorithms:
UNIFORM, HANNING, or FLATTOP When used with the FFl? command, the three algorithms
give resultant passband shapes that represent a give-and-take between amplitude uncertainty,
sensitivity, and frequency resolution. See “FFT” for more information about these algorithms
and the FFT function.
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. For
example, the programming example increases the resolution bandwidth, because marker peak
(MKPK) is not an active function.
The active functions are ACPBW, ACPSP, AT, CF, CRTHPOS, CRTVPOS, DL, DOTDENS, FA,
FB, FMGAIN, GD, GL, LG, MKA, MKD, MKFCR, MKN, MKPAUSE, MKPX, ML, NDB, NRL, RB,
RCLS, ROFFSET, RL, RLPOS, SAVES, SAVRCLN, SETDATE, SETTIME, SP, SQLCH, SRCALC,
SRCAT, SRCPOFS, SRCPSWP, SRCPWR, SRCTK, SS, ST, TH, TVLINE, VB, VBR, and user-defined
active function specified by the ACTDEF command.
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.
I I
QUSTATE
Syntax
v a r i a b l e name
/ \
7 initial value 7
VARDEF c number
c
b predefined variable d
buser-defined variable/
* predefined function /
b trace element /
XVARDEF
Example
OUTPUT 718;"VARDEF V-AR,O;" Lk$nes variable called V-AR and as-
signs it a value of 0.
DISP "ENTER THE VALUE OF THE VARIABLE USING
THE ANALYZER KEYS"
OUTPUT 718;"V,AR EP;" The value of VAR is changed by
using the front-panel controls.
OUTPUT 718;"V,AR?;"
ENTER 718;N Returns entered value of V-AR to the
computer:
PRINT N LGpluys value on the computer screen.
OUTPUT 718;"IP;" Initializes analyzer:
OUTPUT 718."V
# - AR'."
*, The value of V-AR changes to its
initial value afler an I.
ENTER 718;N
PRINT N
Description
The VARDEF command creates a user-defined variable and assigns it a value. User-defined
variables can be used in many of the spectrum-analyzer remote-control processes. Use
user-defined variables wherever “user-defined variable” appears in the syntax diagrams. An
instrument preset (IP) sets user-defined variables to their initial value (see example).
An error results if a variable name is the same as any reserved word. ‘Ihble 5-2 lists reserved
words.
User-defined variables occupy spectrum analyzer memory. Use the DISPOSE command to clear
user-defined variables from memory.
Syntax
. .
VAR I ANCE
Prerequisite Commands: TRDEF when using a user-defined trace. TS when using trace data.
Related Commands: MEAN, RMS, STDEV.
Example
OUTPUT 718;"IP;" Initializes analyzex
OUTPUT 718;"SNGLS;TS;" Activates single-sweep mode.
OUTPUT 718;"VARIANCE TRA?;" I&turns variance of trace A to computer:
ENTER 718;Number Stores value in computer variable.
DISP Number;"MEASUREMENT UNITS" LXsplu~s the results on computer screen.
Description
‘lkking the square root of a variance yields the standard deviation value.
The formula to calculate the variance is as follows:
n - l
Query Response
Syntax
X”A”G
Example
OUTPUT 718."VAVG
, 150."
3 Video averages the trace.
Description
Use VAVG to view low-level signals without slowing the sweep time. Video averaging can
lower the noise floor by more than a 30 Hz video bandwidth if a large number of sweeps has
been specified for averaging. VAVG may also be used to monitor instrument state changes (for
example, changing bandwidths, center frequencies) while maintaining a low noise floor. The
active function readout indicates the number of sweeps to be averaged; the default for the
number of sweeps is 100 unless otherwise specified. Executing “VAVG OFF;” turns off video
averaging. Executing “VAVG ON;” turns on video averaging.
Query Response
termination ---)
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 3-6
‘. P ;’
. ...__..’ ‘I
Example
OUTPUT 718;"VB 10KHZ;" Changes the video bandwidth to 10 kHz.
Description
The resolution bandwidth, video bandwidth, and sweep time are normally coupled to the
span. Executing VB uncouples video bandwidth from resolution bandwidth (it does nothing to
the sweep-time, resolution-bandwidth, and span coupling). Executing AUTO recouples video
bandwidth to the resolution bandwidth.
Frequency values other than the values in the 1, 3, 10 sequence are rounded to the nearest
permissible value.
Query Response
output
t e r m i n a t i o n +
VBR
Video Bandwidth Ratio
The VBR parameter is multiplied by the resolution bandwidth to determine the automatic
setting of video bandwidth.
Syntax
Example
OUTPUT 718;"VBR 1;"
Description
Ratio values other than the values in the 1, 3, 10 sequence are rounded to the nearest
permissible value.
VBR returns a real number when used as a predefined variable.
Query Response
Syntax
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
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 v a r i a b l e
% u s e r - d e f i n e d v a r i a b l e 2
h p r e d e f i n e d f u n c t i o n J
b t r a c e element J
Example
Use WAIT to suspend spectrum analyzer operation.
130 OUTPUT 718;"TRDSP TRA,OFF;TS;" Blanks trace A.
140 OUTPUT 718;"WAIT 2SC;" Suspends analgwr operation for 2 seconds.
150 OUTPUT 718;"TRDSP TRA,ON;" L?ispla~s trace A.
Description
The WAIT command suspends all spectrum analyzer operation for the specified time. Use the
ONDELAY command if you want the spectrum analyzer to keep taking data during the elapsed
time period.
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~" Turns on the windows display mode.
OUTPUT 718;"WINNE;T;" Selects the window that is currently not active to be the active
window.
Description
When the windows display mode is activated, there will be two windows displayed on the
spectrum analyzer display. Only one of the windows is active (the currently active window will
have a solid line around the graticule rather than a broken line.) You can use the WINNEXT
command to select the active window.
WINOFF
Window Off
Turns off the windows display mode.
Syntax
WI NOFF
Example
OUTPUT 718;"WINON;" Turns on the windows display mode.
OUTPUT 718; “WINNEXT; ” Selects the window that is currently not active to be the active
window.
OUTPUT 718; “WINOFF; ” Turns ofl the windows display mode.
Description
When you execute WINON, there will be two windows displayed on the spectrum analyzer
screen. You must execute WINOFF to turn the windows off and return to a single display,
and the display will have the settings of the last active window. In contrast, WINZOOM also
changes from two windows to one full screen display but does not exit the windows display
mode; you can still access the second window by executing WINZOOM again.
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. Only one of the windows is active (the
active window will have a solid line around the graticule rather than a broken line.) You can
use the WINNEXT command to select the active window. The instrument state of the active
window can be changed without affecting the state of the inactive window.
Zone marker: The zone marker is shown in the upper window by two vertical lines. The
frequency span between the two edges of the zone marker is the frequency range of the lower
window. The zone marker can be moved and changed by using the ZMKCNTR, ZMKSPAN,
ZMKPKNR, or ZMKPKNL programming commands. Changing the span or center frequency of
the lower window will change the span or location of the zone marker on the upper window
correspondingly.
Most programming commands can be executed when the windows display mode is used.
Some functions cannot be used with the windows display mode, however. ‘Ihble 5-11 lists the
programming commands that, when executed, exit the windows display mode.
When in the windows display mode, saving the trace or state saves the state of the currently
active window only. The recall state function recalls the stored state into the currently active
window.
You must execute WINOFF to turn the windows off.
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;" Turns on the windows display rmde.
OUTPUT 718;"WINZOOM;" Expands the size of the active window.
Description
The first time WINZOOM is executed, it expands the active window. Executing WINZOOM again
restores the windows display mode so that both of the windows are displayed on the spectrum
analyzer display.
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
Prerequisite Commands: TRDEF when using a user-defined trace. ACTDEF or VARDEF for a
user-defined variable. TS when using trace data.
Related Commands: AXB, BXC.
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
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
.:
..’
...
/
/
XZMKCNTR
Example
OUTPUT 718;"WINON;" Turns on the windows display m&e.
OUTPUT 718;"ZMKCNTR 300MHZ;" Places the zone marker at 300 MHz
Description
ZMKCNTR allows you to move the zone marker within the frequency range displayed in the
upper window. When the lower window is the active window, changing the center frequency
(CF) or frequency span (SP) of the lower window changes the position of zone marker in the
upper window.
Restrictions: Use ZMKCNTR only if the window is in non-zero span; ZMKCNTR does not apply
if the window is in the time domain. The zone marker can be moved beyond the frequency
range displayed by the upper window (the zone marker cannot exceed the frequency range of
the spectrum analyzer, however.) ZMKCNTR should only be used when the windows display
mode is turned on.
You can use ZMKSPAN to change the span of the zone marker.
Query Response
ZO”e
m a r k e r 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 I QZMKCNTR
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
Example
OUTPUT 718;"WINON;" Turns on the windows display mode.
OUTPUT 718;"ZMKPKNL;" PZuces the zone mm&r at the next peak to the left of the cum-ent
position of the zone marker:
Description
ZMKPKNL does the following:
1. Searches for the next signal peak outside and to the left of the zone marker. ZMKPKNL only
applies if the window is in a non-zero span; ZMKPKNL does not apply if the window is in
the time domain.
2. If a peak is found, ZMKPKNL moves the zone marker so that it is centered around the peak.
If a signal peak cannot be found, or the window is in zero span, the zone marker is not
moved.
3. Changes the center frequency of the lower window to the frequency of the signal peak.
‘Ib be considered a signal peak, the signal must be greater than the peak excursion (see
“MKPX” for more information about the peak excursion).
ZMKPKNL should only be used when the windows display mode is turned on.
Syntax
XZMKPKNR
Example
OUTPUT 718;"WINON;" Turns on the windows display wmd.e.
OUTPUT 718;"ZMKPKNR;" Places the zone marker at the next peak to the right of the current
position of the zone marker:
Description
ZMKPKNR does the following:
1. Searches for the next signal peak outside and to the right of the zone marker. ZMKPKNR
only applies if the window is in a non-zero span; ZMKPKNR does not apply if the window is
in the time domain.
2. If a peak is found, moves the zone marker so that it is centered around the peak. If a signal
peak cannot be found, or the window is in zero span, the zone marker is not moved.
3. Changes the center frequency of the lower window to the frequency of the signal peak.
To be considered a signal peak, the signal must be greater than the peak excursion (see
“MKPX” for more information about the peak excursion).
ZMKPKNR should only be used when the windows display mode is turned on.
ZMKSPAN
Zone Marker Span
Changes the width of the zone marker.
Syntax
XZMKSPAN
Example
OUTPUT 718;"WINON;" Turns on the windows display mode.
OUTPUT 718;"ZMKSPAN IOOMHZ;" Sets the span of the zone marker to 100 MHz
Description
ZMKSPAN allows you to change the frequency span of the zone marker that is displayed in
the upper window. When the lower window is the active window, frequency span (SP) of the
lower window changes the frequency span of zone marker in the upper window.
Restrictions: Use ZMKSPAN only if the window is in non-zero span; ZMKSPAN does not apply
if the window is in the time domain. ZMKSPAN should only be used when the windows display
mode is turned on.
Query Response
t e r m i n a t i o n ---*
QZMKSPAN
The messages are listed in alphabetical order on the following pages; each message is defined,
and its type is indicated by an (H), (U), or (M).
$75LOCKOFF
Indicates slow YTO tuning. This message may appear if the spectrum analyzer is using
default correction factors. If this message appears constantly, perform the CAL FREQ routine
to try to eliminate this message. 4 LOCK OFF appears briefly during the CAL FREQ routine,
during instrument preset, or when the frequency value is changed; this is normal and does
not indicate a problem. (U) and (H)
ADGBV FAIL
Indicates a hardware failure. (H)
ADC-GND FAIL
Indicates a hardware failure. (H)
ADGTIME FAIL
Indicates a hardware failure. (H) and (U)
CAL:- - -
During the self-calibration routine, messages may appear on the display to indicate how the
calibration routines are progressing. For example, sweep, freq, span, MC delay, FM coil,
and atten can appear on the spectrum analyzer display. 4 LOCK OFF appears briefly during
the CAL FREQ self-calibration routine; this is normal and does not indicate a problem. (M)
CAL:- - - : done Press CAL STORE to save
Indicates that the self-calibration routine is finished and that you should press CAL STORE.
(Ml
CAL: cannot execute CALAMP enter: 0 dB PREAMP GAIN
The preamplifier gain should be set to 0 dB before the CAL AMPTD routine is performed.
‘0 PARALLEL 0
@c-j@
n
@
00
OPTION 041
cu133e
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. A computer gives instructions and is the
“controller. ” The spectrum analyzer takes orders and is the “listener.” The spectrum analyzer
is also capable of transmitting data over the party line. Devices that transmit data back to the
computer are “talkers. n
Each device on the party line has an address. Device addresses are used by the controller to
specify who talks and who listens. A device’s address is usually set at the factory.
The number 7 preceding the device’s address (for example, Analyzer=718), signifies that the
HP-IB interface is selected.
When you turn on the spectrum analyzer, the HP-IB address appears on the screen (for
example, HP-IB ADRS : 18). If necessary, you can reset the address of the spectrum analyzer by
pressing @fiFiF], More 2 of 3 , AWLYZER ADDRESS , entering in the address number using
the front-panel number keys, then pressing Cm]. You may use any address between 0 and
30. (Usually, 1 is reserved for printers and 5 for plotters.)
lo PARALLEL 0 SERIAL
10.
v
.oJ
V
OPTION 043
cu134e
The RS-232 interface utilizes serial data transmission. Data is sent, one bit at a time, in groups
of 10 to 12 data-bits.
Two devices, such as the spectrum analyzer and a computer, can exchange commands and data
over the RS-232 connection. This interface uses two serial data lines and five handshaking
lines. Handshaking signals are required for full hardware control of the information exchange.
It is possible to use a three-wire connection, in some situations.
Another parameter for the RS-232 interface is the “baud,” or data rate. This is the speed at
which the computer and spectrum analyzer exchange data. The baud rate of each of the two
RS-232 devices must be the same.
Baud Rate
The speed at which data is exchanged is called the baud rate or data rate, This is usually
expressed in baud or bits per second. Common baud rates are 1200 and 9600.
Note Some of the programs in this manual use 1200 baud for proper operation. If
your system uses the RS-232 handshake lines, you can use 9600 baud for all of
the programs.
If you need to change the baud rate, refer to the “Setting the Spectrum Analyzer Baud Rate” in
this appendix.
Protocol
The RS-232 protocol is as follows:
Baud rate 300 to 57,000 baud.
8 bits per character.
1 stop bit.
No parity.
Software handshake-none.
Xon/Xoff and ENQ/ACK not supported by the spectrum analyzer.
When BREAK is issued to the spectrum analyzer, the following occurs:
1. The present command is aborted.
2. The input buffer is cleared.
3. The output buffer is cleared.
4. All trace output is stopped.
5. The command parser is reinitialized.
BREAK does not perform any of the following:
n Invoke instrument preset.
n Clear SRQ off screen.
H Clear illegal command off screen.
The RTS signal goes true on power-up and does not go false during any communication. It stays
true while power is on.
Figure C-2 and Figure C-3 lists the signal connections between a personal computer and the
spectrum analyzer.
GND 7
DCD 8
DTR 2 0
no connection 9 RI
cu135e
DTR 4
GND 5 5 GND
RTS 7 1 DCD
I:: ,” z 4 DTR
RI 9 no connection 9 RI
cu136e
If your computer operates with only three wires, you can use the cable connections in
Figure C-4.
Some computers require that the CTS, DSR, and DCD inputs be true before serial transmission
can occur. lb solve this problem, you can wire these three signals to the personal computer
RTS line.
cu137e
ThinkJet R S - 2 3 2 Analyzer
DTR 20
no connection 9 RI
cul4le
cu139e
Modem Allalyzer
cu140e
Plotter Atlalvzer
DSR 6 F *O DTR
GND 7 < 7 GND
DTR 20 > > 5 CTS
cul13e
Note Some of the programs in this manual use 1200 baud for proper operation. If
your system uses the RS-232 handshake lines, you can use 9600 baud for all of
the programs.
Index-l
B Catalog Internal, Catalog Card softkey. See
Bl, 5-9 CAT
B2, 5-9 CATALOG ON EVENT softkey. See CAT
B3, 5-9 CENTER FREQ softkey. See CF
B4, 5-9 center frequency, 2-4, 2-5, 5-93
back space center frequency step size, 5-524
label function, 5-266 CF, 2-4, 2-5, 5-93
Band Lock softkey. See HNLOCK CF STEP AUTO MAN softkey. See SS
base band instrument preset, 5-267 Change Prefix softkey. See PREFX
BASIC Change Title softkey. See TITLE
INPUT command, 2-6, 2-7 changing the amplitude units
REAL command, 2-8 AUNITS, 5-7 1
BAUDRATE, 5-76 changing the HP-IB address, B-l
baud rate of spectrum analyzer, 5-76 changing the video bandwidth
BAUD RATE softkey. See BAUDRATE VB, 5-587
B format, 3-22 CHANNEL BANDWDTH softkey. See ACPBW
binary, 5-523 channel bandwidth, 5-35
BIT, 5-78 channel power, 5-95
bit checking, 5-78 CHANNEL POWER softkey. See CHP
BITF, 5-80 channel spacing, 5-47
bit flag, 5-80 CHANNEL SPACING softkey. See ACPSP
BL, 5-9 character, 5-3
BLANK, 5-82 character & EOI, 5-3
BLANK A, BLANK B, BLANK C softkey. See characters and secondary keywords, 5-5-8
BLANK CHP, 5-95
blanking part of the display. See CLRBOX CHPGR, 5-97
blank trace, 5-82 clear average, 5-98
B * C softkey. See BXC clear box, 5-99
B - DL + B softkey. See BML clear display, 5-101
BML, 5-83 clearing on-event algorithms with ERASE,
BND LOCK ON OFF softkey. See HNUNLK 5-152
BREAK clearing the softkey definitions, 5-246
RS-232 operation, C-2 CLEAR PARAM softkey. See GDRVCLPAR
B + C softkey. See BTC clear pulse parameters, 5-190
BTC, 5-84 clear status byte, 5-103
BXC, 5-85 clear to send
RS-232 handshaking line, C-l
C clear write, 5-102
Cl, 5-9 CLEAR WRITE A, CLEAR WRITE B, CLEAR
c2, 5-9 WRITE C softkey. See CLRW
CA, 5-9 CLRAVG, 5-98
CAL, 5-86 CLRBOX, 5-99
CAL AMPTD softkey. See CAL CLRDSP, 5-101
CAL FETCH softkey. See CAL CLRW, 5-102
CAL FREQ & AMPT.D softkey. See CAL CLS, 5-103
CAL FREQ softkey. See CAL CMDERRQ, 5-104
calibration, 5-86 CNF, 5-105
CAL STORE softkey. See CAL CNTLA, 5-106
CAL YTF softkey. See CAL CNTL A 0 1 softkey. See CNTLA
carriage return CNTLB, 5-107
label function, 5-266 CNTL B 0 1 softkey. See CNTLB
CAT, 5-89 CNTLC, 5-108
catalog, 5-89 CNTL C 0 1 softkey. See CNTLC
cataloging spectrum analyzer memory, 5-9 1 CNTLD, 5-109
cataloging the memory card, 5-90 CNTL D 0 1 softkey. See CNTLD
Index.2
CNTLI, 5-110 CPL VBW ON OFF softkey. See GDRVVBW
CNT RES AUTO MAN softkey. See MKFCR CR, 5-9
COMB, 5-111 create a DLP with the DLP editor, 4-17
comb generator control creating a DLP, 4-2
COMB, 5-l 11 creating a modular DLP, 4-7
COMB GEN ON OFF softkey. See COMB creating a trace window, 5-578
combining two traces, 5-114 creating a user-defined trace, 5-562
COM command, 2-3 creating a user-defined variable, 5-583
command complete, 5-522 CRT HORZ POSITION softkey. See CRTHPOS
command mnemonic, 5-2 CRTHPOS, 5-l 19
commands, 2-2 CRT VERT POSITION softkey. See CRTVPOS
command terminators, 5-2 CRTVPOS, 5-120
commenting programming lines, 2-10 cs, 5-9
compatible commands, 5-9-10 CT, 5-9
COMPRESS, 5- 112 CTA, 5-121
compress trace, 5-l 12 CTM, 5-123
COMPUTE ACPGRAPH softkey. See CTS
ACPGRAPH RS-232 handshaking line, C-l
compute the adjacent channel power graph, current units, 5-4
5-42 cv, 5-9
CONCAT, 5-l 14
concatenate, 5- 114 D
confidence test, 5- 105 DA, 5-124
configuring your computer system, l-l data byte, 5-3
CONF TEST softkey. See CNF data byte & EOI, 5-3
connecting a modem data carrier detect
RS-232 operation, C-6 RS-232 handshaking line, C-2
connecting your spectrum analyzer to a data entry
printer or plotter, l-11 disabling, 5-228
connection an HP-GL plotter (RS-232 data lines
operation), C-6 RS-232, C-l
continuous sweep, 5-l 16 data terminal ready
continuous sweep measurement, 5-37 RS-232 handshaking line, C-2
CONTINUS FFT softkey. See FFTCONTS date mode, 5-127
CONT MEAS softkey. See ACPCONTM DATEMODE, 5-127
controlling the marker counter, 5-338 DATEMODE MDY DMY softkey. See
controlling trace data with a computer, 3-2 DATEMODE
CONTS, 5-l 16 DCD
convert to absolute units, 5-121 RS-232 handshaking line, C-2
convert to measurement units, 5-123 DEFAULT CAL DATA softkey. See CAL
copying the source to a destination DEFAULT SYNC softkey. See SYNCMODE
MOV, 5-370 define function, 5-184
COPY key. See PLOT, PRINT define terminator, 5-145
correction factors on, 5-117 delay sweep for time window, 5-209
CORRECT ON OFF softkey. See CAL, CORREK DELETE FILE softkey. See DISPOSE, PURGE
CORREK, 5-l 17 delete limit-line table, 5-269
COUPLE, 5-l 18 deleting a DLP from analyzer memory, 4-14
COUPLE AC DC softkey. See COUPLE deleting a file from a RAM card, 5-453
couple resolution bandwidth to pulse width, deleting on event commands, 5-132
5-202 deleting softkeys, 5-132
couple sweep time to pulse repetition interval, delimiter, 5-3
5-206 delta
couple video bandwidth to gate length, 5-215 marker type, 5-364
CPL RBW ON OFF softkey. See GDRVRBW DEMOD, 5-128
CPL SWP ON OFF softkey. See GDRVST DEMOD ON OFF softkey. See DEMOD
Index-3
demodulation, 5-128 FUNCDEF, 5- 184
DET, 5-129 downloadable programs
detection mode, 5-129 using abort, 5-30
DETECTOR PK SP NG, DETECTOR SMP PK draw box, 5-141
softkey. See DET DRAWBOX, 5-141
determining available analyzer memory, DSP LINE ON OFF softkey. See DL
4-12 DSPLY, 5-143
determining if a function is active, 5-54 DSR
determining the amount of memory needed RS-232 handshaking line, C-2
for a DLP, 4-12 DT, 5-145
determining the amount of space on a RAM DTR
card, 4-12 RS-232 handshaking line, C-2
determining the trace status, 5-570
digit, 5-3 E
display, 5- 143 El, 5-9
display address, 5- 124 E2, 5-9
DISPLAY CNTL I softkey. See CNTLI E3, 5-9
displaying a compressed trace, 5-565 E4, 5-9
displaying a trace, 5-564 EDGE POL POS NEG softkey. See GP
displaying a variable with DSPLY, 5-143 EDIT CAT ITEM softkey, 4-19
displaying text on the spectrum analyzer editing a catalog item, 4-19
screen EDIT LAST softkey, 4-18
TEXT, 5-549 Editor softkey, 4-16
displaying the screen title, 5-553 EE, 5-146
displaying the softkey menu with MENU, EK, 5-148
5-313 ELSE, 5-236
displaying the time and date, 5-552 EM, 5-9
display line, 5-135 enable entry, 5-146
display list, 5-125 enable knob, 5-148
DISPOSE, 5-131 enable limit line testing, 5-291
DISPOSE USER MEM softkey. See DISPOSE ENDIF, 5-236
DIV, 5-133 end of sweep, 5-522
divide, 5- 133 end-or-identify, 3-9
DL, 5-135 END statement, 3-25
DLP enhancements
definition, 4- 1 label function, 5-266
if the DLP causes a spectrum analyzer ENTER, 5-149
problem, 4-2 1 enter From HP-IB, 5-149
required space on a RAM card, 4-12 entering values into a DLP, 4-6
spectrum analyzer memory required, 4-12 enter limit-line segment for frequency, 5-285
DLP editor, 4-15 enter limit-line segment for sweep time,
access, 4-16 5-288
creating a DLP, 4-17 enter parameter function, 5-151
modifying the DLP, 4-18 ENTER PRI softkey. See GDRVPRI
DLP programming guidelines, 4-20 ENTER REF EDGE softkey. See GDRVREFE
DN, 5-137 enter reference edge, 5-204
DONE, 5-138 ENTER WIDTH softkey. See GDRVPWID
DOTDENS, 5-140 EOI, 3-9, 3-25
dot density, 5-140 EP, 5-151
dot density and analog display emulation, ERASE, 5-152
5-65 erasing a DLP from analyzer memory, 4-14
dotted lines, 5-2 EX, 5-9
down, 5-137 exchange, 5-597
downloadable program exchange trace A and trace B, 5-75
definition, 4-l exchanging traces
Index-4
XCH, 5-598 FFT percent AM readout, 5-173
excursion FFT signal clipped, 5-166
marker peak excursion, 5-352 FFT single sweep, 5-174
executing a DLP, 4-9 FFTSNGLS, 5-174
executing a DLP with a softkey, 4-9 FFTSTAT, 5-176
executing a DLP within a program, 4-9 FFT status, 5-176
EXP, 5-153 FFTSTOP, 5-177
exponent, 5-153 FFl’ stop frequency, 5-177
external keyboard, 4-15 field width, 5-143
external keyboard installation, 4-15 field width and decimal places specified
external preamplifier gain, 5-445 OUTPUT, 5-411
EXTERNAL softkey. See TM finding the absolute value, 5-31
external trigger mode, 5-554 finding the maximum
MXM, 5-375
F finding the minimum value, 5-319
FA, 5-156 fixed
fast Fourier transform, 5-160 marker type, 5-364
creating a trace window, 5-578 FLATTOP filter
marker readout, 5-354 FFT, 5-161
FB, 5-158 FM gain, 5-179
FFT, 5-160 FMGAIN, 5-179
creating a trace window, 5-578 FM GAIN softkey. See FMGAIN
FFTAUTO, 5- 164 FOFFSET, 5-180
FFICLIP, 5- 166 force service request, 5-520
FFT continuous sweep, 5-167 FORMAT, 5-182
FFTCONTS, 5- 167 format card, 5-182
FFT marker readout, 5-354 FORMAT CARD softkey. See FORMAT
FFT markers, 5-168 form feed
FFI’ MARKERS softkey. See FFTMKR label function, 5-266
FFI’ marker to FFT stop frequency, 5-170 frame
FFT marker to midscreen, 5-169 selecting the type of video frame, 5-573
FFI’ menu commands free-field ASCII format
FFI’ continuous sweep (FFI’CONTS), 5-167 OUTPUT, 5-411
FFT markers (FFTMKR), 5-168 free-field ASCII with carriage return and line
FFI’ marker to FFT stop frequency (FFI’MS), feed terminator
5-170 OUTPUT, 5-4 11
FFT marker to midscreen (FFTMM), 5-169 free-field ASCII with line feed and an EOI
FFT off (FFTOFF), 5-171 terminator
FFT percent AM (FFTPCTAM), 5-172 OUTPUT, 5-4 11
FFT percent AM readout (FFTPCTAMR), free-field format with no terminator
5-173 OUTPUT, 5-4 11
FFI’ signal clipped (FFTCLIP), 5-166 FREE RUN softkey. See TM
FFI’ single sweep (FFTSNGLS), 5-174 free trigger mode, 5-554
FFI status (FFTSTAT), 5-176 FREQ OFFSET softkey. See FOFFSET
FFI’ stop frequency (FFTSTOP), 5-177 frequency
marker to auto FFI’ (FFI’AUTO), 5-164 marker readout, 5-354
FFTMKR, 5-168 start frequency, 5-157
FFTMM, 5-169 frequency-amplitude correction factors
FFTMS, 5-170 number of, 5-64
FFT Off, 5-171 frequency offset, 5-180
FFTOFF, 5-171 frequency units, 5-4
FF”I’ OFF softkey. See FFTOFF FS, 5-183
FFTPCTAM, 5-172 full span, 5-183
FFTPCTAMR, 5- 173 FULL SPAN softkey. See FS
FFI’ percent AM, 5-172 FUNCDEF, 5- 184
Index-5
FUNCDEF command GDRVGT, 5- 194
avoiding problems, 4-3 GDRVGTIM, 5-196
functional index, 5-1, 5-11-28 GDRVPRI, 5-198
function keys on the external keyboard, GDRVPWID, 5-200
4-16 GDRVRBW, 5-202
GDRVREFE, 5-204
G GDRVST, 5-206
GATE, 5-186 GDRVSWAP, 5-208
gate control, 5-187 GDRVSWDE, 5-209
GATECTL, 5-187 GDRVSWP, 5-2 11
GATE CTL EDGE LVL softkey. See GATECTL GDRVUTIL, 5-2 13
gate delay, 5-189, 5-191 GDRVVBW, 5-215
GATE DELAY softkey. See GD, GDRVGDEL Get Plot, 5-217
gate length, 5-193 GETPLOT, 5-2 17
GATE LENGTH softkey. See GDRVGLEN, Get Print, 5-219
GL GETPRNT, 5-2 19
GATE ON OFF softkey. See GATE, GDRVGT GL, 5-221
gate polarity, 5-222 GP, 5-222
gate preset, 5-188 GR, 5-223
gate time length, 5-221 graph, 5-223
gate trigger to marker position for time graphics
window, 5-196 entering graphics in the display list, 5-125
gate utility, 5-213 GRAT, 5-224
gate utility commands graticule, 5-224
clear pulse parameters (GDRVCLPAR), GRAT ON OFF softkey. See GRAT
5-190 GW BASIC
couple resolution bandwidth to pulse width OPEN command, 3-5
(GDRVRBW), 5-202 GW BASIC DIM, 3-11
couple sweep time to pulse repetition
interval (GDRVST), 5-206 H
couple video bandwidth to gate length handshaking connection
(GDRVVBW), 5-215 RS-232 operation, C-2
delay sweep for time window handshaking lines
(GDRVSWDE), 5-209 RS-232, C-l
enter reference edge (GDRVREFE), 5-204 HANNING filter
gate delay for the frequency window FFT, 5-161
(GDRVGDEL), 5-191 hardware broken, 5-522
gate length for the frequency and time hardware error messages, A-l
windows (GDRVGLEN), 5-193 harmonic number, 5-229
gate trigger to marker position for time harmonic number lock, 5-230
window (GDRVGTIM), 5-196 HAVE, 5-225
gate utility (GDRVUTIL), 5-213 HD, 5-228
pulse repetition interval (GDRVPRI), 5-198 Hewlett-Packard interface bus, B-l
pulse width (GDRVPWID), 5-200 HN, 5-229
sweep time for the time window HNLOCK, 5-230
(GDRVSWP), 5-211 HNUNLK, 5-233
update the time or frequency window hold data entry, 5-228
(GDRVSWAP), 5-208 HOLD softkey. See HD
window gate control (GDRVGT), 5-194 horizontal position of CRT display, 5-119
GATE UTILITY softkey. See GDRVUTIL HP 9000 Series 200 technical computers, l-3
GC, 5-188 HP 9000 Series 300 technical computers, l-5
GD, 5-189 HP BASIC
GDRVCLPAR, 5-190 CLEAR command, 2-2
GDRVGDEL, 5-191 CREATE command, 3-4
GDRVGLEN, 5-193 DIM command, 3-9
Index-6
END command, 2-2 key enhance, 5-255
ENTER, 3-9 KEYEXC, 5-260
LOCAL command, 2-2 key execute, 5-260
REAL command, 2-6 key label, 5-261
USING command, 3-9 KEYLBL, 5-261
HP-IB interface, l-2 knob
HP-IB interface bus, B-l enabling knob with EP, 5-148
HP Vectra personal computer KSA, 5-9
HP-IB interface, l-7 KSB, 5-9
RS-232 interface, l-9 KSc, 5-9
KSC, 5-9
I KSE, 5-9
IB, 5-234 KSG, 5-9
I-block format, 3-25 KSH, 5-9
ID, 5-235 KSi, 5-9
identify, 5-235 KSI, 5-9
IF THEN ELSE ENDIF, 5-236 KSm, 5-9
if the spectrum analyzer is not responding, KSM, 5-9
4-21 KSn, 5-9
illegal spectrum analyzer command, 5-522 KSo, 5-9
impedance KSO, 5-9
INZ, 5-241 KSp, 5-9
impedance units, 5-4 KSZ, 5-9
increasing the value
UP, 5-579 L
informational messages, A-l LO, 5-9
input B, 5-234 label, 5-263
input impedance, 5-241 label functions, 5-266
INPUT Z 503 753 softkey. See INZ last span, 5-301
installation, external keyboard, 4-15 LAST SPAN softkey. See LSPAN
instrument preset, 2-2, 2-3, 5-242 LB, 5-263
INT, 5-239 LF, 3-9, 5-267
integer, 5-239 LG, 5-268
integer number range, 5-3 LIMIDEL, 5-269
interface bus LIMIDISP, 5-270
RS-232, C-l LIMIFAIL, 5-272
INTERNAL + STATE softkey. See RCLS LIMIFT, 5-274
Internal ---) Trace softkey. See RCLT LIMIHI, 5-275
interpolated data. See LINFILL LIMILINE, 5-276
inverse sweep time LIMILO, 5-279
marker readout, 5-354 LIMIMIRROR, 5-280
inverse video LIMIMODE, 5-281
label function, 5-266 LIMIREL, 5-283
inverse video for softkey labels, 5-255 LIMISEG, 5-285
INZ, 5-241 LIMISEGT, 5-288
IP, 2-2, 2-3, 5-242 LIMITEST, 5-291
limit line
K entry mode, 5-281
keyboard, external, 4-15 limit line display, 5-270
key clear, 5-246 limit lines, 5-276
KEYCLR, 5-246 enable limit line testing, 5-291
KEYCMD, 5-247 enter limit-line segment for frequency,
key command, 5-247 5-285
KEYDEF, 5-251 enter limit-line segment for sweep time,
KEYENH, 5-255 5-288
Index-7
limits failed, 5-272 MARKER <number> ON OFF softkey. See
mirror limit line, 5-280 MKACTV
relative limit lines, 5-283 marker off, 5-346
limits failed, 5-272 marker pause, 5-349
linear scale, 5-295 marker peak, 5-351
line-feed, 3-9 marker peak excursion, 5-352
line feed marker position, 5-347
label function, 5-266 marker readout, 5-354
line fill, 5-293 marker readout in frequency, 5-354
line number MARKER -, AUTO FFT softkey. See FFTAUTO
TVLINE, 5-572 MARKER -+ CF softkey. See MKCF
LINE softkey. See TM MARKER + CF STEP softkey. See MKSS
line trigger mode, 5-554 MARKER + FFl’ STOP softkey. See FFTMS
LINFILL, 5-293 MARKER ---) MID SCRN softkey. See FFTMM
LMT DISP Y N AUTO softkey. See LIMIDISP MARKER + REF LVL softkey. See MKRL
LN, 5-295 marker step size, 5-358
LOAD, 5-296 marker stop, 5-359
LOAD FILE softkey. See LOAD marker table, 5-360
loading a file from the memory card, 5-296 marker table commands
loading DLPs from a memory card into marker delta display line mode
analyzer memory, 4-11 (MKDLMODE), 5-334
LOG, 5-298 marker table (MKTBL), 5-360
logarithm, 5-298 marker to auto FFl’, 5-164
logarithmic scale, 5-268 marker to center frequency, 5-330
log to linear conversion, 5-153 marker to reference level, 5-356
lower limit line, 5-279 marker to span, 5-357
lsb length, 5-3 marker trace, 5-362
LSB length, 3-24 marker track, 5-363
LSPAN, 5-301 marker type,, 5-364
amplitude, 5-364
M delta, 5-364
Ml, 5-10 fixed, 5-364
M2, 5-10 position, 5-364
M3, 5-10 MARKER A softkey. See MKD
M4, 5-378 marker zoom, 5-378
MA, 5-10 mass storage is, 5-374
making the DLP more readable, 4-20 MAX HOLD A, MAX HOLD B softkey. See
MAN TRK ADJUST softkey. See SRCTK MXMH
MARKER ALL OFF softkey. See MKOFF maximum, 5-375
Marker Amplitude, 5-325 maximum hold, 5-377
MARKER AMPTD softkey. See MKTYPE MAX MXR LEVEL softkey. See ML
marker as the active function, 5-328 MC, 5-10
marker bandwidth, 5-329 MDS, 3-22, 5-302
marker continue, 5-331 MDS command
marker counter, 5-338 MKF programming example, 5-337
marker counter resolution, 5-339 MDU, 5-304
marker delta, 5-332 MEAN, 5-306
marker delta display line mode, 5-334 MEANTH, 5-307
marker frequency, 5-336 MEASOFF, 5-309
marker frequency output, 5-317 MEAS OFF softkey. See MEASOFF
marker minimum, 5-341 MEASURE, 5-310
marker noise, 5-344 measurement data size, 3-22, 5-302
marker normal, 5-342 measurement data units, 5-304
MARKER NORMAL softkey. See MKN measurement off, 5-309
measurement units, 3-26, 5-122
Index-8
range, 3-26 MKRL, 5-356
measure mode, 5-310 MKR A -+ SPAN softkey. See MKSP
measuring harmonic distortion MKSP, 5-357
HP-IB, 3-15-17 MKSS, 5-358
RS-232, 3-18-19 MKSTOP, 5-359
MEM, 5-312 MK TABLE ON OFF softkey. See MKTBL
memory MKTBL, 5-360
determining the amount needed for a DLP, MKTRACE, 5-362
4-12 MK TRACE AUTO ABC softkey. See
memory available, 5-3 12 MKTRACE
memory card MKTRACK, 5-363
determining information with HAVE, 5-226 MK TRACK ON OFF softkey. See MKTRACK
MENU, 5-313 MKTYPE, 5-364
MERGE, 5-315 ML, 5-365
merge two traces, 5-315 MOD, 5-367
MF, 5-317 MODE, 5-369
M format, 3-26-27 modulo, 5-367
MIN, 5-319 MOV, 5-370
MINH, 5-321 move, 5-370
MIN HOLD C softkey. See MINH moving the active marker between traces
minimum, 5-319 MKTRACE, 5-362
minimum hold, 5-321 MPY, 5-372
minimum position, 5-322 msb length, 5-3
minimum trace value MSB length, 3-24
MKMIN, 5-341 MSI, 5-374
MINPOS, 5-322 MTO, 5-10
MIRROR, 5-323 MTl, 5-10
mirror image, 5-323 multiply, 5-372
mirror limit line, 5-280 MXM, 5-375
mixer level, 5-365 MXMH, 5-377
MKA, 3-2, 3-3, 5-325
MKACT, 5-327 N
MKACTV, 5-328 natural exponent, 5-155
MKBW, 5-329 NDB, 5-380
MKCF, 5-330 NDBPNT, 5-38 1
MKCONT, 5-33 1 NDBPNTR, 5-383
MK COUNT ON OFF softkey. See MKFC N dB points, 5-381
MKD, 5-332 N dB points bandwidth, 5-383
MKDLMODE, 5-334 N dB points commands
MKF, 3-2, 3-3, 5-336 N dB points bandwidth (NDBPNTR), 5-383
MKFC, 5-338 N dB points (NDBPNT), 5-381
MKFCR, 5-339 number of dB (NDB), 5-380
MKMIN, 5-341 N dB PTS ON OFF softkey. See NDBPNT
MKN, 5-342 negative detection, 5-l 13
MKNOISE, 5-344 NEW EDIT softkey, 4-17
MK NOISE ON OFF softkey. See MKNOISE NEXT key. See WINNEXT
MKOFF, 5-346 NEXT PEAK, NEXT PK RIGHT, NEXT PK
MKP, 5-347 LEFT softkey. See MKPK
MKPAUSE, 5-349 normal detection, 5-l 13
MK PAUSE ON OFF softkey. See MKPAUSE normalization
MKPK, 5-351 using AMB, 5-59
MKPK HI, 2-4, 2-5 using AMBPL, 5-61
MKPX, 5-352 normalized reference level, 5-384
MKREAD, 5-354 NORMLIZE ON OFF softkey. See AMBPL,
MK READ F T I P softkey. See MKREAD SRCNORM
Index-9
NRL, 5-384 parameter units, 3-21
NTSC PARSTAT, 5-414
triggering, 5-575 party-line bus structure, B-l
number, 5-3 Pause key, 4-16
number of dB, 5-380 PCTAM, 5-416
PCTAMR, 5-418
0 PD, 5-419
01, 5-10 PDA, 5-420
02, 5-10 PDF, 5-422
03, 5-10 peak average detection, 5-113
04, 5-10 PEAK EXCURSN softkey. See MKPX
OA, 5-386 peak position, 5-430
OBW, 5-387 peak result, 5-431
OBWPCT, 5-389 PEAKS, 5-424
OCC BW % POWER softkey. See OBWPCT PEAK SEARCH key. See MKPK
OCCUPIED BANDWDTH softkey. See OBW peak sort, 5-433
occupied bandwidth, 5-387 peak table, 5-434
occupied bandwidth percent, 5-389 peak table commands
octal to binary, 5-523 peak result (PKRES), 5-431
OL, 3-11, 5-390 peak sort (PKSORT), 5-433
on cycle, 5-391 peak table delta display line mode
ONCYCLE, 5-391 (PKDLMODE), 5-428
on delay, 5-393 peak table (PKTBL), 5-434
ONDELAY, 5-393 peak table delta display line mode, 5-428
on end of sweep, 5-395 peak zoom, 5-437
ONEOS, 5-395 peak zoom commands
ON key. See WINON peak zoom okay (PKZMOK), 5-436
on marker, 5-397 peak zoom (PKZOOM), 5-437
on marker update, 5-399 peak zoom okay, 5-436
ONMKR, 5-397 PEAK ZOOM softkey. See PKZOOM
ONMKRU, 5-399 pen down, 5-419
ONPWRUP, 5-401 pen up, 5-452
on service request, 5-402 Percent AM, 5-416
ONSRQ, 5-402 percent AM response, 5-418
on sweep, 5-404 performing commands after an elapsed time
ONSWP, 5-404 ONDELAY, 5-393
on time, 5-406 performing commands at a specific time
ONTIME, 5-406 ONTIME, 5-406
OP, 5-408 performing commands at the beginning of a
OUTPUT, 5-409 sweep
output active function value, 5-386 ONSWP, 5-404
output learn string, 3-l 1, 5-390 performing commands at the end of a sweep
output parameter, 5-408 ONEOS, 5-395
output termination, 5-3 TRMATH, 5-567
output to HP-IB, 5-409 performing commands at the marker
over range for measurement units, 3-26 ONMKR, 5-397
performing commands on a service request
P ONSRQ, 5-402
PA, 5-412 performing commands periodically
PAL ONCYCLE, 5-392
triggering, 5-575 period
PAL-M marker readout, 5-354
triggering, 5-575 P format, 3-20
Parallel port status, 5-414 PKDLMODE, 5-428
PARAM AUTO MAN softkey. See ACPPAR
Index-10
PK MODE oDL NRM softkey. See PP, 5-443
PKDLMODE PR, 5-444
PKPOS, 5-430 PREAMPG, 5-445
PKRES, 5-431 preamplifier gain, 5-445
PKSORT, 5-433 predefined function, 5-3
PK SORT FRQ AMP softkey. See PKSORT predefined variable, 5-4
PK TABLE ON OFF softkey. See PKTBL prefix, 5-446
PKTBL, 5-434 PREFX, 5-446
PKZMOK, 5-436 preselector peak, 5-443
PKZOOM, 5-437 PRESEL PEAK softkey. See PP
placing a marker PRESET key. See IP
MKP, 5-347 PRINT, 5-447
placing a marker on a signal peak print address, 5-449
MKPK, 5-351 Printer port, 5-450
PLOT, 5-439 printing
plot absolute, 5-412 from within DLl3, 5-219
plot relative, 5-444 with a LaserJet Printer (RS-232 only), C-5
Plotter port, 5-441 with a ThinkJet Printer (RS-232 only), C-4
plotter units, 5-304 printing, HP-IB
plotting centronics converter, l-l 1
from within DLPs, 5-217 deskjet, l-l 1
HP-IB interface, 1-14 epson, l-l 1
laserjet, l-22 laserjet, l-l 1
RS-232, 1-18 paintjet, l-l 1
plotting the analyzer display, 5-125 thinkjet, l-l 1
PLTPRT, 5-44 1 printing, parallel
polarity deskjet, l-20
TVSYNC, 5-577 epson, l-20
position laserjet, l-20
marker type, 5-364 paintjet, l-20
positive and negative peaks detection, 5-l 13 thinkjet, l-20
positive detection, 5-l 13 printing, RS-232
power bandwidth, 5-454 deskjet, 1-16
power menu commands epson , 1-16
ACP manual or auto (ACPPAR), 5-44 laserjet , 1-16
adjacent channel power (ACP), 5-33 paintjet , 1-16
adjacent channel power extended (ACPE), thinkjet, 1-16
5-38 PRNPRT, 5-450
channel bandwidth (ACPBW), 5-35 PRNTADRS, 5-449
channel power (CHP), 5-95 probability distribution of amplitude, 5-420
channel spacing (ACPSP), 5-47 probability distribution of frequency, 5-422
compute the adjacent channel power graph problems, l-24
(ACPGRAPH), 5-42 programming guidelines, 2-10
continuous sweep measurement protect state, 5-451
(ACPCONTM), 5-37 protocol
measurement off (MEASOFF), 5-309 RS-232 protocol, C-2
occupied bandwidth (OBW), 5-387 PSTATE, 5-45 1
occupied bandwidth percent (OBWPCT), PU, 5-452
5-389 pulse repetition interval, 5-198
single sweep measurement (ACPSNGLM), pulse width, 5-200
5-46 PURGE, 5-453
POWERON, 5-442 purge file, 5-453
POWER ON IP LAST softkey. See POWERON PURGE LIMITS softkey. See LIMIDEL
power-on state, 5-442 PWRBW , 5-454
power up time, 5-456 PWR SWP ON OFF softkey. See SRCPSWP
Index-11
PWRUPTIME, 5-456 REV, 5-467
revision, 5-467
It RL, 5-468
Rl, 5-10 RLPOS, 5-470
R2, 5-10 RMS, 5-471
R3, 5-10 ROFFSET, 5-472
R4, 5-10 ROM card, 5-481, 5-533
RAM card, 5-481, 5-533 root mean square value, 5-471
storing DLPs on a RAM card, 4-10 rosenfell algorithm, 5-l 13
random-access memory card, 5-481, 5-533 RQS, 5-473
ratio RS-232
setting the video bandwidth ratio, 5-589 3-wire connection, C-3, C-4
RB, 5-457 baud rate, C-2
RC, 5-10 connecting a modem, C-6
RCLS, 5-459 connecting an HP-GL plotter, C-6
RCLT, 5-460 connecting a ThinkJet printer, C-4
reading trace data, 3-2 data lines, C-l
read-only memory card, 5-481, 5-533 handshaking connection for personal
real number range, 5-3 computer, C-2
recalling with a prefix, 5-446 handshaking lines, C-l
recall state, 5-459 protocol, C-2
recall trace, 5-460 setting the baud rate, C-7
recommended path, 5-2 RS-232 interface, l-2
records, 3-9 RS-232 interface bus, C-l
redrawing the analyzer display, 5-125 RTS
reference level, 5-468 RS-232 handshaking line, C-l
marker to reference level, 5-356
reference level offset, 5-472 S
reference-level position, 5-470 Sl, 5-10
REF LVL OFFSET softkey. See ROFFSET s2, 5-10
REF LVL softkey. See RL sample detection, 5-113
relative limit lines, 5-283 SAVE EDIT softkey, 4-17
release HP-IB, 5-462 save menu, 5-475
RELHPIB, 5-462 SAVEMENU, 5-475
remainder save or recall data, 5-482
finding the remainder with MOD, 5-367 save or recall flag, 5-479
repeating syntax element, 5-2 save or recall number, 5-480
REPEAT UNTIL, 5-463 SAVES, 5-476
request to send save state, 5-476
RS-232 handshaking line, C-l SAVET, 5-477
RES BW AUTO MAN softkey. See RB save trace, 5-477
reserved words, 5-2 saving and recalling instrument states, 3-7
reset reference level, 5-465 saving trace data, 3-4
RESETRL, 5-465 saving with a prefix, 5-446
resolution bandwidth, 5-457 SAV LOCK ON OFF softkey. See PSTATE
RETURN, 5-466 SAVRCLF, 5-479
returning or storing trace values, 5-559 SAVRCLN , 5-480
returning the spectrum analyzer to its former SAVRCLW, 5-482
state, 3-12 SCALE LOG LIN softkey. See LG, LN
returning trace A data to the controller scaling factor, 5-155, 5-300
TA, 5-542 screen title
returning trace B data to the controller TITLE, 5-553
TA, 5-543 SECAM-L
returning trace data triggering, 5-575
changing the trace data format, 5-544 secondary keywords, 5-2
Index-12
SEGDEL, 5-483 source power, 5-515
segment delete, 5-483 source power-level step size, 5-511
segment entry for frequency limit lines, source power offset, 5-510
5-485 source power sweep, 5-513
segment entry for sweep time limit lines, source tracking, 5-5 17
5-488 source tracking peak, 5-519
select frequency or time limit line, 5-274 SP, 2-4, 2-5, 5-497
selecting a trace window for FFT, 5-578 span, 2-4, 2-5, 5-497
selecting polarity marker to span, 5-357
TVSYNC, 5-577 SPAN softkey. See SP
selecting the type of video frame, 5-573 span zoom, 5-500
selecting triggering for the TV standard SPAN ZOOM softkey. See SPZOOM
formats, 5-575 SPEAKER, 5-499
SENTER, 5-485 special numbers and characters, 5-2
SENTERT, 5-488 specifying the frequency of the marker
SER, 5-491 MKF, 5-336
serial number, 5-491 spectrum analyzer error messages, A-l
service request mask, 5-473 spectrum analyzer state, 3-9
set date, 5-492 SPZOOM, 5-500
SETDATE, 5-492 SQLCH, 5-501
SET DATE softkey. See SETDATE SQR, 5-502
set time, 5-493 square root, 5-502
SETTIME, 5-493 squelch, 5-501
SET TIME softkey. See SETTIME SQUELCH softkey. See SQLCH
setting the baud rate, C-7 SRCALC, 5-504
setting the marker counter resolution, 5-339 SRCAT, 5-506
setting the real-time clock, 5-551 SRC ATN MAN AUTO softkey. See SRCAT
setting the spectrum analyzer trigger mode, SRCNORM, 5-508
5-554 SRCPOFS, 5-510
setting the threshold level, 5-550 SRCPSTP, 5-511
setting the time and date, 5-551 SRCPSWP, 5-513
setting the trace operations to preset values, SRCPWR, 5-515
5-569 SRC PWR OFFSET softkey. See SRCPOFS
setting the TV line number, 5-572 SRC PWR ON OFF softkey. See SRCPWR
setting the video bandwidth SRC PWR STP SIZE softkey. See SRCPSTP
VB, 5-587 SRCTK, 5-517
setting the video bandwidth ratio, 5-589 SRCTKPK, 5-519
SGL SWP key. See SNGLS SRQ, 5-520
SIGNAL TRACK SS, 5-524
MKTRACK, 5-363 ST, 5-526
SINGLE FFT softkey. See FFTSNGLS standard baud rates, 5-76
SINGLE MEAS softkey. See ACPSNGLM standard deviation of trace amplitudes, 5-529
single sweep, 5-496 START FREQ softkey. See FA
single sweep measurement, 5-46 start frequency, 5-156
single-sweep mode, 2-2, 2-3 STATE --$ INTRNL softkey. See SAVES
SMOOTH, 5-494 status bits
smooth trace, 5-494 clearing, 5- 103
SNGLS, 2-2, 2-3, 5-496 status byte definition, 5-522
softkey status byte query, 5-528
underlining and inverse video, 5-255 status of a trace
softkeys TRSTAT, 5-570
clearing with KEYDEF, 5-246 STB, 5-528
source attenuator, 5-506 STDEV, 5-529
source leveling control, 5-504 step size
source normalization, 5-508 decreasing by the step size with DN, 5-137
Index-13
marker step size, 5-358 third-order intermodulation measurement,
STOP FREQ softkey. See FB 5-556
stop frequency, 5-158 third-order intermodulation response, 5-558
STOR, 5-531 THRESHLD ON OFF softkey. See TH
store, 5-531 threshold, 5-550
storing DLPs on a RAM card, 4-10 time and date
SUB, 5-534 displaying the time and date, 5-552
subtract, 5-534 time date, 5-551
SUM, 5-536 TIMEDATE, 5-551
sum of squared trace amplitudes, 5-537 TIMEDATE ON OFF softkey. See TIMEDSP
sum of trace amplitudes, 5-536 time display, 5-552
SUMSQR, 5-537 TIMEDSP, 5-552
sv, 5-10 time units, 5-4
SWEEP CONT SGL softkey. See CONT, SNGLS TITLE, 5-553
Sweep Couple, 5-538 TM, 5-554
SWEEP DELAY softkey. See GDRVSWDE to find problems in a DLP, 4-20
sweep time, 5-526 TOI, 5-556
marker readout, 5-354 TO1 commands
sweep time for the time window, 5-211 third-order intermodulation measurement
SWEEP TIME softkey. See GDRVSWP (TOI), 5-556
SWPCPL, 5-538 third-order intermodulation response
SWP CPLG SR SA softkey. See SWPCPL (TOIR), 5-558
SWP TIME AUTO MAN softkey. See ST TO1 ON OFF softkey. See TO1
synchronize mode, 5-540 TOIR, 5-558
SYNCMODE, 5-540 TRA, 3-2, 3-3, 5-559
SYNC NRM NTSC, SYNC NRM PAL softkey. trace A minus trace B, 5-57
See SYNCMODE trace A minus trace B plus display line, 5-60
syntax elements, 5-2, 5-3-4 trace A plus trace B, 5-68
trace B exchange trace C, 5-85
T trace B minus display line, 5-83
TO, 5-10 trace data format, 5-544
Tl, 5-10 binary, 3-9, 3-11
T2, 5-10 TDF, 2-8, 2-9
T3, 5-10 trace data formats, 3-20
T4, 5-10 trace data input and output, 5-559
T7, 5-10 trace data transfers, 3-20
T8, 5-10 trace define, 5-562
TA, 5-542 trace display, 5-564
TABLE ADL NRM softkey. See MKDLMODE trace element, 5-4
take sweep, 5-571 trace graph, 5-565
taking a measurement sweep, 5-571 trace math, 3-26, 5-567
TB, 5-543 trace mean, 5-306
TDF, 3-20, 5-544 trace mean above threshold, 5-307
TDF command trace memory, 5-561
MKF programming example, 5-337 trace preset, 5-569
test program, l-2 trace range, 5-4
text trace registers
entering text in the display list, 5-125 determining the total number of trace
TEXT, 5-549 registers available, 5-561
TH, 5-550 Trace ---i Intrnl softkey. See SAVET
THEN, 5-236 trace status, 5-570
ThinkJet Printer mode switch settings, l-11, trace window, 5-578
c-4 TRACKING PEAK softkey. See SRCTKPK
ThinkJet RS-232 switch settings, C-4 tracking the signal
MKTRACK, 5-363
Index-14
transfer A, 5-542 UPDATE TIMEFREQ softkey. See GDRVSWAP
transfer B, 5-543 upper limit line, 5-275
transferring trace A data, 5-542 use of a DLP, 4-l
transferring trace B data, 5-543 user-created error messages, A-l
transfer trace B to trace C, 5-84 user-defined function, 5-4, 5-184
TRA/TRB/TRC, 5-559 user-defined functions
TRB, 5-559 using ABORT in user-defined functions,
TRC, 5-559 5-29
TRCMEM, 5-561 using CHPGR in user-defined functions,
TRDEF, 5-562 5-97, 5-401
TRDSP, 5-564 user-defined function within a DLP, 4-3
TRGRPH, 5-565 user-defined softkey definition, 5-251
triggering the spectrum analyzer, 5-554 user-defined trace, 5-4
trigger mode, 5-554 user-defined trace and use within a DLP,
TRIG key. See TM 4-5
TRIG MKR ON OFF softkey. See GDRVTIM user-defined variable, 5-4, 5-582
TRMATH, 5-567 user-defined variables and use within a DLP,
TRPRST, 5-569 4-4
TRSTAT, 5-570 user state, 5-580
TS, 2-2, 2-3, 5-571 using the DLP editor, 4-15
turning off markers USTATE, 5-580
MKOFF, 5-346
TV frame, 5-573 V
TV line, 5-572 VARDEF, 5-582
TVLINE, 5-572 variable definition, 5-582
TV LINE # softkey. See TVLINE variables, 2-6
TVSFRM, 5-573 VARIANCE, 5-584
TV Standard, 5-575 variance of trace amplitudes, 5-584
TV Standard softkey. See TVSTND VAVG, 5-586
TVSTND, 5-575 VB, 5-587
TV sync, 5-577 VBR, 5-589
TVSYNC, 5-577 VBW/RBW RATIO softkey. See VBR
TV SYNC NEG POS softkey. See TVSYNC vertical position of CRT display, 5-120
TV trigger mode, 5-554 vertical tab
TV TRIG ODD FLD, TV TRIG EVEN FLD, TV label function, 5-266
TRIG VERT INT softkey. See TVSFRM VID AVG ON OFF softkey. See VAVG
TV TRIG softkey. See TM VID BW AUTO MAN softkey. See VB
TWNDOW, 5-578 video average, 5-586
two’s complement, 5-68 video bandwidth, 5-587
type of marker video bandwidth ratio, 5-589
changing the type, 5-364 video modulation polarity
TVSYNC, 5-577
U VIDEO softkey. See TM
underlining video trigger mode, 5-554
label function, 5-266 VIEW, 5-590
underlining for softkey labels, 5-255 VIEW A, VIEW B, VIEW C softkey. See
UNIFORM filter VIEW
FFT, 5-161 viewing a trace
unit key pressed, 5-522 VIEW, 5-590
units, 5-4
universal HP-IB service request, 5-522 w
unlock harmonic number, 5-233 WAIT, 5-591
UNTIL, 5-463 what is a DLP, 4-l
UP, 5-579 why use a DLP, 4-l
update the time or frequency window, 5-208 window gate control, 5-194
Index-l 5
window next, 5-592 X
window off, 5-593 XCH, 5-597
window on, 5-594
windows commands Z
WINNEXT, 5-592 ZMKCNTR, 5-599
WINOFF, 5-593 ZMKPKNL, 5-601
WINON, 5-594 ZMKPKNR, 5-602
WINZOOM, 5-596 ZMKSPAN, 5-603
ZMKCNTR, 5-599 ZONE CENTER softkey. See ZMKCNTR
ZMKPKNL, 5-601 zone marker at center frequency, 5-599
ZMKPKNR, 5-602 zone marker for next left peak, 5-601
ZMKSPAN, 5-603 zone marker for next right peak, 5-602
WINDOWS OFF softkey. See WINOFF zone marker span, 5-603
window zoom, 5-596 ZONE PK LEFT softkey. See ZMKPKNL
WINNEXT, 5-592 ZONE PK RIGHT softkey. See ZMKPKNR
WINOFF, 5-593 ZONE SPAN softkey. See ZMKSPAN
WINON, 5-594 ZOOM key. See WINZOOM
WINZOOM, 5-596
writing your first program, 2-2
Index-l 6