Hewlett-Packard to Agilent Technologies Transition
This documentation supports a product that previously shipped under the HewlettPackard company brand name. The brand name has now been changed to Agilent
Technologies. The two products are functionally identical, only our name has changed. The
document still includes references to Hewlett-Packard products, some of which have been
transitioned to Agilent Technologies.
Printed in USAMarch 2000
Page 2
Programmer’s Guide
Analyzer
08720-90293 Supersedes October
Page 3
Notice.
The information contained in this document is subject to change without notice.
Hewlett-Packard makes no warranty of any kind with regard to this material, including
but not limited to, the implied warranties of merchantability and fitness for a particular
purpose. Hewlett-Packard shah not be liable for errors contained herein or for incidental or
consequential damages in connection with the furnishing, performance, or use of this material.
Copyright
Company 1996, 1997, 1998, 1999
Page 4
Assistance
Productmaintenance
products.
Instrument Support Center
Hewlett-Packard Company
(800)
The example programs shipped with this instrument were originally written for the HP 8753D
Network Analyzer, but are compatible with the HP
to maintain compatibility with the HP
it will be necessary to modify certain
example programs . The example programs that need modification are clearly identifled in
Chapter 2, “HP BASE Programming Examples.”
Network Analyzer. ln order
The following is included with the “Programming Examples HP
disk:
HP BASE example programs (compatible with Rocky Mountain Basic)
n
to
utility,
The following is included with the “Programming Examples QuickC and QuickBASW disk:
n
QuickC example programs
n
example programs
Programming Documentation
This Programmer’s Guide consists of the following two chapters:
n
network analyzer under
example programs (which offer solutions for several remotely-controlled analyzer processes).
The programming examples have only been documented for HP BASE in Chapter 2. However,
if the programming language QuickC or
programming examples can be used or
Programming Examples” as an overall guide in determining the organization and logic of the
Programmingand Command Reference provides a reference for operation of the
BASIC Programming
control and provides a description of all
provides documentation for the factory-tested HP
mnemonica
is preferred, these versions of the
while referring to Chapter 2, “HP BASE
Conventions
Front-Panel Ke
Screen Text
This represents a key physically located on the instrument.
This represents a “softkey,” a key whose label is determined by the
instrument’s
This represents text displayed on the instrument’s screen.
Page 6
Network Analyzer Documentation Set
The Installation and Quick Start Guide
familiarizes you with the network analyzer’s
front and rear panels, electrical and
environmental operating requirements, as well
as procedures for installing, configuring, and
verifying the operation of the analyzer.
The User’s Guide
shows how to make
measurements, explains commonly-used
features, and tells you how to get the most
performance from your analyzer.
The Quick Reference Guide
provides a
summary of selected user features
The
Guide
provides
er’s
programming information including an HP-IB
programming and command reference as well
as programming examples
The Service Guide
provides the information
needed to adjust, troubleshoot, repair, and
verify conformance to published specifications
V
Page 7
Contents
1.
HP-IB
Where to Look for More Information
Preset State
Analyzer Command Syntax
Code Naming Convention
Characters
units
Command Formats
General Structure:
Syntax Types
HP-IB Operation
Device Types
Listener
Controller
HP-IB Bus Structure
Handshake Lines
Control Lines
HP-IB Operational Capabilities
HP-IB Status Indicators
Bus Device Modes
System-Controller Mode
Pass-Control Mode
Analyzer Bus Modes
Setting HP-IB Addresses
Response to HP-IB
Abort
Device Clear.
Local..
Local Lockout
Pass Control
Remote
Trigger
Operation Complete
Reading Analyzer Data
Output Queue
Command Query
Identification
Output syntax
Marker data
Running the Program
Utilizing PC-Graphics Applications Using the Plot File
Example
Running the Program
Example 8: Mixer Measurements
Example
Running the Program
Limit Line and Data Point Special Functions
Overview..
Limit Segments
Output Results.
Constants Used Throughout This Document
Output
Example Program of OUTPSEGAF Using BASIC
Output Minimum and Maximum Point For
Example Program of OUTPSEGAM Using BASIC
Output Data Per Point
Plotting to a
Reading ASCII Disk Files to the Instrument Controller’s Disk File
Comparison of Two Mixers
...............................
Display of Limit Lines
.............................
.............................
Status for
..........................
and Transferring
..........................
..........................
.......................
Group Delay, Amplitude or Phase
..........................
..................
......................
.................
Segments
...........................
......................
..................
Segments
.....................
Data to a Plotter
............
.............
..............
...........
...........
..............
.....
.
2-92
2-93
2-94
2-95
2-96
2-99
2-100
2-100
2-103
2-104
2-105
2-107
2-108
2-109
2-110
2-111
2-112
2-112
2-114
2-115
2-116
2-117
2-118
2-119
Index
Page 11
Figures
l-l. HP-IB Bus Structure
Bus Concept
FORM 4 (ASCII) Data-Transfer Character String
The Data-Processing Chain
Status Reporting Structure
Key Codes.
The HP
2-2. Status Reporting Structure
2-3. Connections: Comparison of Two Mixers
O-l. Hewlett-Packard
l-l. Preset Conditions (1 of 5)
Code Naming Convention
OPC-compatible Commands
14.
HP
Status Bit Defmitions (Continued)
Relationship between Calibrations and Classes
Error Coefficient Arrays
Disk File Names
1-12.
Additional BASIC 6.2 Programming Information
2-2. Additional HP-IB Information
2-3. Measurement Speed: Data Output and Error Correction to an External PC* . .
2-4. HP
2-5. Limit Line and Data Point Special Functions Commands
2-6. Limit Segment
2-7. Example Output: OUTPSEGAM
2-8.
2-9.
2-10. Example Output: OUTPSEGAF
2-11. Example Output: OUTPSEGM
2-12. Example Output: OUTPSEGAM
2-13. Example Output: OUTPDATP (data per point)
2-14. Example Output: OUTPDATPR (data per range of points)
................................
Commands
............................
........................
...............
.........................
.........................
Network Analyzer System with Controller
.........................
Group Delay, Amplitude or Phase .
.....................
and Service Offices
.........................
.........................
.........................
Network Analyzer Array-Data Formats
...........................
......................
..........................
..............................
.............................
...........................
........................
Network Analyzer Array-Data Formats
for Figure 2-3
Status Constants
..........................
..................
...................
..........
................
...............
..........
...........
.....................
of all segments)
.....................
for
per segment)
segments)
for
segments)
................
..........
..........
............
..........
...........
......
1-12
1-15
1-21
2-3
2-56
2-107
. . .
1-19
1-31
2-37
246
2-105
2-108
2-110
2-110
2-112
2-114
2-115
2-117
2-118
Page 12
HP-IB Progr
and Command Reference
This chapter is a reference for operation of the network analyzer under HP-IB control. You
should already be familiar with making measurements with the analyzer. Information about the
HP-IB commands is organized as follows:
n
Analyzer Command Syntax
q
Code Naming Convention
q
Valid Characters
units
q
Command Formats
HP-IB Operation
q
Device Types
q
HP-IB Bus Structure
q
q
q
Requirements
HP-IB Operational Capabilities
Bus Device Modes
Setting HP-IB Addresses
q
Response to HP-IB
n
Analyzer Operation-Complete Commands
n
Reading Analyzer Data
Output Queue
q
Command Query
Output syntax
q
Marker Data
q
Array-Data Formats
q
Trace-Data Transfers
q
Stimulus-Related Values
n
Data Processing Chain
q
Data Arrays
Universal Commands)
q
Fast Data Transfer Commands
q
Data Levels
q
Learn String and Calibration Kit String
Page 13
n
Error Reporting
q
Status Reporting
q
The Status Byte
q
The Event-Status Register and Event-Status Register B
q
Error Output
n
Calibration
Disk File Names
n
Using Key Codes
n
Key Select Codes Arranged by Front-Panel
n
n
Only Commands
Alphabetical Mnemonic Listing
For information about manual operation of the analyzer, refer to the HP
Network Analyzer User’s
Where to Look for More Information
Additional information covering many of the topics discussed in this chapter is located in the
following:
n
Tutorial &script&m. of the
discussion of all aspects of the HP-IB. A thorough overview of
tutorial HP publication, HP part number 5021-1927.
n
for Programmable
of Electrical and Electronics Engineers, Inc, 345 East
New York 10017.
n
Chapter 2, “HP BASIC programming examples,” includes programming examples in
HP BASIC.
presents a description and
technical details as a broad
Street, New York,
Programming and Command Reference
Page 14
Preset State
When the
state. This state is defined in
When line power is cycled, or the
key is pressed, the analyzer reverts to a known state called the factory preset
l-l.
key pressed, the analyzer performs a self-test routine.
Upon successful completion of that routine, the instrument state is set to the conditions shown
in
l-l. The same conditions are true following a “PRES;” or “RST;” command over HP-IB,
although the self-test routines are not executed.
You
can configure an instrument state and
it as your user preset state:
1. Set the instrument state to your desired preset conditions.
2. Save the state (save/recall menu).
3. Rename that register to “UPRESET”.
4.
The
recalled each time you press
factory preset instrument state by pressing
Note
. . . . .
. . . .
.
key is now toggled to the
When you send a preset over HP-IB, you will always get the factory preset.
selection and your defined instrument state will be
and when you turn power on. You can toggle back to the
and selecting .:~~~~~~.
You can, however, activate the user-delined preset over HP-IB by recalling the
register in which it is stored.
HP-IB Programming and Command Reference
Page 15
l-l. Preset Conditions (1 of 5)
Preset Conditions
Analyzer Mode
Analyzer Mode
Frequency Offset
(Opt. 089)
Offset Value
High Power
External R Channel
Attenuator A
Attenuator B
Step Sweep
Step Sweep (Opt.
Display Mode
Sweep Time
Start Frequency
(HP
Stop Frequency
Frequency
[HP
CW Frequency1GHz
Port Power
(HP
Test Port Power
[HP
(HP
Port Power
Port Power
(HP
Start Power
[HP
085)
Opt. 007)
Opt. 007)
400)
Network Analyzer Mode
Off
Off
Linear Frequency
Off
on
Off
100 ms, Auto Mode
13.51 GHz
20.05
40.05 GHz
0
10
-10
-15.0
Preset
Preset
Start Power
(HP
Start Power
(BP
Start Power
(HP
Start Power
(HP
Power Span
(HP
Power
(HP
Coupled Power
Source Power
Coupled Channels
Coupled Port Power
Power Range
Power Range
Number of Points
Frequency List
Edit Mode
Parameter
Conversion
Format
Color Selections
Active Channel
Opt. 007)
Opt. 400)
Opt. 007)
Opt. 400)
Channel 3: 512;
Log Magnitude
Same
Off
Channel 1
Preset
-10.0
-20.0
-20.0
-15.0
-25.0
20 dB
15
On
On
On
On
Auto; Range 0
Auto; Range 1
201
Number of
1:
Channel 2:
Data
before
14
Page 16
12-3. Preset Conditions (2 of 5)
Preset Conditions
Blank Disabled
Retrace Power Standard
Set Switch Continuous
Set Switch (Opt. 007
or 085)
Intensity
Beeper: Done
Beeper: Wamiug Off
to
Title
IF Bandwidth
IF Averaging Factor
Smoothing Aperture
Phase offset
Electrical
Scale/Division
Correction
Calibration Type
Kit
(HP
Calibration Kit
(HP
System ZO
Factor
Port 1
Port 2
Input A
Input B
Power Meter Calibration
Hold
Factory
selected value is not
changed by
Off
Channel 1 =
Channel 2 = Empty
3000 Hz
16; off
1%
0 Degrees
Off
None
3.5 mm
2.4 mm
50 ohms
1
Off
OS
on
Off
1
Value
Preset Conditions
Power Loss Correction
Sensor A/B
InterpoIated Error
Correction
Markers (coupled)
Markers 1, 2, 3, 4, 5
Last Active Marker
Reference Marker
Marker Mode
Display Markers
Delta Marker Mode
Data Array
Raw Data Array
Formatted Data Array
Graphics
Select Disk
Disk Fbrmat
Loop
service
HP-IB
Phase Lock
Input Resolution
Plot
?lot Data
‘lot Memory
‘lot Graticule
‘lot
Marker
‘lot
kale
‘lot.
Preset
Off
Off
Off
Memory
11 (Aux Input)
1 The directory size
2
preset turns off sequencing modify (edit) mode and
calculated es 0.013% of the floppy disk
(which
or 0.006% of the hard disk size.
any running sequence.
Page 18
12-3. Preset Conditions (4 of 5)
Preset
Pen Number:
Marker
Data
Memory
Graticule
Marker
Type:
Data
Memory
2
5
7
1
7
3
6
1
7
7
7
7
7
7
Preset Value
Preset
Printer Mode
Auto-Feed
Printer
Data
Mem
Data
Graticule
F&f Line
Preset
Last Active State
Blue
Slack
12-3. Preset Conditions (5 of 5)
Format
10.0
Phase (degree)
Group Delay
Smith Chart
Polar
Linear Magnitude
90.0
10.0
1.00
1.00
0.1
0.2
0.2
1.00
Reference
5.0
5.0
5.0
0.0
5.0
5.0
0.0
0.0
0.0
0.0
1.0
1.0
0.0
0.0
0.0
1.0
1-7
Page 19
Analyzer Command Syntax
Code Naming Convention
The analyzer HP-IB commands are derived from their front-panel key titles (where possible),
according to this naming convention:
Simple commands are the
command name for power. If the function label contains two words, the
letters are the
three letters of the
four letters of the function they control, as in POWE, the
three mnemonic
word, and the fourth mnemonic letter is the
letter of the second word. For example, ELED is derived from electrical delay.
If there are many commands grouped together in a category, as in markers or plotting pen
numbers, the command is increased to 8 letters. The
4 letters are the category label
and the last 4 letters are the function specifier. As an example, category pen numbers are
represented by the command PENN, which is used in combination with several functions such
as PENNDATA, PENNMEMO.
The code naming guidelines, listed in lhble
n
make commands more meaningful and easier to remember
n
maintain compatibility with other products (including the HP 8510)
Note
There are times when these guidelines are not followed due to technical
are used in order to:
considerations.
Convention
1-2.
Key
Power
Start
Naming Convention
For HP-IB Code Use
First Four Letters
Example
Words
Two Words in a Group
Three Words
Electrical Delay
Search Right
Marker
Gate--span
Pen Num Data
Three Letters of First Word,
of Second Word
Four
First Three Letters of First Word,
of Second Word, First Four Letters of Third
Word
of
Letter ELED
Letter
Some codes require appendages (ON, OFF, 1, 2, etc). Codes that do not have a front-panel
equivalent are HP-IB only commands They use a similar convention based on the common
name of the function.
HP-IB Programming and Command Reference
Page 20
Valid Characters
The analyzer accepts the following ASCII characters:
letters
numbers
n
decimal points
n
n
semicolons (;)
n
quotation marks
n
carriage returns (CR)
n
Both upper- and lower-case letters are acceptable. Carriage returns, leading zeros, spaces, and
unnecessary terminators are ignored, except for those within a command or appendage. If the
analyzer does not recognize a character as appropriate, it generates a syntax error message and
recovers at the next terminator.
The analyzer can input and output data in basic units such as Hz,
S
Seconds
v
Volts
Hz
DB
Hertz
Input data is assumed to be in basic units (see above) unless one of the following
seconds,
is used
(upper and lower case are equivalent):
MS Milliseconds
US Microseconds
NS Nanoseconds
PS
KHZ Kilohertz
MHZ Megahertz
GHZ Gigahertz
FS
Femtoseconds
Command Formats
The
The analyzer does not
commands accepted by the analyzer can be grouped into five input-syntax types
between upper- and lower-case letters
General Structure:
The general syntax structure is:
[code] [appendage] [data]
The individual sections of the syntax code are explained below.
[terminator]
[code]
The root mnemonic (these codes are described in the ‘Alphabetical Mnemonic
Listing” later in this chapter.)
A
OFF (toggle a function ON or OFF), or integers, which specify one capability
out of several. There can be no spaces or symbols between the code and the
appendage.
attached to the root mnemonic Possible appendages are ON or
Page 21
A single operand used by the root mnemonic, usually to set the value of a
function. The data can be a number or a character string. Numbers are
accepted as integers or
example, STAR 0.2E+lO ; sets the start frequency to 2
must be enclosed by double quotation marks
For example:
A title string using
where the first two
third
The units of the operand, if applicable. If no units are specified, the analyxer
function when either units or a terminator are received.
properly.
the basic units as described above. The data is entered into the
BASIC would look like:
are an escape so that RMB BASIC will interpret the
with power of ten
by E (for
Character strings
[terminator]
The
SYNTAX
These are simple action commands that require no complementary information, such as
AUTO ; (autoscales the active channel).
SYNTAX TYPE 2:
are simple action commands requiring limited
There can be no characters or symbols between the code and the appendage.
Note
Indicates the end of the command, enters the data, and switches the
active-entry area OFF. A semicolon
are not necessary for the analyzer to interpret commands
correctly, but in the case of a syntax error, the analyxer
at the next terminator. The analyxer also interprets line feeds and
OR IDENTIFY
syntax types are:
1: [code] [terminator]
(error correction ON or OFF) or
In the
[D] must be 2 characters For example,
; will generate a syntax error.
messages as terminators
cases:
is the recommended terminator.
attempt to recover
such as
RECAREG[D],
(recall register 1, 2, 3).
will execute, while
and EG[D],
and
END
SYNTAX
These are data-input commands such as STAR 1.0 GHZ
SYNTAX TYPE 4: [code] [appendage] [data] [terminator]
These are titling and marker commands that have an appendage, such as TITRi
(title register 1
QUERY
query a front-panel-equivalent
mnemonic (For example,
appendages, place the question mark after the appendage.
3: [code] [data]
[code][?]
(set the start frequency to 1
(title register 2
append a question mark (?) to the root
or REAL?.)
query commands with integer
Page 22
HP-IB Operation
The Hewlett-Packard Interface Bus (HP-IB) is Hewlett-Packard’s hardware, software,
documentation, and support for IEEE 488.2 and
instruments. This interface allows you to operate the analyzer and peripherals in two methods:
n
by an external system controller
n
by the network analyzer in system-controller mode
Device Types
The HP-IB employs a party-line bus structure in which up to 15 devices can be connected
on one contiguous bus. The interface consists of 16 signal lines and 8 ground lines within a
shielded cable. With this cabling system, many different types of devices including instruments,
computers, power meters, plotters, printers, and disk drives can be connected in
worldwide standards for interfacing
Every
device must be capable of performing one or more of the following interface
functions:
A
is a device capable of transmitting device-dependent data when addressed to talk.
There can be only one active talker at any given time. Examples of this type of device include:
n
power meters
n
disk drives
n
voltmeters
n
counters
n
tape readers
The network analyzer is a
when it sends trace data or marker information over the bus.
Listener
A listener is a device capable of receiving device-dependent data over the interface when
addressed to listen. There can be as many as 14 listeners connected to the interface at any
given time. Examples of this type of device include:
n
printers
power supplies
n
signal generators
The network
is a listener when it is controlled over the bus by a system controller.
Controller
A controller is
1. managing the operation of the bus
2.
addressing talkers and listeners
There can be only one active controller on the interface at any time. Examples of controllers
include desktop computers, minicomputers, workstations, and the network analyzer. In a
only be one
master and can regain active control at any time. The analyzer is an active controller when it
plots, prints, or stores to an
system controller when it is operating in the system-controller mode.
as a device capable of:
system, active control can be passed between controllers, but there can
controller connected to the interface. The system controller acts as the
disk drive in the pass-control mode. The analyzer is also a
HP-IB Programming and Command Reference
1
Page 23
HP-IB Bus Structure
Figure l-l.
Bus Structure
Data Bus
The data bus consists of 8 bi-directional lines that are used to transfer data from one device to
another. Programming commands and data transmitted on these lines are typically encoded
in ASCII, although binary encoding is often used to speed up the transfer of large arrays
Both ASCII- and binary-data formats are available to the analyzer. In addition, every byte
transferred over HP-IB undergoes a handshake to insure valid data.
A three-line handshake scheme coordinates the transfer of data between talkers and listeners.
To insure data integrity in multiple-listener transfers, this technique forces data transfers
to occur at the transfer rate of the slowest device connected to the interface. With most
computing controllers and instruments, the handshake is performed automatically, making it
transparent to the programmer.
Control Lines
The data bus
has five control lines. The controller uses these lines to address devices and
to send bus commands.
IFC (Interface Clear)
This line is used exclusively by the system controller. When
this line is true (low), all devices (whether addressed or not)
unaddress and revert to an idle state.
and Command Reference
Page 24
ATN (Attention)
The active controller uses this line to
the information on the data bus is command-oriented or
data-oriented. When this line is true (low), the bus is in the
command mode, and the data lines carry bus commands. When
this line is false (high), the bus is in the data mode, and the
data
whether
carry device-dependent instructions or data.
SRQ (Service Request)
REN (Remote Enable)
EOI (End or Identify)
This
and the active controller services the requesting device. The
network analyzer can be enabled to pull the SRQ line for a
variety of reasons such as requesting control of the interface,
for the purposes of printing, plotting, or accessing a disk.
This line is used exclusively by the system controller. When this
line is set true (low), the bus is in the remote mode, and devices
are addressed by the controller to either listen or talk. When
the bus is in remote mode and a device is addressed, it receives
instructions from the system controller via HP-IB rather than
from its front panel (pressing
front-panel operation). When this line is set false (high), the
bus and all of the connected devices return to local operation.
This line is used by a talker to indicate the last data byte in a
multiple-byte tr
a parallel-poll sequence. The analyzer recognizes the EOI line
as a terminator, and it pulls the EOI line with the last byte of a
message output (data, markers, plots, prints, error messages).
The analyzer does not respond to parallel poll.
is set true (low) when a device requests service
HP-IB Requirements
Number of Interconnected Devices:
15 maximum.
returns the device to
or by an active controller to initiate
Interconnection Path
Message Transfer Scheme:
Data Rate:
Address Capability:
Multiple-Controller Capability:
Cable Length:
20 meters maximum or 2 meters per device
(whichever is less).
Byte serial, bit parallel asynchronous data
transfer using a
Maximum of 1 megabyte-per-second over the
data rate depends on the transfer rate of the
slowest device connected to the bus
Primary addresses: 31
connected to the interface at given time.
In systems with more than one controller (such
as this instrument), only one controller can be
active at any given time. The active controller
can pass control to another controller, but only
the system controller can assume unconditional
control. Only one
handshake system.
distances with tri-state drivers Actual
31 listen. A
of 1 talker and 14 listeners can be
controller is allowed.
Page 25
HP-IB Operational Capabilities
On the network analyzer’s rear panel, next to the HP-IB connector, there is a list of HP-IB
device subsets as
capabilities:
Pull-source handshake.
Pull-acceptor handshake.
Basic talker, answers serial poll, unaddresses if MLA is issued. No talk-only mode.
Basic listener, unaddresses if MTA is issued. No listen-only mode.
Complete service request (SRQ) capabilities.
Complete remote/local capability including local lockout.
Does not respond to parallel poll.
Complete device clear
Responds to a Group Execute Trigger (GET) in the hold-trigger mode.
System controller capabilities in system-controller mode.
Pass control capabilities in pass-control mode.
by the IEEE 488.2 standard. The analyzer has the following
drivers
LEO
TEO
No extended listener capabilities.
No extended talker capabilities
These codes are completely explained in the IEEE Std 488 documents, published by the
Institute of Electrical and Electronic Engineers, Inc, 345 East
Street, New York,
New York 11017.
1-14 HP-IB Programming and Command Reference
Page 26
BP-IB Status Indicators
When the analyzer is connected to other instruments over the HP-IB, the HP-IB status
indicators illuminate to display the current status of the analyzer. The HP-IB status indicators
are located in the instrument-state function block on the front panel of the network analyzer.
R = Remote Operation
L = Listen mode
T = Talk mode
S = Service request (SRQ) asserted by the analyzer
Bus Device Modes
The analyzer uses a single-bus architecture. The single bus allows both the analyzer and the
host controller to have complete access to the peripherals in the system.
Three different controller modes are possible in and
n
system-controller mode
n
talker/listener mode
system:
pass-control mode
GRAPHICS PLOTTER
PRINTER
HOST CONTROLLER
Figure
NETWORK ANALYZER
Analyzer Single Bus Concept
HPJB Programming and Command Reference
Page 27
System-Controller Mode
This mode allows the analyzer to control peripherals directly in a stand-alone environment
(without an external controller). This mode can only be selected manually from the
analyzer’s front panel. It can only be used if no active computer or instrument controller is
connected to the system via HP-IB. If an attempt is made to set the network analyzer to the
system-controller mode when another controller is connected to the interface, the following
message is displayed on the analyzer’s display screen:
"ANOTHER SYSTEM CONTROLLER ON HP-IB BUS"
The analyzer must be set to the system-controller mode in order to access peripherals from the
front panel. In this mode, the analyzer can directly control peripherals (plotters, printers, disk
drives, power meters, etc) and the analyzer may plot, print, store on disk or perform power
meter functions
Note
Do not attempt to use this mode for programming. HP recommends using an
external instrument controller when programming. See the following section,
Mode.
This is the mode that is normally used for remote programming of the analyzer. In
talker/listener mode, the analyzer and all peripheral devices are controlled from an external
instrument controller. The controller can command the analyzer to talk and other devices
to listen. The analyzer and peripheral devices cannot talk directly to
each
other unless the
computer sets up a data path between them. This mode allows the analyzer to act as either
a talker or a listener, as required by the controlling computer for the particular operation in
progress.
Pass-Control Mode
This mode
the computer to control the analyzer via
(as with the talker/listener
mode), but also allows the analyzer to take control of the interface in order to plot, print, or
access a disk. During an analyzer controlled peripheral operation, the host computer is free to
perform other internal tasks (i.e. data or display manipulation) while the analyzer is controlling
the bus After the analyzer-controlled task is completed, the analyzer returns control to the
system
Note
controller.
Performing an
instrument
preset does not affect the selected bus mode,
although the bus mode will return to talker/listener mode if the line power is
cycled.
Note
“Specifications and Measurement Uncertainties” in the
User’s
provides information on setting the correct bus
mode from the front-panel menu.
Analyzer Bus Modes
As discussed earlier, under control, the analyzer can operate in one of three modes:
talker/listener, pass-control, or system-controller mode.
In
mode, the analyzer can make a plot or print using the
mode, the analyzer behaves as a simple device on the bus. While in this
or
; commands
The analyzer will wait until it is addresses to talk by the system controller and then dump
the display to a plotter/printer that the system controller has addressed to listen. Use of the
commands
PLOT and
PRINALL
require control to be passed to another controller.
Page 28
In pass-control mode, the analyzer can request control from the system controller and take
control of the bus if the controller addresses it to take control. This allows the analyzer to
take control of printers, plotters, and disk drives on an as-needed basis. The analyzer sets
event-status register bit 1 when it needs control of the interface, and the analyzer will transfer
control back to the system controller at the completion of the operation. It will pass control
back to its controller address, specified by ADDRCONT.
The analyzer can also operate in the system-controller mode. This mode is only used when
there is no remote controller on the bus. In this mode, the analyzer takes control of the bus,
and uses it whenever it needs to access a peripheral. While the analyzer is in this mode, no
other devices on the bus can attempt to take control. Specifically, the REN,
must remain unasserted, and the data lines must be freed by
but the addressed
and IFC lines
Setting HP-IB Addresses
In systems interfaced using HP-IB, each instrument on the bus is
address This address code must be different for each instrument on the bus. These addresses
are stored in short-term, non-volatile memory and are not affected when you press
cycle the power.
Note
The analyzer addresses are set by pressing
the addresses must be set for the plotter, printer, disk drive, and power meter.
The default address for the analyzer is device 16, and the display address is device 17.
Note
Response to HP-IB Meta-Messages
The analyzer occupies two HP-IB addresses: the instrument itself and the
display. The display address is derived from the instrument address by
complementing the instrument’s least-significant bit. Hence, if the instrument
is at an even address, the display occupies the next higher address. If the
instrument is at an odd address, the display occupies the next lower address
. . . . . . . . . . . . . . . .
. .
.
There is also an address for the system controller. This address refers to the
controller when the network analyzer is being used in pass-control mode. This
is the address that control is passed back to when the analyzer-controlled
operation is complete.
In system-controller mode,
Universal Co
by an
or
Abort
The analyzer responds to the abort message (IFC) by halting all listener, talker, and controller
functions
Device Clear
The analyzer responds to the device clear commands (DCL, SDC) by clearing the input and
output queues, and clearing any HP-IB errors. The status registers and the error queue are
unaffected.
The analyzer will go into local mode if the
unasserted, or the front-panel local key is pressed. Changing the analyzer’s HP-IB status from
remote to local does not affect any of the front-panel functions or values.
command (GTL) is received, the remote line is
HP-IB Programming and Command Reference
Page 29
Local Lockout
If the analyzer receives the local-lockout command
while it is in remote mode, it will
disable the entire front panel except for the line power switch. A local-lockout condition can
only be cleared by releasing the remote line, although the local command (GTL) will place the
instrument temporarily in local mode.
Parallel Poll
The analyzer does not respond to parallel-poll conhgure (PPC) or parallel-poll
messages.
If the analyzer is in pass-control mode, is addressed to talk, and receives the take-control
command
from the system control it will take active control of the bus. If the analyzer
is not requesting control, it will immediately pass control to the system controller’s address.
Otherwise, the analyzer will execute the function for which it sought control of the bus and
then pass control back to the system controller.
Remote
The analyzer will go into remote mode when the remote line is asserted and the analyzer is
addressed to listen. While the analyzer is held in remote mode,
exception of
are disabled. Changing the analyzer’s HP-IB status from remote
front-panel keys (with the
to
local
does not affect any front-panel settings or values.
Serial Poll
The analyzer will respond to a serial poll with its status byte, as
Reporting” section of this chapter.
talk and issue a
enable command (SPE). Upon receiving this command, the analyzer
initiate the serial-poll sequence, address the analyzer to
in the “Status
will return its status byte. End the sequence by issuing a serial-poll disable command (SPD). A
serial poll does not affect the value of the status byte, and it does not set the instrument to
remote mode.
In hold mode, the analyzer responds to device trigger by taking a single sweep. The analyzer
responds only to selected-device trigger
This means that it will not respond to group
execute-trigger (GET) unless it is addressed to listen. The analyzer will not respond to GET if it
is not in hold mode.
Page 30
Analyzer Operation
Operation Complete
Occasionally, there is a need to know when certain analyzer operations have been completed.
There is an operation-complete function (OPC) that
the execution of certain key commands This mechanism is activated by issuing OPC ; or OPC? ;
prior to an OPC-compatible command. The status byte or ESR operation-complete bit
be set after the execution of the OPC-compatible command. For example, issuing OPC
causes the OPC bit to be set when the
the OPC
The analyzer
causes the analyzer to output a one (1) when the command execution is complete.
the computer by not transmitting the one (1)
sweep is
completed. For example, executing OPC? ; , and then immediately querying the analyzer
causes the bus to
the instrument preset is complete and the analyzer outputs a one
As another example, consider the timing of sweep completion. Send the command string SWET
3
S; OPC?
then waits for completion of a
SING; to the analyzer. This string sets the analyzer sweep time to 3 seconds, and
sweep to respond with a one (1). The computer should be
programmed to read the number one (1) response from the analyzer indicating completion of
the
sweep. At this point a
trace exists and the trace data could be read into the
computer.
1-3. OPGcompatible
a synchronization of programs with
then
SING;
Issuing OPC? ; in place of
the command has
to
CLEAREG<Ol to 31)
DATI
mmands
are OPC-comptible if there is only one standard in the class.
INSMTUNR
SAVC
SAVEREG<Ol to 31>
NOOP
NUMG
SING
PRES
RAID
to
to
REFD
HP-IB Programming and Command Reference
WAIT
to
to G>
Page 31
Reading Analyzer Data
Output Queue
Whenever an output-data command is received, the analyzer puts the data into the output
queue (or buffer) where it is held until the system controller outputs the next read command.
The queue, however, is only one event long: the next output-data command will overwrite the
data already in the queue. Therefore, it is important to read the output queue immediately
after every query or data request from the analyzer.
Command Query
All instrument functions can be queried to
the current ON/OFF state or value. For
instrument state commands, append the question mark character (?) to the command to
query the state of the functions. Suppose the operator has changed the power level from the
analyzer’s front panel. The computer can ascertain the new power level using the analyzer’s
command-query function. If a question mark is appended to the root of a command, the
analyzer will output the value of that function. For instance,
to 7
receives
and
outputs the current RF source power at the test port. When the analyzer
; ,it prepares to transmit the current RF source power level. This condition
the analyzer front-panel talk light
In this case, the analyzer transmits the
7 DB
sets the source power
output power to the controller.
ON/OFF commands can be also be queried. The reply is a one (1) if the function is ON or a
zero (0) if it is OFF. For example, if a command controls an active function that is underlined
on the analyzer display, querying that command yields a one (1) if the command is underlined
or a zero (0) if it is not. As another example, there are nine options on the format menu and
only one option is underlined at a time. Only the underlined option will return a one when
queried.
For instance, send the command string DUAC? ; to the analyzer. If dual-channel display is
switched ON, the analyzer will return a one (1) to the instrument controller.
Similarly, to determine if phase is being measured and displayed, send the command string
PHAS? ; to the analyzer. In this case, the analyzer will return a one (1) if phase is currently
being displayed. Since the command only applies to the active channel, the response to the
PHAS? ; query depends on which channel is active.
Identification
The analyzer’s response to IDN? ; is HEWLETT PACKARD,
model number of the instrument and
is the
The analyzer also has the capability to output its serial number with the command OUTPSEBN; ,
and to output its installed options with the command OUTPOPTS
0, X . XX where 87NND is the
revision of the instrument.
.
Output Syntax
The following three types of data are transmitted by the analyzer in ASCII format:
n
response to query
certain output commands
n
ASCII floating-point (FORM 4) array transfers
Page 32
Marker-output commands and queried commands are output in ASCII format only, meaning
that each character and each digit is transmitted as a separate byte, leaving the receiving
computer to reconstruct the numbers and strings. Numbers are transmitted as 24character
strings, consisting of:
DDDDDDDDDDDDDDD
3 digits
Figure
Decimal
Point
15 digits Sign Exponent
E
FORM 4 (ASCII) Data-Transfer Character String
for negative, blank for positive.
3 digits
Digits to the left of the decimal point.
Decimal point Standard decimal point.
15 digits
E
Exponent
Digits to the right of the decimal point.
Exponent notation.
for negative,
+
for positive.
Two digits for the exponent.
When multiple numbers are sent, the numbers are separated by commas When number pairs
are sent, the numbers are separated by a comma and terminated with a line feed (IF).
Marker data
The network analyzer offers several options for outputting trace-related data. Trace
information can be read out of the analyzer in several methods Data can be selectively read
from the trace using the markers, or the entire trace can be read by the controller. If only
specific information is required (such as a single point on the trace or the result of a marker
search), the marker output command can be used to read the information.
points can be read using the
much faster data transfer than when using markers to output
information on these commands, see “Limit Line and Data Point
or
commands. These commands allow a
data points For more
Functions,
Chapter 2.
data
located in
read the trace data using the marker, the marker must
be assigned to the desired
frequency. This is accomplished using the marker commands The controller sends a marker
command followed by a frequency within the trace-data range. If the actual desired frequency
was not sampled, the markers can be set to continuous mode and the desired marker value will
be linearly interpolated from the two nearest points This interpolation can be prevented by
putting the markers into discrete mode. Discrete mode allows the marker to only be positioned
on a measured trace-data point.
As an alternative, the analyzer can be programmed to choose the stimulus value by using the
MARKER SEARCH function. Maximum,
determined with
MARKER SEARCH. ‘lb continually update the search, switch the
minimum, target value, or bandwidths search can be
marker tracking ON. The trace-maximum search will remain activated until:
n
The search is switched
The tracking is switched OFF.
Page 33
n
All markers are switched OFF.
Marker data can be output to a controller with a command to the analyzer. This set of
commands causes the analyzer to transmit three numbers: marker
1, marker value 2, and
marker stimulus value. For example, in log-magnitude display mode we get the log magnitude
at the marker
complete listing of
l), zero (for value
and the marker frequency. See
for a
the possibilities for values 1 and 2. The three possibilities for the marker
stimulus value are:
n
frequency
n
time (as in time domain, Option 010 Only)
n
n
power (in power sweep mode)
Units as a Function of Display Format
MarkerOUTPMAEK
Format
value 1
PHASE degrees
seconds
POLAR
REAL real
IMAGINARY
LIN MKR
G +
Siemens
LIN MKR
real
real
real
2 value 1 value 2
t
t
t
degrees real
degrees real
Siemens Siemens Siemens
degrees real
t
t
t
t
degrees
seconds
real
real
real
real
real
real
t
t
t
t
t
t
t
degrees
seconds
real
real ohms
real
real
real
value
t
t
t
degrees
degrees
degrees
t
t
t
t
marker readout values are the marker values displayed in the upper right-hand corner of the display.
They also correspond to the value and
‘Value 2 is not
MAG data expressed as: "Watts,” for single input measurements (A,B,R), and “Units,” for ratioed
in this format, though it is included in data transfers. See also OUTPFORF.
value associated with the fIxed marker.
1-22HP-IB Programming and Command Reference
Page 34
Array-Data Formats
The analyzer can transmit and receive arrays in the analyzer’s internal binary format as
as four different numeric formats The current format is set with the
FORM3,
and
commands. These commands do not affect learn-string transfers,
calibration-kit string transfers, or non-array transfers, such as command query, or output
marker values.
A transmitted array will be output in the current format, and the analyzer
attempt to
read incoming arrays according to the current format. Each data point in an array is a pair of
numbers,
a real/imaginary pair. The number of data points in each array is the same as
the number of points in the current sweep.
The five formats are described below:
The analyzer’s internal binary format, 6 bytes-per-data point. The array is
preceded by a four-byte header. The first two bytes represent the string “#A”,
the standard block header. The second two bytes are an integer representing
the number of bytes in the block to
data transfers, not to be modified by the computer nor interpreted by the user,
are required.
IEEE
by the same header as in
biased exponent, and a
floating-point format, 8 bytes-per-data point. The data is preceded
floating-point format, 16 bytes-per-data point. The data is
preceded by the same header as in FORM 1. Each number consists of a l-bit
sign, an
biased exponent, and a
mantissa. This format may be
used with double-precision floating-point numbers. No additional precision
is available in the analyzer data, but FORM 3 may be a convenient form for
transferring data to your computer.
ASCII floating-point format. The data is transmitted as ASCII numbers, as
described in “Output Syntax”.
There is no header. The analyzer always uses FORM 4 to transfer data that is
not related to array transfers (i.e. marker responses and instrument settings).
PC-DOS
point. The data is preceded by the same header as in FORM 1. The byte order
is reversed to comply with PC-DOS formats If you are using a PC-based
controller, FORM 5 is the most effective format to use.
The
terminates each
transmitted. Table
floating-point format with 4 bytes-per-number, 8 bytes-per-data
sion by asserting the EOI interface Iine with the last byte
offers a comparative overview of the five array-data formats.
1-23
Page 35
1-5.
8719D/20D/22D Network Analyzer Array-Data Formats
Format type
FORM 1
FORM 2
FORM 3
FORM 4
FORM 5
Type of Data
Internal
IEEE
IEEE
ASCII
PC-DOS
Data Value
3
4
8
4
Bytes per point
2 data values
6
8
16
8
Bytes per trace
1206
1608
3216
10,050
1608
with header
1210
1612
3220
1612
Trace-Data Transfers
Transferring trace-data from the analyzer using an instrument controller can be divided into
three steps:
1. allocating an array to receive and store the data
2. commanding the analyzer to transmit the data
3. accepting the transferred data
Data residing in the analyzer is always stored in pairs for each data point (to accommodate
real/imaginary pairs). Hence, the receiving array has to be two elements wide, and as deep
as the number of points in the array being transferred. Memory space for the array must be
declared before any data can be transferred from the analyzer to the computer.
As mentioned earlier, the analyzer can transmit data over HP-IB in five different formats. The
type of format affects what kind of data array is declared (real or integer), because the format
determines what type of data is transferred. Examples of data transfers using different formats
are discussed “Example 3: Measurement Data Transfer.” For information on the various types
of data that can be obtained (raw data, error-corrected data, etc), see “Data Levels,” located
later in this chapter.
For information on transferring trace-data by selected points, see “Limit Line and Data Point
Special
Note
located in Chapter 2.
“Example
located in Chapter 2, explains how to access disk
Reading ASCII Disk Files to the Instrument Controller’s Disk
from a computer.
HP-IB Programming and Command Reference
Page 36
Stimulus-Related Values
Frequency-related values are calculated for the analyzer display. The start and stop
frequencies or center and span frequencies of the selected frequency range are available to the
programmer.
In a linear frequency range, the frequency values can be easily calculated because the trace
data points are equally spaced across the trace. Relating the data from a linear frequency
sweep to frequency can be done by querying the start frequency, the frequency span, and the
number of points in the trace.
Given that information, the frequency of point
n
in a linear-frequency sweep is represented by
the equation:
frequency + (n-1) x
In most cases, this is an easy solution for determining the related frequency value that
corresponds with a data point. This technique is illustrated in “Example
Data Transfer
Using FORM 4 (ASCII Format).”
When using log sweep or a list-frequency sweep, the points are not evenly spaced over the
frequency range of the sweep. In these cases, an effective way of determining the frequencies
of the current sweep is to use the OUTPLIML command. Although this command is normally
used for limit lines, it can also be used to identify all of the frequency points in a sweep. Limit
lines do not need to be on in order to read the frequencies directly out of the instrument
with the OUTPLIML command. Refer to example
“Data Transfer Using Frequency Array
Information.
Note
Another method of identifying all of the frequency points in a sweep is to
use the marker commands MARKBUCKx and OUTPMARK in a FOR NEXT
programming loop that corresponds to the number of points in the sweep.
MARKBUCKx places a marker at a point in the sweep, where x is the number
of the point in a sweep, and OUTPMARK outputs the
value as part of
the marker data.
Programming and Command Reference
1-25
Page 37
Data-Processing Chain
This section describes the manner in which the analyzer processes measurement data. It
includes information on data arrays, common output commands, data levels, the learn string,
and the calibration kit string.
Data Arrays
shows the different kinds of data available within the instrument:
n
pre-raw measured data
n
raw measured data
n
error-corrected data
n
formatted data
n
trace memory
calibration coefficients
Trace memory can be directly output to a controller with , but it cannot be directly
transmitted back.
Programming and Command Reference
Page 38
One channel shown.
OUTPMEMO
Raw
Data
OUTPDATF
OUTPFORM
OUTPFORF
0
Accessible
Array
OUTPRAF
Figure 1-4. The Data-Processing Chain
All the data-output commands are designed to insure that the data transmitted reflects the
current state of the instrument:
n
OUTPDATA,
OUTPFORM, OUTPDATF,
and OUTPFORF will not
transmit data until all formatting functions have completed.
n
OUTPPRE transmits data in conjunction with
Programming Example
n
OUTPLIML,
lhke4
Error Correction Processed on an External PC.
and OUTPLIMF will not transmit data until the limit test has
occurred (if activated).
mode and the SWPSTART command. See
Programming and Command Reference
Page 39
n
OUTPMARK will activate a marker if a marker is not already selected. It will also insure that
any current marker searches have been completed before transmitting data.
n
insures that the statistics have been calculated for the current trace before
transmitting data. If the statistics are not activated, it will activate the statistics long enough
to update the current values before deactivating the statistics
n
OUTPMWID insures that a bandwidth search has been executed for the current trace before
transmitting data. If the bandwidth-search function is not activated, it will activate the
bandwidth-search function long enough to update the current values before switching OFF
the bandwidth-search functions
Fast Data Transfer Commands
The HP 8753D has four distinct fast data transfer commanda These commands circumvent
the internal “byte handler” routine and output trace dumps as block data. In other words, the
analyzer outputs the entire array without allowing any process swapping to occur
ASCII data transfer times are not affected by these routines. However, there are speed
improvements with binary data formats The following is a description of the four fast data
transfer commands:
n
format. This data may be input to the analyzer using the INPUDATA command.
n
output format, but only the first number in each of the OUTPF’ORM data pairs is actually
and
formats, the INPUFORM command may not be used to re-input the data back into the
thus eliminating it reduces the number of bytes transferred.
outputs the error corrected data from the active channel in the current output
outputs the formatted display trace array from the active channel in the current
-
-..-.
. . . .._._..._.
. . . .
. . . .
Because the data array does not contain the second value for these display
The second value may not be
__
in some display formats (see ‘0ble
n
OUTPMEMF outputs the memory trace from the active channel. The data is in real/ii
pairs, and, as such, may be input back into the memory trace using INPUDATA or
n
memory trace using the
outputs the raw measurement data trace The data may be input back into the
command.
Data Levels
Different levels of data can be read out of the
in Figure 14.
following list describes the different types of data that are available from
the network
Pre-raw data
This is the raw data without attenuator offsets applied. With
raw offsets turned off, the calibration coefficients generated
can be transferred to an external controller and used with
the data gathered using the
Programming Example 2E: lhke4
on an External Computer. The four arrays refer to
and S22 respectively. These four arrays are available only if
2-port correction or
Raw data
in
The basic measurement data, reflecting the
parameters,
pairs
averaging, and IF bandwidth. If a full 2-port
measurement calibration is activated, there are actually four
Refer to the data-processing chain
commands See
Error Correction Processed
S21,
mode is on. This data is represented
1-28HP-IB
Proflnmming and Command Reference
Page 40
raw arrays kept: one for each raw S-parameter. The data can
be output to a controller with the commands
Normally, only raw 1
is available, and it holds the current parameter. If a 2-port
measurement calibration is active, the four arrays refer to
and
respectively. This data is represented in
real/imaginary pairs
Error-corrected data
This is the raw data with error-correction applied. The array
represents the currently measured parameter, and is stored in
real/imaginary pairs. The error-corrected data can be output to
a controller with the OUTPDATA
command. The OUTPMEHO
command reads the trace memory, if available. The trace
memory also contains error-corrected data. Note that neither
raw nor error-corrected data reflect such post-processing
functions as electrical-delay offset, trace math, or time-domain
Formatted data
This is the array of data actually being displayed. It reflects
all post-processing functions such as electrical delay and time
domain. The units of the array output depend on the current
display format. See
for the various units
as a
function of display format.
Calibration coefficients
The results of a measurement calibration are arrays containing
calibration coefficients. These calibration coefficients are then
used in the error-correction routines. Each array corresponds to
a
error term in the error model. The HP 87530
User’s
which error coefficients are used for
Network
specific calibration types, as well as the arrays those coefficients
can be found in. Not all calibration types use all 12 arrays The
data is stored as real/imaginary pairs
Generally, formatted data is the most useful of the five data levels, because it is the same
information the operator sees on the display. However if post-processing is unnecessary
(e.g. possibly in cases involving smoothing), error-corrected data may be more desirable.
Error-corrected data also affords the user the opportunity to input the data to the network
analyzer and apply post-processing at another time.
Learn String and Calibration-Kit String
The learn string is a
the limit-test tables, and the list-frequency table for the current instrument state. It does not
include calibration data or the information stored in the save/recall registers.
The learn string can be output to a controller with the command, which commands
the analyzer to start transmitting the binary string. The string has a llxed length for a given
firmware revision. The array has the same header as in FORM 1. See Example 5, ‘Using the
String.”
The calibration kit includes a set of key characteristics of the calibration standards used to
determine the calibration accuracy. There are default kits for several different connector
types. There is also space for a user-defined calibration kit. The command OUTPCALK outputs
the currently active calibration kit as a binary string in FORM 1. As with the learn string, the
calibration-kit string has a fixed length for a given
of the instrument state. It includes all the front-panel settings,
revision.
HP-IB Programming and Command Reference
1-29
Page 41
Error Reporting
This section describes the analyzer’s error-reporting process. It includes information on status
reporting, the status byte, the event-status registers, and the error output.
Status Reporting
The analyzer status reporting structure is depicted in Figure
Refer to lhble
description of each bit within the status reporting structure.
ESNB
for a
SRE
2048
1024 512 256 128 64 32
64 32 16
EVENT STATUS REGISTER
Figure
4 2
Status
16
EVENT STATUS REGISTER B
SE
E
1
Structure
1
130
Page 42
1-6. Status Bit
Status Byte
BitName
0
Waiting for reverse GET
1
Waiting for forward GET
2
Check event-status register B
3
Check error queue
4
Message in output queue
5
Check event-status register
One of the enabled status-byte bits is causing an
6 Request service
7 Preset
Bit
0
1 Request control
2 Query error
3
4 Execution error
5 Syntaxerror
6 User request
7 Power on
Bit
0
or calibration step complete
1
2
Data entry complete
3
Limit failed, Channel 2
4
Limit failed, Channel 1
5
Search failed, Channel 2
6
Search failed, Channel 1
7 Copy Complete
complete
Bit
sweep, number of groupa
routine waiting or done
Not applicable for the
Not applicable for the BP
An error has occurred and the message has been placed in the error queue,
but has not been read yet.
A command has prepared information
yet.
An instrument preset has been executed.
A command for which OPC has been enabled has completed operation.
control of a peripheral, and needs control of
mode.
The analyxer has been addressed to talk
queue to transmit.
A sequence has executed the assert SRQ command.
A command was received that could not be executed.
The incoming HP-IB
can only be cleared by a device clear or an instrument preset.
The operator has pressed a front-panel key or turned the RPG.
A power-on sequence has occurred since the last read of the register.
A single sweep, group, or calibration step has been completed since the last
read of the register.
An internal service routine has completed operation, or is waiting for an
operator response.
A terminator key has been pressed or a value entered over HP-IB since the
last read of the
Limit test failed on Channel 2.
Limit test failed on Channel 1.
A marker search was executed on
found.
A marker search was executed on Channel 1, but the target value was not
found.
A copy has been completed since the last read of the register.
Limit test failed on channel 4.
Limit test failed on channel 3.
A marker search was executed on Channel 4, but the target value was not
found.
A marker search was executed on Channel 3, but the target value was not
found.
Begister B (Contimed)
Status Byte
The analyzer has a status-reporting mechanism that reports information about specific analyzer
functions and events The status byte (consisting of summary bits) is the top-level register.
Each bit reflects the condition of another register or queue. If a summary bit is set (equals
the corresponding register or queue should be read to obtain the status information and
clear the condition. Reading the status byte does not affect the state of the summary bits.
The summary bits always reflect the condition of the summarized queue or register. The
status byte can be read by a serial poll or by using the command OUTPSTAT.
this command, the sequencing bit can be set by the operator during the execution of a test
sequence. OUTPSTATdoes not automatically put the instrument in remote mode, thus giving
the operator access to the analyzer front-panel functions
The status byte:
When using
n
the error queue
summarizes two event-status registers that monitor specific conditions inside the instrument
n
contains a bit that is set when the instrument is issuing a service request (SRQ) over HP-IB
n
contains a bit that is set when the analyzer has data to transmit over HP-IB
Any bit in the status byte can be selectively enabled to generate a service request (SRQ) when
set. Setting a bit in the service-request-enable register with the
corresponding bit in the status byte. The units variable
represents the binary equivalent of
the bit in the status byte. For example, enables status-byte bits 3 and 4 (since
command enables the
+
= 24) and disables all the other bits SRE will not affect the state of the status-register bits.
The status byte also summarizes two queues: the output queue and the error queue. (The
error queue is described in the next section.) When the analyzer outputs information, it puts
the information in the output queue where it resides until the controller reads it. The output
queue is only one event long. Therefore, the next output request will clear the current data.
The summary bit is set whenever there is data in the output queue.
The Event-Status Register and Event-Status Register B
The event-status register and event-status register B are the other two registers in the
status-reporting structure. They are selectively summarized by bits in the status byte via
enable registers. The event-status registers consist of latched bits. A latched bit is set at the
beginning of a specific trigger condition in the instrument. It can only be cleared by reading
the register. The bit will not be reactivated until the condition occurs again. If a bit in one of
these two registers is enabled, it is summarized by the summary bit in the status byte. The
registers are enabled using the commands
same manner as
The units variable represents the binary equivalent of the bit in the
status byte.
, both of which work in the
132
Page 44
If a bit in one of the event-status registers is enabled, and therefore, the summary bit in the
status byte is enabled, an SRQ will be generated. The SRQ will not be cleared until one of the
five following conditions transpire:
1. The event-status register is read, clearing the latched bit.
2. The summary bit in the status byte is disabled.
3. The event-status register bit is disabled.
4. The status registers are cleared with the CLES ; command.
5. An instrument preset is performed.
133
Page 45
Service requests generated when there are error messages or when the instrument is waiting
for the Group Execute Trigger (GET) command are cleared by:
n
reading the errors
issuing GET (disabling the bits)
clearing the status registers
Error Output
When an error condition is detected in the analyzer, a message is generated, displayed on the
analyzer’s display screen, and placed in the error queue. Error messages consist of an error
number followed by an ASCII string no more than
same message that appears on the analyzer’s display. The error queue holds up to 20 error
messages in the order in which they occur. The error messages remain in the error queue until
the errors are read by the system controller using the command OUTPERRO. The OUTPERRO
command outputs one error message.
long. The string contains the
Note
The error queue can only be cleared by performing an instrument preset or by
cycling the line power. In order to keep the queue up-to-date, it is important to
read all of the messages out of the queue each time errors are detected.
Calibration
Measurement calibration over
the front-panel. For detailed information, refer to “Optimizing Measurement Results” in the
HP
Network
1. Start by selecting a calibration kit, such as 50 ohm type N.
2. Select a calibration type, such as
3.
a
ea&
calibration, the reflection,
opened before the classes in the subsequence are called, and then closed at the end of each
subsequence.
4. If a class has more than one standard in it, select a standard from the menu presented
to STANG).
5. If, during a calibration, two standards are measured to satisfy one class, the class must be
closed with DONE
.
follows the same command sequence as a calibration from
User’s
l-port
transmis
sion,and isolation subsequences must be
../..../........
)
The
to STANG commands will hold off the
until completion because they trigger
a sweep. If a class has only one standard in it, which means that it will trigger a sweep when
called, the class command will also hold off the
Note
Since different
class, any automated calibration sequence is valid only for a specific
1-34HP-IB Programming and Command Reference
kits can have a different number of standards in a given
kit.
Page 46
1-8. Relationship between
and Classes
.
.
TRL
TRL
or
1 These subheadings must be
2 These subheadin@ must be called when doing TRL
when doing
l
Page 47
Error
r
1
2
3
4
6
7
8
9
10
11
12
1 One path, 2-portcal duplicates arrays 1 to
2 Response and isolation corrects for
transmission measurements, aud for
reflection measurements.
or
Meaning of fhxt subscript:
D = directivity
S
source match
R
reflection tracking
or isolation
L-load match
T
transmission tracking
ES
ELF
ERR
in arrays 7 to 12.
and trawmission tracking in
and reflection tracking in
ELF
ERR
Meaning of second subscript:
R = reverse
136
Page 48
Disk File Names
Disk
DOS format, the
the kind of information in the
distinguish
Error corrected data, raw data, formatted data, memory traces, and calibration
FORM 3 data
decoded.
created by the analyzer consist of a state name of up to eight characters, such as
appended with up to two characters. In
is
The first appended character is the
format, the
name is
In
type,
The second appended character is a data index, used to
of the same type.
are
(IEEE
lists the appended characters and their meanings
I, P Instrument state
W
G
D
floating point format). The other files are not meant to be
Disk File Names
Four-channel
corrected data
Raw data
1
Display graphia,
1
Channel 1
2
Channel 2
3
Channel 3
4
Channel 4
1
4
Ch2/Ch4,rawarrays6t~8
raw arrays 1
4
Formatted data
F
Memory trace
M
C
Cal data, channel 1
1
Cal data, channel 2
2
F
L
Full page
plot)
plot)
Channel 1
1
2
Channel 2
Channel 3
3
4
Channel 4
1
Channel 1
2
Channel 2
Channel 3
3
Channel 4
4
K
0
CoefEcientsltoQ
A
B
C
Sameaschannell
P
Lower
L
10
11
12
Right
S
Error corrected data (S2P)
plot)
Lower
L
U
1
Channel 1
Channel 2
2
HPJB Programming and Command Reference
137
Page 49
Using Key Codes
Using key codes
to using other HP-IB commands This may be
remote control of the analyzer keys and can be used as an alternative
but it is a
recommended
programming practice to use the HP-IB command mnemonic appropriate for the function
desired.
R
Figure 1-6. Key Codes
When using key codes, the following notes must be taken into consideration:
Note 1:
Note 2:
Note 3:
An “invalid key” is reported with a 63.
outputs the key code of the last key pressed. This command reports a
KOR?
outputs the last key code or knob count. If the reply is positive, it is a key
code. If it is negative, then set bit 15 equal to bit 14, and the
integer is the
knob count. It can be either positive or negative. There are about
two byte
120 counts per turn.
Page 50
Key Select Codes for the Network Analyzer
The HP-IB mnemonics in the following table are
equivalent. For example, all of the mnemonics that correspond to softkeys accessed by means
of the
AVG
CAL-Error correction, calibration
CAL-Calibration kits
CAL-Power Meter Calibration
CHANNEL
COPY
DISPLAY
ENTRY
FORMAT
LOCAL
The front-panel function affected by the mnemonic
The effects of the mnemonic on that function.
The HP-IB mnemonic
Syntax type. See “Syntax Types”, earlier in this chapter.
Interrogate response. If a response is defined, it is listed.
OPC-compatible command.
The range of acceptable inputs and corresponding units.
Optional data.
Numerical data.
An integer appendage that is part of the command. For example,
where I= 1 to 5, indicates that the actual commands are CLEAl,
A character string operand which must be enclosed by double quotes
A necessary appendage.
Four-graticule display with
channel 2 iu upper right
Four-graticule display with
channel 3 in upper right
to
(Channel 2 data
divided by channel 1 data,
and displayed on channel 2)
Data
Memory only
Data
and mem
Data mem
with
Mnemonic
DISPLAY
DISPMEMO
DISPDATM
DISPDDM
DIVI
DISPDMM
2
2
1
1
1
1
1
1
1
2
1
1
1
1
1
0
notation
Data mem
Blank
Display
done
Background intensity
colors
colors
Default colors
1
3
2
4
2
2
1
3
1
1
1
100
char.
148
Page 60
Key Select Codes (continued)
Modify specific
feature
feature
Action
Ch 1 memory
Ch 2 memory
Ch 3 memoryCOLOCHSM
Ch 4 memoryCOLQCH4M
Graticule
Reference Iine
Brightness
ColorCOLOR[D]
Tiut
Reset color to default
Mnemonic
s ?
1
1
1
1
1
1
1
1
1
1
1
1
3 D
3 D
3 D
1
0
149
Page 61
Key Select Codes (continued)
Function
Step keys
Entry off
Format
HP-IB modes
Debug
Action
UP
Down
Phase
Delay
Smith chart
Polar
Real
Use pass control
Display comma&~
Mnemonic
ENTRY
UP
DOWN
FORMAT
LOGM
DELA
LINM
REAL
IMAG
USEPASC
s ? 0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2 l,o
Disk drive
HP-IB addresses
meter
Select plotter type Plotter
Select printer type
unit
Volume
Plotter
Printer
Disk drive
ControllerADDRCONT[D]
Address
HPGL printer
DeskJet
LaserJetPRNTYPLJ
DJ
DISCVOLU[D]
ADDRDISC[D]
PRNTYPDJ
PRNTYPPJ
PRNTYPEP
3 D
3 D
3 D
3 D
3 D
3 D
3
2
1
1
1
1
1
1
1
1
0
30
0 to 30
0
30
Page 62
Key Select Codes (continued)
Function
LOCAL (continued)
Select printer port HP-IB
serial
Parallel
serial
Disk
Printer serial port Baud rate
port Handshake
port
Baud rate
port Handshake
port
Mnemonic
PRNPRTHPIB
PRNPRTPARA
PRNPRTSERI
1
1
1
1
1
1
1
3 D
2 1,0
3 D
2 1,0
2
0
1200, 2400,
GPIO = Gen.Purpose I/O,
use
AIR
B/R
A
B
R
Selects
Analog input
S-Parameters
parametersZ%mmmission
off
AR
BR
AB
MEASB
RFLP
CONVZTRA
1
1
1 0,l
1 0,l
1
1
2
1 0,l
1 0,l
1
1
1
1
1
1 0,l
1 0,l
1
Syntax type 1 when ANABOF’F. Syntax type 3, and range = 1 to 31, when ANABON. Refer to the
for
on the analog bus.
Page 63
Key Select Codes (continued)
Level
Always couple power
Port power coupling
Power range
Source power on/off
Attenuator A (Option 086)
Attenuator B (Option 086)
Mnemonic
MENU fstimul~~
PRANOQ
POWROQ
s
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
3
0
D
0to55dB
0to55dB
Time
Measurement
Selects fastest sweep time
Restart
Programming and Command Reference
3
1
1
0.Ol to
Page 64
Key Select Codes (continued)
channels On/off
freq
type
MENU (stimnlns) (continued)
Hold
Number of groups
Continuous
External trigger off
External trigger on sweep
External trigger on point
Manual trigger on point
Set value
Linear
List
Select a segment
Select all segments
Power
CW time
HOLD
TRIG
SING
NUMG[D]
FRER
POIN[D]
LINFREQ
LISFREQ
ASEG
POWS
Mnemonic
?0
1 0,l
1
3
1 0,l
2 0,l
2 0,l
1 0,l
1 0,l
3 D
2 l,o
3 D
1 0,l
1 0,l
1 0,l
3 0,l
1 0,l
1 0,l
1 0,l
2 0,l
OPC
1 to 999
3, 11, 26, 51, 101
201,401, 801, 1601
1
Add segment
Edit segment NSEDI[D]
Delete segment
Done
Clear list
frequency or power sweeps, refer to Chapter 12, ‘Preset State and Memory Allocation,” in the
For CW time sweep,
Guide. For CW time: 0 to
on:
l/time step.
SADD
CLEL
hours. For frequency sweep, transform on:
1
3 D
1
1
1
1
l/frequency
30
Page 65
Key Select Codes (continued)
Function
Edit
segment Single segment sweep
active
Barker zero
reference
start
Center
cw
Done with segment
All segment sweepASEG
zero omets
Fixed markerDEZRFIXM
Mode off
Action
Mnemonic
MENU (stimuIns) (continued)
SPAN[D]
SDON
MARKER
s
0
3 D
3 D
3 D
3 D
3 D
3 D
3 D
1
1
1
3 D
1
1
1
rmget
1 to 1632
Fixed
mkr position Stimulus
Value
Aux value MARKFAUV[D]
placement Discrete
Continuous
Couple channels
UncoupleMARKUNCO
Linear
For frequency or power sweeps, refer to Chapter 12, ‘Preset State and Memory
8719DBODBZD
For CW time sweep, transform on:
For
mag:
500 units. For SWR:
degrees,
User’s
500
For phase:
500 units. The scale is
seconds, and 10
For CW time: 0
500 degrees. For Smith chart and PoIaz
24 hours. For frequency sweep, transform on:
step.
positive, end has minimum values of
3 D
3 D
3 D
1
1
1
1
2 l,o
1
1
1
500 units. For
Amplitude range#
in the
l/frequency
magnitude:
HP-IB Programming and Command Reference
Page 66
Key Select Codes (continued)
Function
markers
function to
marker value
Search
Action
MARKER
Linear
R+jX
G+jB
start
Center
ReferenceMARKREF
Delay
Off
Maximum
Minimum
Search left
Search right
Mnemonic
(continued)
SMIMLIN
SMIMGB
MARKDELA
s ? 0
1 0,l
1
1 0,l
1 0,l
1
2 l,o
1
1
1
1
1
1
1 0,l
1 0,l
1 0,l
3 D
1
1
For log mag:
Value
Width on/off
500 dB. For phase:
3 D
500 degrees. For Smith chart and Polar:
500 units. For linear magnitude:
Amplitude
Programming and Command Reference
Page 67
Key Select Codes (continued)
Save
ClearSelected reg
Store
TitleDisk file
Selected reg
Selected reg
Selected reg
Selected reg
Selected reg
reg
Internal reg
Save state llle
Plot
Selected
lb
Action
Mnemonic
SAVEREG<I>
CLEAREG<I>
RECA<I>
RECAREG<I>
PURG<I>
s ? 0
2
2
2
2
1
2
2
4
4
4
4
2
2
4
1 to 5
01 to31
01
01
31, 10 char.
01 to 31, 10 char.
01
31, 10 char.
Copy
Copy Iabels from register titles
with disk
format
Load
Requires pass control mode when using the HP-IB port.
Data (error correcte$
Formatted data
User graphics
Data only (error corrected,
From
Recall file title&
Thiserrorcorrecteddat.aisthesameasthatoutputbythecomman d
from
titles
pairs)’
SAVUBINA
1
1
2 l,o
2 l,o
2 l,o
2 l,o
2 l,o
1
1
2
1
Page 68
Key Select Codes (continued)
Function
Select storage
Disk format
bference
Action
disk
disk
LIF Directory size
memory
Internal disk
disk
disk
DOS
Value
Position
Value
Set deIay
Waveguide deIay
Mnemonic
INIE
INTM
INTD
EXTD
INTD
FORMATDOS
FORMATLIF
REFV[D]
MARKREF
COAD
WAVD
s
1
3
1
1
1
1
1
1
1
3
3
3
1
3
1
1
0
D
256
to 8192
Amplitude ranges
10
Amplitude range#
10.0
menu
For log mag:
units. For
degrees,
sequence
Do
sequence
sequence
to select seq.
Duplicate seq. X
Y
Print sequence I
Title sequence I
Clear sequence I
500
For phase:
500 units. The
seconds, and 10
CONS
sequence
PTOS
DONM
500 degrees. For Smith chart and
is always positive, and has minimum values of
3
2
2
2
1
1
2
2
2
1
2
2
500 units. For
360 deg
magnitude:
1
Page 69
Key Select Codes (continued)
TTL
I/O
Save/recall
sequences
Special
functions
Action
out high continuously
out low continuously
low
end sweep high
end sweep low
I/O forward
reverse
Programs alI GPIO output bits
Set
Clear specilled bit on GPIO
Specify input GPIO bit forPARAIN(D]
IFBI
Input GPIO bit high
SEQ<I>
Input GPIO bit low
SEQ<I>
Store sequence I to
Peripheral address
Title to peripheralTIlTF%RI
Wait D secondsSEQWAIT[D]
Pause
Marker to CW freq.
Title to HP-IB printer
Title to pwr
Show menusSHOM
Assert seq. status bit
Read pwr
title string
Send number intoTITTMEM
trace memory
bit on GPIO SETBIT[D]
do IFBIHIGH
do
sequence I from
TSI’IOREV
PARAOUT[D]
CLEABIT[D]
ADDRPERI[D]
EMIB
? 0
1
1
1
1
1
1
3
2
2
2
1
1
2
2
3 D
1
3 D
1
1
1
1
1
1
1
1
1
D ecision
then do sequence I
then do sequence I
counter
Requires pass control when
Set value
Increment by 1
Decrement by 1
If counter equals 0
then do sequence
If counter not equal to
0 then do sequence
the HP-IB port.
INCRLQOC
DECRLOOC
2
2
3
2
2
0 to 32,760
Page 70
Key Select Codes (continued)
Function
STIMULUS
stimulus
Set clock
mode
Frequency oKset
For frequency or power sweeps, refer to Chapter 12, “Preset State and Memory
For CW time sweep, transform on:
Center
start
Time stamp
set date
Set time
attenuator
Retrace powerRETP<ONIOFF>
Step sweep
Network analyzer
Tuned receiverINSMTUNR
External R channelEXTRCHAN
Value
Select up converter
Select down converterDCONV
View measurement/mixer
setup
For CW time: 0
INSMNETA
24 hours. For frequency sweep, transform on:
step.
Mnemonic
CENT[D]
SPAN[D]
SYSTEM
2 l,o
3
3
2 l,o
2
2
2 l,o
2 l,o
3
3
1
1
1
1
2 l,o
s ? 0
3 D
3 D
3 D
3 D
1
1
1
DD MMM YYY
frequency range of
instrument
in the
l/frequency
Programming and Command Reference
Page 71
Key Select Codes (continued)
Function
Limit line
Limit test
Beeper
Limit oKset
Amplitude
hlarker to offset
Edit tableBegin
Add segment
Edit segment D
Delete segment
Done with edit
Clear list
Edit segment
Marker to
Upper Iimit
Lower Iimit
Delta limits
Middle value
Marker to middle
kgment done
edit
Action
EM-limit testing
LIMIMAOF
EDITLIML
value
Limittype
Iine type
point type
For frequency or power sweeps, refer to Chapter 12,
8719D/zOD/zaD
tip. For CW time sweep, transform on:
Guide For CW time: 0 to 24 hours. For frequency sweep, transform on:
l/time step.
Mnemonic
State and Memory
0
2
2
3
D
3
D
1
1
1
3
D
1
1
1
3
D
1
3
D
3
D
3
D
3
D
1
1
1
1
1
31
Amplitude range#
1 to 18
in the
l/frequency
l-mget
For log
500 units. For SWR:
degrees,
500
seconds, and 10
For phase:
500 units. The scale is always positive, and has minimum values of
500 degrees. For
chart and
500 units. For Iinear magnitude:
dB,
Page 72
Key Select Codes (continued)
Function
Time Domain Transform
Set freq
ModeLow pass impulse
Specify gate menu
Window
Window shape
Demodulation
Maximum
Normal
Minimum
Any value
Use trace memory
Action
Mnemonic
LOWPIMPU
SPEG
DEMOAMPL
DEMOPHAS
0
1
1
1
1
1
1
1
1
3
D
2
l,o
1
1
1
2
3
D
3
D
3
D
3
D
dependent
1
I
shape
Wide
For frequency or power sweeps, refer
For CW time sweep, transform on:
Guide. For CW time: 0 to 24 hours. For frequency sweep, transform on:
1
1
1
1
31
-I
Chapter 12, “Preset State and Memory Allocation,” in the
step.
l/frequency
and Command Reference
Page 73
HP-IB Only Commands
1-12. HP-IB Only Commands
Action
Identify
instrument
Key code
Move marker
On completion
Plot/print
Copy default
IDN?
KEY [D]
KOR?
MnemonicSyntaxJ
MISCELLANEOUS
1
1
1
2
1
2
1
Outputs the
PACKARD, 87NND,O,XXX”, where
model number of the instrument and
revision of the instrument.
DImitates pressing a key. The data transmitted is the
last key code or knob count. If the reply is
positive, it is a key code. If it is negative, then set bit
16
the RPG knob count. It can be either positive or
negative. There are about 120 counts per turn.
DMoves the marker to the selected point on the trace.
On a 201 point sweep, D can range from 0 to 200.
Causes reporting of the
completion.
Includes the
plotting the screen.
Sets up a default state for copy.
bit 14, and the resulting two byte integer is
Description
string: “HEWLETT
is the
is the
menu keys when printing or
command
Revision
1
2
Displays the software revision on the
D
the learn
from the analyzel The valid parameters are:
0: Defaults to current revision.
201: Revision
612: Revision
revision to input to and output
2.01
6.12
Page 74
Only Co
(continued)
Action
start
No operation
Select
l-port cal
External
trigger
NOOP
Mnemonic
syntax
JS (continued)
1
2
Description
Initiates a sweep and immediately releases the
bus, allowing the analyzer to initiate data output as
soon as the appropriate data is ready. Use in
conjunction with
1,0
Initiates a mode in which every measurement cycle is
characterized by sweeping in both the forward and
reverse directions and collecting raw data for all four
S-parameters. The sweeping can occur when a
analyzer is in continuous, number of
external trigger mode.
Creates a cycle that has no operation. OPC compatible.
Provides access to functions within the l-port cal
menu. (HP 8610 compatibility.)
Sets the trigger polarity high.
Sets the trigger polarity low.
or SING
mode only.
d
is received or when the
or
I
‘ormatted Data
meter
WAIT
INPUFORM[D]
SAVC
INPUCALK[D]
Makes the analyzer wait for a clean sweep when used
with the OPC command.
T
3
D
3
D
3
D
D
3
3
D
3
D
2
1
3
D
3
errorsorrected data.
formatted data.
raw data.
an individual error coefficient array. Issue the
command
type), then input each of the appropriate
error
issue
OPC compatible command denotes completion of
the error coefllcienta transfer
power meter cal array.
100 times the power meter reading in
a
kit.
specifies the data
using “INPUCALC”.
the instrument.
be entered
D
3
the learn string. Preceded by SELL if learn
string is not current revision.
Page 75
Only Co
(continued)
Action
function
channel OUTPCHAN
OUTPOPTS
Serial number
dentify OUTPIDEN
Interp. cal.
OUTPDATF
Mnemonic
. . .
syntax ? Description
OUTPUT
1
1
1
1
1
2
2
1
1
1
Outputs value of function in active entry area in ASCII
format.
Outputs the active channel number.
Outputs an ASCII
Outputs the serial number of the analyzer.
See IDN?
Outputs the selected error
active channel. Each array is the same as a data array.
See
Outputs the active
Outputs the error corrected data from the active
channel in
Fastdatatransferco
of the options
array from the
l-9, for the contents of the arrays.
the selected interpolated
kit, a less than 1000 byte string
pairs. See Figure l-4.
mmand for OUTPDATA.
coel&ient array.
Error
formatted
Power meter
meter cal. OUTPPMCAL<I>
OUTPERRO
OUTPFORM
OUTPFORF
OUTPIPMCAL<I>
1
1
1
2
2
Outputs the oldest error in the error queue. The error
number is
format (FORM 4).
Outputs the formatted trace data from the active
channel in current
transferred.
Fast data transfer
transferred. See
Outputs the interpolated power meter
channel 1 or channel 2.
Outputs power meter
channel 2. Values are sent as 100 times the power
meter reading in
Outputs the code of the
format. See Figure
for a knob turn.
by the error message in ASCII
units. See
command for OUTPFORM. Only the
number of the OUTPFORM data pairs is
l-4.
array for channel 1 or
key pressed, in ASCII
for key codes. -1
l-4 for data
array for
1-64HP-IB Programming and Command Reference
Page 76
HP-IB Only Co
mmands (continued)
Action
Learn
External source
smoothing
Sequencing
Limit
Limitlist
Limit marker
Mnemonic
OUTPRFFR
OUTPSEQ<I>
OUTPLIMF
OUTPLIML
syntax
OUTPUT (continued)
1
1
1
1
Outputs the learn string in binary, not intended for
decoding.
Outputs
source instrument mode.
Outputs the smoothing aperture.
Outputs sequence I (I = 1 to 6) listing over HP-IB.
Outputs the limit results as described under OUTPLIML
for only those
Outputs the Iimit test results for each
The results consist of four numbers. The
for no test, 0 for fail, 1 for pass. The third number is
the upper limit value, and the fourth is the lower Iimit
value. This is an ASCII transfer (FORM 4).
OUTPLIML for the active marker.
Description
source RF frequency when in external
points that failed.
point.
is the
value tested, the second is the test
Marker
Memory
Marker statistics
Bandwidth
Bandwidth+ loss
Plot
OUTPMARK
OUTPMEMO
OUTPMWID
1
1
Outputs the active marker values in 3 numbers. The
two numbers are the marker values, and the last
the stimulus value. See
Outputs the memory trace from the active channel. It
be treated the same as data from
Fast data transfer comman
Outputs marker statistics: mean, standard deviation,
and peak to peak deviation. ASCII format (FORM 4).
Outputs results of bandwidth searchzbandwidth, center;
and Q. ASCII format (FORM 4).
Same operation as OUTPMWID plus the loss value.
Outputs the
HP-IB port. Can be directed
plot string in ASCII format to the
for the marker values
d
for OUTPMEMO.
an
plotter or
HP-IB Pro6ramming and Command Reference
Page 77
HP-IB Only
mmands (continued)
Pre-raw data
data
Mnemonic
OUTPPRIN
OUTPPRNALL
syntax ?
OUTPUT (continued)
1
1
1
1
1
1
1
1
1
1
1
Outputs the print string of the dispIay graphics.
Outputs
Operating and marker parameters in ASCII. Activate
the desired function with LISV to print values or OPEF
to print operating parameters prior to this command.
Array 1
that pre-raw data has not had sampler correction nor
attenuator offsets applied. Use in conjunction with
mode
Array 2
Array 3 (512 data).
Array 4
Array 1 (Sll
the active channel. Raw 1 holds the sin&e parameter
data unless a
1 holds
respectively. The data is in
Array 2
Array 3 (512 data).
Array 4
Fast data transfer
Description
List Values or current page of
data). Analogous to OUTPRAW except
data).
data).
uncorrected data arrays for
and the following arrays hold
data).
data).
co
mmand for
is on, in which case raw
pairs.
and
byte
title
Max values
Min
valuesOUTPAMIN*
Min/Max
Min/max
For the detinition of a limit segment, see “Example Display of Limit Lines” in the Chapter 2 section titled “Limit
Refer to the “Lhnit Line and Data Point Special Functions” section in Chapter 2.
values
value
and Data Point Special
1
1
1
1
1
1
Outputs the status byte. ASCII format (FORM 4).
Outputs max values for all limit line segments.
Outputs min values for
Outputs Iimit test
segment
Outputs Iimit test
the
min value for
title. ASCII format
max stimuhq max value, min
4).
limit Iine segments.
se@. Outputs the
active segmentat
for a
segment.
1-66HP-IBProgrammin6 and Command Reference
Page 78
HP-IB Only Co
mmands (continued)
Data: point
Data: range
Limit test: chl
Limit test:
test:
Limit test: ch4
Limit test status
Limit test status
report
Mnemonic
OUTPDATP
OUTPDATR
syntax
(continued)
1
1
1
1
1
1
1
1
1
1
Description
Outputs trace data indexed by point. (see SELPT[D])
Outputs trace data for range of points. (see
SELMINPT[D],
Outputs
Outputs
Outputs
Outputs
Outputs the segment number and its limit test
See
mmand is similar to OUTPLIMF except that it
reports the number of
test.
Outputs the date of the clock in the following format:
DDMMMYYYY
of limit test for channel 1.
of limit test for
of limit test for channel 3.
of limit test for channel 4.
all active segmentat
the
and trace values for each failed point in the
test
for a
2.
segment.
followed by the
1
21,0
Segment
point
specify point
Refer to the “Limit Line and Data Point 3pecial Functions” section in Chapter 2.
returned for limit test status are: 1 (PASS), 0
For the defhrition of a limit segment, see “Example Display of Limit Lines” in the Chapter 2 section titled “Limit
3
3
3
3
Outputs the
Enables/disables
and max
D
Selects segment
OUTPSEGM w
1 to
DSelects the last point number in the range of points
that the
from 0 to the number of points minus 1.
D
Selects the
that the OUTPDATR w
from 0 to the number of points minus 1.
DSelects point number that the OUTPDATR command
-1 (NO-LIMIT)
report. D can range from 0 to the number of points
minus 1.
of the clock in the following format:
recording per segment. Min
are recorded per limit segment.
for the OUTPSEGF and
to report on. D can range from
w
mmandwillreport. Dcanrangc
point number in the range of
Page 79
HP-IB Only Co
Mnemonicsyntax ?
OUTPUT
1
1
1
1
1
(continued)
HP 8719/20/22 internal format, with header.
32 bit floating point, with header (IEEE).
64 bit floating point, with header (IEEE).
ASCII format. No header.
32 bit PC format (bytes reversed).
Press
Label
ClearCLES
ESB?
ESR?
Enable
ESNB[D]
AveragingMENUAVG
MENUDISP
Marker
MENUMEAS
Marker function
MENURECA
MENUSBQU
2
4
STATUS REPORTING
1
1
1
1
1
1
1
MENUS
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
Activates
Writes label (10 char) to indicated softkey I, where I = 1
commands
Clears the status byte.
Returns event-status register B.
Returns the
Returns the status byte.
D
Enables event-status register. (O<D<265)
D
Enables event-status register B. (O<D<256)
D Enables SRQ.
I, I= 1 to 8.
mmand requires previous
and MENUOFF;.
register.
1-66
Page 80
Alphabetical Mnemonic Listing
Mnemonic
AB
Description
Measures and displays A/B on the active channel.
Sets adapter electrical delay.
Controller HP-IB address: the address where control is returned
after a pass control.
Disk HP-IB address.
Peripheral HP-IB address (for sequencing). See also
Plotter HP-IB address.
Power meter HP-IB address
Printer HP-IB address
Sets adapter to
Sets adapter to
ALC control.
Places the analyzer in the alternate inputs measurement mode,
where measurements are made on alternate sweeps See also
CHOPAB
Enables the analog bus for service use.
.
Measures and displays the data at the auxihary input (ANALOG IN).
Measures and displays A/R on the active channel.
ASEG
ASSS
AUTO
These 3 commands control the warning beeper, causing it to sound if the indicated condition
occurs:
Uses all segments for list frequency sweep. See also SSEG[D].
Asserts the sequence status bit.
Attenuator A (Option 085 Only).
Attenuator B (Option 085 Only).
Enables and disables the auxiliary channels (3 and 4).
OPC-compatible.
Auto scale the active channel.
Sets the averaging factor on the active channel.
Turns averaging ON and off on the active channel.
Restart the averaging on the active channel.
Sets the background intensity of the display.
Selects the time domain
mode.
The completion of functions such as save, done with calibration
standard, and data trace saved.
A
test
HP-IB Programming and Command Reference
Page 81
The generation of a warning message.
Blanks the display.
Measures and displays B/R on the active channel.
These commands set the open capacitance values of an open circuit while it is being defined as
a calibration standard.
Accepted for compatibility with the HP 8510, where its function is
to begin a calibration sequence.
These commands set the power meter calibration factor corrections for the particular sensor
used. Sensor B is only
Sets the calibration factor.
Selects the frequency for the calibration factor correction.
which has two input channels:
CALFSENA
CALFSENB
These commands begin a calibration sequence:
These commands select a default calibration kit:
Edits the sensor A calibration factor table.
Edits the sensor B calibration factor table.
Short, load, open, thru
One-path
Response and isolation.
Response.
l-port.
l-port.
reflect, line or Line, reflect, match
(HP
2.92’ (HP
(HP
(HP
kit).
kit).
HP
kit).
kit).
Note
selects the HP
the HP 85052 series
(HP
Type-N 50
Type-N 75
kit for the HP
kits for the HP
kit and HP 85050 series).
ohm (HP 85032B/E
ohm (HP 85036B/E
and selects
kit).
kit).
Page 82
TRL
(HP
cal kit).
CALKUSED
CALN
CALZLINE
User-defined calibration kit.
Calibration: none. Turns calibration type to off.
Provides access to the power meter calibration functions.
Recalls cal set associated with Port 1 for adapter removal.
Recalls cal set associated with Port 2 for adapter removal.
Establishes the line or match standard(s) as the characteristic
impedance for a
Establishes the system
for a
calibration.
calibration.
(see
as the characteristic impedance
Adjusts the color brightness of the selected display feature. (See
COLOXXXX commands)
Sets the center stimulus value. If a
frequency segment is being
edited, sets the center of the list segment.
Makes channel 1 the active channel. OPC-compatible.
Makes channel 2 the active channel. OPC-compatible.
Makes channel 3 the active channel. OPC-compatible.
Makes channel 4 the active channel. OPC-compatible.
Places the analyzer in the chop measurement mode. See also
CLAD
Class done, modify cal
specify class
These commands call reflection standard classes during a calibration sequence. If only one
standard is in the class, it is measured. If there is more than one, the standard being used
must be selected with
If there is only one standard in the class, these
commands are OPC-compatible.
l-port, opens
l-port, shorts
l-port, loads
l-port, opens
l-port, shorts
l-port, loads
These commands (all OPC- compatible) clear the indicated save/recall registers:
Clear the currently selected list. This could be a frequency list,
power loss list, or limit test list.
Clears the status register, the event-status registers, and the enable
registers.
Same as CLES.
Selects coaxial electrical delay. See also WAVD.
COAX
Selects coaxial offsets instead of waveguide while defining a
standard during a
kit modification.
through
These commands select the indicated display feature for color modification:
Channel 1 data and limit lines.
Channel 1 memory.
Channel 2 data and limit lines.
Channel 2 memory.
Channel 3 data and limit lines.
Channel 3 memory.
Channel 4 data and limit lines
Channel 4 memory.
Graticule.
Reference line.
Warning.
Adjusts the color saturation for the selected display feature.
CONS
Continues the paused sequence.
1-72HP-IB Programming and Command Reference
Page 84
Continuous sweep trigger mode.
These 6 commands convert the S-parameter data to:
Inverted S-parameters.
CONVOFF
Conversion OFF.
transmission.
Copies labels from file titles.
Copies labels from register titles.
Turns interpolative error correction ON and OFT.
Turns error correction ON and
Couples and uncouples the stimulus between the channels
Couple the power when coupled channels is turned OFF, COUCOFF.
Selects test set continuous switching (ON) or test set hold (OFT)
when there is a 2-port calibration active. Continuous switching
is allowed only when the power ranges on both attenuator ports
are set the same. When continuous switching is ON, the analyzer
measures all four S-parameters each time before displaying the
data for a full 2-port cal measurement. In test set hold mode, the
analyzer measures all four S-parameters once and then measures the
desired parameter continuously.
measurement and it is less accurate than a full
is known as a fast 2-port
calibrated
measurement.
DATI
Sets the CW frequency for power sweep and CW frequency modes
While the list frequency table segment is being edited, it sets the
center frequency of the current segment.
Selects the CW time sweep type.
This command divides the data in channel 2 by the data in channel
1 and displays the result on channel 2. Dual display must be on
(DUACON;).
Positions channels in a 2X display with channel 2 on top.
Positions channels in a 2X display with channel 3 on top.
Positions channels in a
display with channel 2 in the upper right.
Positions channels in a 4X display with channel 3 in the upper right.
Stores trace in channel memory. OPC- compatible.
Selects down converter for mixer measurements.
Turns the HP-IB debug mode ON and OFF. When ON, the analyzer
scrolls incoming
commands across the display.
Page 85
DECRLOOC
Decrements the sequencing loop counter by 1.
DEFC
DEFLPIUNT
Sets the default colors for all display features
Sets the printer to the following default setup conditions:
Monochrome
Auto-feed
on
Print Colors:
Data
Magenta
Green
Data
Memory
Blue
Red
Graticule
Black
Text
Black
Sets up the following default state for copy. There is no equivalent
front-panel key.
Plotter Type: PLOTTER
Plotter Port: SERIAL
Printer Type:
Printer Port:
DESKJET
PARALLEL
Baud Rate:
Handshake:
9600
Xon-Xoff
HP-IB Address: 5
Parallel Port:
COPY
Begins standard definition during
Baud Rate: 19200
Handshake:
Address: 1
kit modification. D is the
standard number.
Displays the data formatted as group delay.
Turns the delta marker mode
These 6 commands make the indicated marker the delta reference:
Marker 1.
Marker 2.
Marker 3.
Marker 4.
Marker 5.
marker.
Xon-Xoff
Turns on transform demodulation and sets the transform
demodulation to amplitude demodulation. Only has a meaningful
effect with a CW time transform.
and Command Reference
Page 86
Turns the transform demodulation function OFF.
DEMOPHAS
DISCVOLU[D]
Sets the transform demodulation to phase demodulation. Only has a
meaningful effect with a CW time transform.
Sets the plotter to the following default setup conditions
Plot Data On
Plot Mem On
Plot Grat On
Plot Text On
Plot Mkr On
Auto-feed On
Scale Plot Pull
Plot Speed Past
Pen Number:
Data
Memory 5
Graticule 1
Marker 7
Line Type:
Data
2
7
7
Memory 7
Sets the number of
in the directory at disk initialization.
only.
Specifies which disk in an external multiple-disk drive to be used for
save/recall.
which volume of an external multiple-volume disk drive to
be used for save/recall.
When on, displays the response and sthnulus values for all markers
that are turned on; when off, only the active marker’s value is
displayed.
These 6 commands display the indicated combinations of data and trace memory on the active
channel:
Data only.
Data and memory.
DISPDDM
DISPDMM
DISPMEMO
DM
DONE
Data divided by memory (linear division, log subtraction).
Data minus memory (linear subtraction).
Memory only.
Same as DISPDDM.
Done with a class of standards, during a calibration. Only needed
when multiple standards are measured to complete the class
DONM
DOSEQ<I>
DOWN
Done modifying a test sequence.
Begins execution of the selected sequence. I = 1 to 6.
Decrements the value in the active entry area (down key).
channel display ON or OFF
Duplicates sequence X to sequence Y. X,Y = 1 to 6.
Programming and Command Reference
Page 87
Done editing list frequency or limit table.
Begins editing limit table.
ELED[D]
Sets the electrical delay offset.
Send out a beep during a sequence.
Tums the active entry area
ESB?
Outputs event-status register B.
Enables the selected event-status register bits to be summarized by
bit 5 in the status byte. An event-status register bit is enabled when
the corresponding bit in the operand D is set.
ESNB[D]
Enables the selected event-status register B bits to be summarized
by bit 2 of the status byte. A bit is enabled in the register when the
corresponding bit in the operand D is set.
ESR?
Outputs the value of the event-status register.
These commands include the indicated information when a register is stored on disk. See
l-4 for data types:
Adds error corrected data (real and imaginary pairs) along with the
other
Error corrected data array only (real and imaginary pairs).
Formatted trace data. Uses currently selected format for data.
User graphics
Raw data arrays (real and
pairs).
Sets the external trigger line high.
Sets the external trigger line low.
Deactivates the external trigger mode. OPC- compatible.
Activates the external trigger mode. OPC- compatible.
Sets the external trigger to auto trigger on point. OPC- compatible.
Sets the internal phase lock reference selection switch on or off.
This allows the analyzer to receive its R channel input through the R
CHANNEL IN port or from its own internal source.
Specifies a fixed load, as opposed to a sliding load or offset load,
when
a standard during a cal kit
These 5 commands set the data format for array transfers in and out of the instrument:
HP
internal format. Preceded by 4 byte header.
32 bit floating point format. Preceded by 4 byte header.
64 bit floating point format. Preceded by 4 byte header.
Programming and Command Reference
Page 88
ASCII format. No header.
32 bit floating point PC format. Bytes reversed. Preceded by 4 byte
header.
These commands define the format to use on disk initializations:
FORMATDOS
Selects DOS as the disk format.
Selects LIF as the disk format.
Activates the frequency offset instrument mode. OPC- compatible.
Frequency blank. Turns OFF frequency notation.
HP-IB free run. Acts the same as CONT; .
Selects full page plotting, as opposed to plotting in one of the four
quadrants
These 3 commands select a forward calibration class, during a
They are OPC-compatible if there is only one standard in the class:
FWDI
FWDM
Isolation.
Match.
Transmission.
These 5 commands control the time domain gate:
Center time.
Gate ON/OFF, OPC-compatible.
Span time.
Start time.
Stop time.
These 4 commands set the gate shape:
Minimum.
Normal.
GATSWTDE
GOSUB<I>
HOLD
IDN?
Wide.
Invokes a sequence as a subroutine. I =
to 6.
Puts the sweep trigger into hold.
Outputs the
where
the
is the model number of the instrument and
revision of the instrument.
string: HEWLETT PACKARD,
0, X . XX,
is
These 7 commands branch an executing sequence to a new sequence if the following condition
is satisfied.
IFBIHIGH
Tests the
input GPIO bit (see
If high, invokes
the sequence which follows
Page 89
IFBILOW
Tests the specified input GPIO bit (see
If low,
invokes
the sequence which follows.
Sets the IF bandwidth.
If loop counter equals zero, then do the sequence that follows
If loop counter does not equal zero, then do the sequence that
follows.
If limit test fails, then do sequence that follows.
If limit test passes, then do sequence that follows
IMAG
Selects the imaginary display format.
Increments the sequencing loop counter by 1.
Initializes the internal disk. All previous information on the disk
will be destroyed.
Initializes the external disk. All previous information on the disk
will be destroyed. Requires pass control when using the HP-IB port.
These commands input
individual error coefficient array. Before sending an array, issue a
CALIXXXX ; command, where XXXX specifies the calibration type of the data. Then input the
array or arrays Lastly store the data with SAVC
. The instrument goes into hold, displaying
uncorrected data. Complete the process by triggering a sweep. See for the contents
of the different arrays.
Array 1.
Array 2.
Array 3.
Array 4.
Array 5.
Array 6.
Array 7.
Array 8.
Array 9.
Array 10.
Array 11.
Array 12.
Inputs a cal kit read out with
data should be saved into the user
. After the transfer, the
kit area with SAVEUSEK; .
Inputs an error corrected data array, using the current setting of the
FORM command.
Inputs a formatted data array, using current the current setting of
the
Inputs a learn string read out by
command.
; .
Page 90
These commands input power meter calibration arrays into the instrument. Values should be
entered as
x power meter reading in
Channel 1.
INPUPMCALZ
These commands input a raw data array using the current format. See
Channel 2.
for the
meaning of the arrays The instrument stops sweeping, error corrects the data, then formats
and displays the data.
Array 1.
Array 2.
Array 3.
Array 4.
These commands select the instrument mode. They are
OPC-compatible.:
Standard network analyzer. OPC-compatible.
Tuned receiver. OPC-compatible.
Selects the internal disk as the active storage device.
Sets the display intensity, 50 to 100 percent.
Selects the internal memory for save/recall.
Done with isolation subsequence in a 2-port calibration.
OPC-compatible.
Begins the isolation subsequence step in a 2-port calibration.
Selects isolation for one path, two port calibration.
Sends a keycode, equivalent to actually pressing the key. It does not
matter if the front-panel is in remote mode. See Figure
key codes
Calibration kit done This is the last step in modifying a cal kit.
KOR?
Outputs last key code or knob count. If the reply is positive, it is a
key code. If it is negative, then set bit 15 equal to bit 14, and the
resulting two byte integer is the RPG knob count. It can be either
positive or negative. There are about 120 counts per turn.
These commands enter labels for the standard classes during a cal kit modification:
reflect.
Enters a cal kit label during a cal kit modification.
Enters a standard’s label during standard definition.
Selects a plot in the left lower quadrant.
Selects a plot in the left upper quadrant.
Enters the limit line amplitude offset.
Turns the display of the limit lines ON and
Marker to limit offset. Centers the limit lines about the current
marker position using the limit amplitude offset function.
Enters the stimulus offset of the limit lines.
Turns limit testing ON and OFT.
These 8 commands edit a limit test segment. The limit table editing is begun with
and a segment is brought up for editing with SEDI
or added using SADD
. The segment is
closed with SDON; , the table is closed with EDITDONE;
Sets the limit delta value while editing a limit line segment.
Sets the lower limit value.
Sets the middle limit value.
Sets the limit stimulus break point.
Makes the segment a flat line.
Makes the segment a sloping line.
Makes the segment a single point.
Set the upper limit value.
Selects a linear frequency sweep.
Selects the linear magnitude display format.
Enters the line type for plotting data.
Enters the line type for plotting memory.
Selects the list frequency sweep mode.
Page 92
Activates the list values function. The next page of values can be
called with NEXP
and the previous page can be called with
; .
The current page can be plotted or printed, in raster graphics mode,
with PLOT;, or PRINALL
respectively. The entire L;
(Since these
commands may need to take control of an HP-IB peripheral, the
system controller must have pass control capability.)
These 5 commands load the
command. The actual
from disk with the name indicated by the previous
loaded depends on the file title in the
command. Requires pass control mode.
Loads the
preceding TITF 1; command.
preceding
preceding
preceding
preceding
These 6 commands load the
command. The actual
from disk with the name indicated by the previous
loaded depends on the
command. Requires pass control mode.
Loads sequence 1 from disk.
Loads sequence 2 from disk.
Loads sequence 3 from disk.
position specified by the
from disk using the
name provided by the
name provided by the
command.
from disk using the
name provided by the
; command.
from disk using the
name provided by the
command.
from disk using the file name provided by the
; command.
title in the
position specified in the
LOAN
LOGFREQ
LOGM
Loads sequence 4 from disk.
Loads sequence 5 from disk.
Loads sequence 6 from disk.
Measures the load as not being offset when a standard has been
as an offset load (see OFLS).
Measures the load as being offset when a standard has been
as an offset load (see OFLS).
Sets the local oscillator frequency for use in frequency offset mode.
Selects a log frequency sweep.
Selects the log magnitude display format.
Turns ON the low pass impulse transform.
Turns ON the low pass step transform.
Same as
(output learn string).
Same as INPULEAS (input learn string).
HPJB Programming and Command Reference
Page 93
Sets the external trigger to manual trigger on point.
OPC-compatible.
These commands make the indicated marker active and set its stimulus value:
Marker 1.
Marker 2.
Marker 3.
Marker 4.
Marker 5.
Places the active marker on a specific sweep point (bucket). D is the
bucket number, ranging from 0 to number of points less 1.
Sets the center stimulus value to that of the active marker’s
stimulus value.
Places the markers continuously on the trace, not on discrete points
(interpolates the marker values between discrete points).
Couples the markers between the channels, as opposed to
Sets the CW frequency to the active marker’s frequency.
electrical length so group delay is zero at the active marker’s
Places the markers on the discrete measurement points
Sets the auxiliary value of the hxed marker position. Works in
coordination with MARKFVALandMARKFSTI.
Sets the
position of the hxed marker.
Sets the value of the fixed marker position.
Same as
(search for maximum on current channel’s trace).
During a limit segment edit, makes the marker amplitude the limit
segment middle value.
Sane as
(search for
minimum on current channel’s trace).
Turns all markers and marker functions OFT.
Sets the reference value to that of the active marker’s amplitude.
Sets the span for the entire trace to that of the span between the
active marker and the delta reference marker.
Sets the start
to that of the active marker’s
During a limit segment edit, sets the limit stimulus break point to
that of the active marker’s
Sets the stop
to that of the active marker’s
Uncouples the markers between channels, as opposed to
Places the hxed marker at the active marker position and makes it
the delta reference.
Page 94
Page 95
Sets the number of power meter readings per point used during a power
meter calibration.
OFLD
Offset loads done.
Selects the calibration standard load as being an offset load, as opposed to
a sliding or fixed load, during a cal kit modification.
These 3 commands specify the offset value for the indicated parameter for a standard being
during a
kit modification:
Delay offset.
OFSL[D]
Loss offset.
Impedance offset.
Omits the isolation step of a calibration sequence.
Operation complete. Reports the completion of the next command
received by setting bit 0 in the event-status register, or by replying
to an interrogation if OPC? ; is issued.
OPEP
Presents a list of key operating parameters. NEXP ; calls the next
page of parameters and the previous page can be called with .
Requesting a plot or print copies the current page. The current page
can be plotted or printed, in raster graphics mode, with PLOT;, or
PRINALL
mode, with
of an
respectively. The entire list can be printed, in
. Since these commands need to take control
text
peripheral, the system controller must have pass control
capability.
When the auxiliary channels are enabled in 2x or 4x split mode,
formats the display so that the auxiliary channels are vertically or
horizontally aligned to their primary channels
Outputs the value of the active function, or the last active function
if the active entry area is OFF.
Outputs the max values for all limit line segments
Outputs the
values for all limit line segments.
Outputs the smoothing aperture in stimulus units, rather than as a
percentage.
These 12 commands output an error correction array for the active calibration on the active
channel. See
set form determined by the
for the contents of each array. Each array is output in the currently
command. The data is in real/imaginary pairs, the same
number of pairs as points in the sweep.
Array 1.
Array 2.
Array 3.
Array 4.
Array 5.
Array 6.
Array 7.
Page 96
Array 8.
Array 9.
Array 10.
Array 11.
Array 12.
OUTPCALK
OUTPCHAN
OUTPDATA
OUTPDATF
OUTPFAJP
Outputs the currently active calibration kit, as a less than 1000 byte
string. The data is in FORM 1.
Outputs the active channel number, where:
1 = channel 1
n
channel 4
84
Outputs the error corrected data from the active channel. See
Figure
and
command.
Fast data transfer command for OUTPDATA. =
Outputs the trace data indexed by point (see
Outputs the trace data for range of points (see
SELMAXPT[D]).
Outputs the oldest error message in the error queue. Sends fkst the
error number, and then the error message itself as a string no longer
than 50 characters.
This command is similar to
number of
followed by the
except that it reports the
and trace values
for each failed point in the test.
OUTPFORM
Outputs the formatted display data array from the active channel.
See
format. See also
for the contents of the array as a function of display
command.
Fast data transfer command for OUTPFORM.
Page 97
These 12 commands output an interpolated error coeihcient array for the active calibration on
the active channel. See
for the contents of each array.
Array 1.
Array 2.
Array 3.
Array 4.
Array 5.
Array 6.
Array 7.
Array 8.
Array 9.
Array 10.
Array 11.
Array 12.
OUTPIDEN
Outputs the identification string for the analyzer: HEWLETT
PACKARD,
instrument and
0
. XX where
is the
is the model number of the
revision of the instrument.
These 2 commands output the interpolated power meter calibration arrays for channels 1 and
2.
Channel 1.
Channel 2.
Outputs the key code of the last key pressed. An invalid key is
reported with a 63, a knob turn with a -1. See
for the
front-panel key codes
Outputs the learn string, which contains the entire front panel state,
the Iimit table, and the Iist frequency table. It is always in binary
format not intended for decoding.
Outputs the status of the
test for channel 1.
Outputs the status of the Iimit test for channel 2.
Outputs the status of the Iimit test for channel 3.
Outputs the status of the Iimit test for channel 4.
Page 98
These 3 commands output the Iimit test results. The results consist of four fields. First is the
stimulus
at that point. Fourth is the lower Iimit at that point. If there are no
for the point. Second is an integer indicating test status. Third is the upper Iimit
at that point, the
third and fourth fields are zero. The test status is-l for no test, 0 for fail, and 1 for pass.
Outputs the Iimit test results for each failed point.
Outputs the Iimit test results for each point in the sweep. This is an
ASCII transfer.
Outputs the Iimit test results at the marker.
Outputs the marker values. The
response values, and the last is the
two numbers are the marker
value. See
for
the meaning of the response values as a function of display format.
OUTPMEMO
Outputs the memory trace from the active channel. The data is in
pairs, and can be treated the same as data read with
the OUTPDATA command.
Fast data transfer command for OUTPMEMO.
Outputs the marker statistics: mean, standard deviation, and
peak-to-peak variation in that order. If statistics is not ON, it is
turned ON to generate current values and turned OFF again. See
also
OUTPMWID
Outputs the marker bandwidths search results: bandwidth, center,
and Q in that order. If widths is not ON, it is turned ON to generate
current values and turned OFF again.
Performs the same operation as OUTPMWID plus appends the loss
as
Outputs an ASCII string of the options
OUTPPLOT
Outputs the plot string. Can
be
directed to a plotter, or read into the
computer.
These commands output the power meter calibration array. Values should be entered as 100
times the power meter reading in
sweep,
has not been taken:
A default array is used if a power meter calibration
Channel 1.
Channel 2.
These 4 commands output the pre-raw measurement data. See Figure 14 for the meaning of
the data. Analogous to OUTPRAW except that pre-raw data has not had sampler correction
nor attenuator offsets applied. These offsets are not necessary for data that
corrected. See BASIC programming Example
External Computer. The arrays hold
Array 1
Array 2
Array 3
Array 4
data).
data).
data).
data).
and
Error Correction Processed on an
respectively:
HP-IB Programming and Command Reference
be fully error
Page 99
Outputs a raster dump of the display, intended for a graphics
printer.
OUTPPRNALL
Outputs all of the List Values or Operating parameters in text mode.
Activate the desired function by preceding with LISV or OPEP,
respectively.
These 5 commands output the raw measurement data. See Figure 14 for the meaning of the
data. Normally, array 1 holds the current parameter. If a
hold
and
respectively:
calibration is active, the arrays
Fast data transfer command for
Array 1.
Array 2.
Array 3.
Array 4.
OUTPSEGAF
Outputs the segment number and it’s limit test status for all active
segments
Outputs the limit test
for all segments Outputs the
segment nwnber, max stimulus, max value, min stimulus, min value
for all active segments
Outputs the limit test status for a
segment. See
SELSEG[D] .
OUTPSEGM
Outputs limit test
for a
Outputs I’s sequence listing. I = 1 to 6.
Outputs the serial number of the analyzer.
OUTFSTATOutputs the status byte.
Outputs the display title.
Specify the input GPIO bit to be used by IFBIHIGH and
tests.
Selects use of the parallel port: for general purpose
copy function.
Programs all GPIO output bits (0 to 255) at once.
Inserts a pause into a sequence.
Same as ADDRCONT. Indicates where control will be returned after
a pass control.
segment. See SELSEG[D].
or for the
1-88HP-IB Programming and Command Reference
Page 100
These 12 commands select the color for printing the indicated display feature where <COLOR>
is one of the following colors: white, cyan, magenta, blue, yellow, green, red, or black.
These 5 commands select the pen (value for D) for plotting the indicated display feature for the
active channel:
PLOS<SLOW(FAST>
PLOT
Data trace.
Graticule.
Markers and marker text.
Memory trace.
and user graphics
Selects whether the graticule is plotted.
Sets the phase offset.
Selects the phase display format.
Selects the pen speed for plotting. (Slow is useful for transparency
plotting.)
Initiates a plot.
Selects the plotter handshake mode as either Xon-Xoff or DTR-DSR.
Sets the plotter port to disk (either internal disk or external disk).
Sets the plotter port to HP-IB.
Sets the plotter port to parallel.
Sets the plotter port to serial.
Turns ON and OFT the plotter auto feed.
Sets the plotter baud rate.
Sends a form feed to the plotter.
Selects HP-GL compatible
Selects
as the plotter type.
as the plotter type.
HP-IB Programming and Command Reference
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.