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
HP 8719D/20D/22D Network
Analyzer
Bl?RtrtNo.
08720-90293 Supersedes October
PrintedinUSAFebruary 1999
F!!
HEWLETT
PACKARD
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
Hewlett-F’ackard
Company 1996, 1997, 1998, 1999
Page 4
Assistance
Productmaintenance
Hewlett-Rzchmrd
agre
products.
seruice om
!hble O-l. Hewlett-Packard
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
8719D/20D/22D,
example programs . The example programs that need modification are clearly identifled in
Chapter 2, “HP BASE Programming Examples.”
8719D/20D/22D
Network Analyzer. ln order
it will be necessary to modify certain
The following is included with the “Programming Examples HP
w
HP BASE example programs (compatible with Rocky Mountain Basic)
n
IJF
to
DC% ille-transformation
utility,
“LlFXMXEXE”
BASE
disk:
The following is included with the “Programming Examples QuickC and QuickBASW disk:
n
QuickC example programs
n
QuickBASlC
example programs
Programming Documentation
This Programmer’s Guide consists of the following two chapters:
n
HP-IB
network analyzer under
w IIP
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
programs
Programmingand Command Reference provides a reference for operation of the
HP-lB
BASIC Programming
control and provides a description of all
Faamples
provides documentation for the factory-tested HP
QuickBASE
modified
is preferred, these versions of the
while referring to Chapter 2, “HP BASE
HP-lB
mnemonica
BASK
Conventions
Front-Panel Ke
Screen Text
3
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.
ilrmware.
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
Frogramm
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
HP-IB Operation
Analyzer
Reading Analyzer Data
Pro@amming
.................................
Code Naming Convention
Valid
Characters
units
Command Formats
Device Types
HP-IB Bus Structure
HP-II3
HP-IB Operational Capabilities
Bus Device Modes
Setting HP-IB Addresses
Response to HP-IB
Operation Complete
Output Queue
Command Query
Identification
Output syntax
Marker data
The HP
2-2. Status Reporting Structure
2-3. Connections: Comparison of Two Mixers
24.LimitSegmentsVersusLimitLines
Single
Bus Concept
................................
8719D/20D/22D
............................
........................
...............
.........................
.........................
Network Analyzer System with Controller
.........................
-
Group Delay, Amplitude or Phase .
.....................
......
2-100
2-107
YIhbles
O-l. Hewlett-Packard
l-l. Preset Conditions (1 of 5)
l-2.
Code Naming Convention
l-3.
OPC-compatible Commands
14.
UnitsasaFunctionofDisplayFormat.
l-5.
HP
8719D/20D/22D
l-6. Status Bit Dell&ions
l-7.
Status Bit Defmitions (Continued)
l-8.
Relationship between Calibrations and Classes
l-9.
Error Coefficient Arrays
l-10.
Disk File Names
l-11. Key Select Codes
1-12.
HP-LB only
2-l.
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)
8719D/20D/22D
Pass/FaiI/NoLimit
MinMaxlbstConstants
Sales
and Service Offices
Network Analyzer Array-Data Formats
..............................
.............................
Commands
Network Analyzer Array-Data Formats
Table
for Figure 2-3
Status Constants
.........................
.........................
.........................
...........................
......................
..........................
...........................
........................
(min/max
..........................
(pass/fail
(min/max
(min/max
..................
...................
..........
................
...............
..........
...........
.....................
of all segments)
.....................
for
all
segments)
per segment)
for
ail
segments)
................
..........
..........
............
..........
...........
2-105
2-108
2-109
2-110
2-110
2-112
2-114
2-115
2-117
2-118
1-12
1-15
1-21
l-27
l-30
l-38
2-3
2-56
. . .
1:
l-8
1-19
l-22
l-24
1-31
l-32
l-35
l-36
l-37
14-9
l-62
2-l
2-l
2-37
246
Contents-5
Page 12
1
HP-IB Progr
amming
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
0
units
q
Command Formats
w
HP-IB Operation
q
Device Types
q
HP-IB Bus Structure
q
HP-H3
Requirements
q
HP-IB Operational Capabilities
q
Bus Device Modes
o
Setting HP-IB Addresses
q
Response to HP-IB
n
Analyzer Operation-Complete Commands
n
Reading Analyzer Data
0
Output Queue
q
Command Query
Met&Messages (IEEE-488
Output syntax
q
Marker Data
q
Array-Data Formats
q
Trace-Data Transfers
q
Stimulus-Related Values
n
Data Processing Chain
q
Data Arrays
q
Fast Data Transfer Commands
q
Data Levels
q
Learn String and Calibration Kit String
Universal Commands)
HP-M Programming and Command Reference
l-1
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
w
Disk File Names
n
Using Key Codes
n
Key Select Codes Arranged by Front-Panel
n
HP-II3
Only Commands
n
Alphabetical Mnemonic Listing
Hardkey
For information about manual operation of the analyzer, refer to the HP
Network Analyzer User’s
Gwid.e.
87190Z?O0Z!,W
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
IlZEEStundurd
Digital I-w
488.1-1987 contains detailed information on IEEE488 operation. Published by the Institute
of Electrical and Electronics Engineers, Inc, 345 East
New York 10017.
n
Chapter 2, “HP BASIC programming examples,” includes programming examples in
HP BASIC.
Hewlett-mhrd
for Programmable
Interlface Bus,
InstmLmentation ANSMEEEstd
47th
presents a description and
ail
technical details as a broad
Street, New York,
l-2
HP-16
Programming and Command Reference
Page 14
Preset State
When the
state. This state is defined in
When line power is cycled, or the
m
key is pressed, the analyzer reverts to a known state called the factory preset
‘Ihble
l-l.
IPreset
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
‘lhble
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
also
can configure an instrument state and
dellne
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.
press m
The
w
‘~~~~~~~~.
. . . . .
. . . .
..i
:-
.._..............._.......................
key is now toggled to the
.
..G.
.._.. <<F.:...
@$&..
selection and your defined instrument state will be
recalled each time you press w and when you turn power on. You can toggle back to the
factory preset instrument state by pressing
Note
When you send a preset over HP-IB, you will always get the factory preset.
Ipreset]
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
13
Page 15
lhble
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
stimnllls
S=ep Type
Step Sweep
Step Sweep (Opt.
Display Mode
TriggerType
ExternalTrigger
Sweep Time
Start Frequency
stop Frequency
(HP
871QD)
Stop Frequency
(HF’ 8720D)
Stop
Frequency
[HP
8722D)
StartTime
TimeSpan
CW Frequency1GHz
l&t
Port Power
(HP
871QD/ZOD)
Test Port Power
[HP
8719D/‘20D,
T&t Port Power
(HP
8719D/20D, Opt.
Test
Port Power
(HF’ 8722D)
l&t
Port Power
(HP
8722D,
Start Power
[HP
871QD/2OD)
(Opt.
085)
conditioM
085)
Opt. 007)
Opt. 007)
400)
Network Analyzer Mode
Off
OH2
Off
OdB
OdB
Linear Frequency
Off
on
t3t.EZt/stop
cOntinuouf4
Off
100 ms, Auto Mode
6oMHz
13.51 GHz
20.05
40.05 GHz
0
1OOmS
6dBm
10
dBm
OdBm
-10
-6 dBm
-15.0
GHz
dBm
dBm
Preset
Valne
Preset
Cm~ditions
Start Power
(HP
8719D/20D,
Start Power
(BP
871QD/20D,
Start Power
(HP
8722D)
Start Power
(HP
8722D,
start Power
(HF’ 8722D,
Power Span
(HP
8719DLZOD)
Power
Spau
(HP
8722D)
Coupled Power
Source Power
Coupled Channels
Coupled Port Power
Power Range
Power Range
@Pt.
400)
Number of Points
Fhqnency List
Frequency List
Edit Mode
Reaponae conditionB
Parameter
Conversion
Format
Display
Color Selections
DualChannel
Active Channel
Opt. 007)
Opt. 400)
Opt. 007)
Opt. 400)
Channel 3: 512;
Channel4: 522
off
Log Magnitude
(all
Same a8 before
Off
Channel 1
Preset
-10.0
dBm
-20.0
dBm
-20.0
dBm
-15.0
dBm
-25.0
dBm
20 dB
15
dB
On
On
On
On
Auto; Range 0
Auto; Range 1
201
Empty
St=WfiP,
Number of
channel
Channel 2:
Data
Points
1:
Sll;
s21;
parameters)
Value
LpTeset)
14
HP4B Programming and Command Reference
Page 16
‘Ihble
12-3. Preset Conditions (2 of 5)
Preset Conditions
kequency
Retrace Power Standard
!lkst
‘l&t
or 085)
Intensity
Beeper: Done
Beeper: Wamiug Off
D2/Dl
Title
IF Bandwidth
IF Averaging Factor
Smoothing Aperture
Phase offset
Electrical
Scale/Division
CfdlbllltiOll
Correction
Calibration Type
calibration
(HP
Calibration Kit
(HP
System ZO
Velocity
EXtA?IlSiOUS
ChopAandB
Power Meter Calibration
Blank Disabled
Set Switch Continuous
Set Switch (Opt. 007
to
D2
DeIay
Kit
8719D/‘20D)
8722D)
Factor
Port 1
Port 2
Input A
Input B
Numberof
Readin@
1
Pretzet
Hold
Factory
selected value is not
changed by
ou
Off
Channel 1 =
Channel 2 = Empty
3000 Hz
16; off
1%
SPAN; off
0 Degrees
OIlS
10 dB/Division
Off
None
3.5 mm
2.4 mm
50 ohms
1
Off
OS
OS
OS
OS
on
Off
Value
set to 100%; user
(jjj.
bp]
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
coupling
Marker Search
Marker
‘ILxrget
Value
Marker Width
Marker Tracking
Marker
Marker
Marker
Marker Statistics
PoIar
Marker
Smith Marker
Limit Lines
LimitLines
Limit
n?sting
LimitList
Edit Mode
stimuhls
Amplitude Offset
LimitType
Beep Fail
Value
Stimuli
Value O&t
Aux
Offset
Offset (Phase)
oKset
Preset
Off
A
on1
1
GHZ;
AII Markers Off
1
None
Continuous
on
Off
off
-3dB
-3dB;off
Off
OH2
DdB
D
Degrees
Off
LinMkr
R+jX Mkr
OK
OK
Empty
Upper/Lower
OH2
DdB
Soping Line
OK
Value
Limit9
1
InterpoIated
describes how to set the factory preset state of
Error Correction can be on or OK when the
anaIyzer
InterpoIated
is in the factory preset state. The User’s Guide
Error Correction.
HP-IB
Programming and Command Reference
l-5
Page 17
‘Ihble
12-3. Preset Conditions (3 of 5)
Preset
oondaioM
Preset Viahe
Time Domain
Transform
!lYramform
fart.
Type
Transform
stop Transform
Gating
Gate
Bhape
GateBtart
Gate Stop
Demodulation
window
Use Memory
ou
Bandpass
-1
nano6econd
4nanosecond13
OE
Normal
-600
picosecond8
600 picoseconds
OlT
Normal
on
ByLlJtelnParame~s
HP-IB
Addresses
HP-IB Mode
Clock Time Stamp
Preset:
F’actoryNser
LastActiveBtate
Lai3tActiveBtate
Last Active
state
on
LastGelectedSt&4Z
bPY amtion
Parallel PortLa8tActiveBtat.e
Plotbr Type
Plotter Port
Plotter Baud Rate
?lotter
HandshakeLmtActiveBtate
HP-IB
AddTess
?rinter’Ippe
?rinter
Port
?rint.er
Baud Rate
VnterHandshake
Writer HP-IB Address
LastActiveBtate
hstActiveBtate
LastActiveBtate
LaetActiveBtate
LastActiveBtate
LastActiveBtate
La8tActiveBtat.e
hstActive&ate
LastActiveBtate
PresetoonditioM
Disk Save
Conliguration
t-w 8tore)
Data Array
Raw Data Array
Formatted Data Array
Graphics
D-W
DirectorySize
Ewe Using
Select Disk
Disk Fbrmat
9eqpencing2
Loop
Counter
l-l-LOUT
service
HP-IB
3ource
Pux
Modea
D&no&c
Phase Lock
Input Resolution
k.nalogBusNode
Plot
?lot Data
‘lot Memory
‘lot Graticule
‘lot
l&t
‘lot
Marker
btofeed
‘lot
Quadnmt
kale
PW
‘lot.
Bpeed
Preset
hhe
OE
Off
Off
m
Off
Default1
Binary
tnternal
Memory
LIP
lm
iOOpOIl
hW
11 (Aux Input)
1 The directory size is calculated es 0.013% of the floppy disk
2
Pres&g
preset turns off sequencing modify (edit) mode and
size
(which is
stops
any running sequence.
~266)
or 0.006% of the hard disk size.
Page 18
Preset
Cmditiom
Pen Number:
ChllCh3 Data
ChllCh3 Memory
Chl/Ch3
ChllCh3 Graticule
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
Ilrst
three letters of the
first
four letters of the function they control, as in POWE, the
iirst
three mnemonic
first
word, and the fourth mnemonic letter is the
f&t
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
ilrst
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
l-2,
are used in order to:
considerations.
‘able
Convention
ne Word
1-2.
Key
!lWe
Power
Start
Code
Naming Convention
For HP-IB Code Use
First Four Letters
Example
POWE
b0
Words
Two Words in a Group
Three Words
Electrical Delay
Search Right
Marker
+Center
Gate--span
CalKitN50Q
Pen Num Data
Three Letters of First Word,
of Second Word
Four
I&~KXS
of
Both
First Three Letters of First Word,
of Second Word, First Four Letters of Third
Word
First
Letter ELED
First
Letter
MARKCENT
GATESPAN
CALKN50
PENNDATA
FhsZ
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.
l-8
HP-IB Programming and Command Reference
Page 20
Valid Characters
The analyzer accepts the following ASCII characters:
w
letters
w
numbers
n
decimal points
n
+I-
n
semicolons (;)
n
quotation marks
n
carriage returns (CR)
n
Iinefeeds (LF)
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.
units
(“)
The analyzer can input and output data in basic units such as Hz,
S
Seconds
v
Volts
Hz
DB
Input data is assumed to be in basic units (see above) unless one of the following
dB,
seconds,
Hertz
dBordBm
etc.
units
is used
(upper and lower case are equivalent):
MS Milliseconds
US Microseconds
NS Nanoseconds
PS
Picoseconds
KHZ Kilohertz
MHZ Megahertz
GHZ Gigahertz
FS
Femtoseconds
Command Formats
The
HP-II3
commands accepted by the analyzer can be grouped into five input-syntax types
The analyzer does not
distmguish
between upper- and lower-case letters
General Structure:
[unit]
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.)
[appendage1
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.
qualiher
attached to the root mnemonic Possible appendages are ON or
HP-IB Programming and Command Reference
l-9
Page 21
Idat4
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
decimals,
with power of ten
speciiied
GHz).
Character strings
by E (for
must be enclosed by double quotation marks
For example:
A title string using
OuTp’(JT 7~~;ll~~~llllll~~~~~llll
where the first two
RMI3
BASIC would look like:
IIll
are an escape so that RMB BASIC will interpret the
ll;ll
third II properly.
bm
The units of the operand, if applicable. If no units are specified, the analyxer
assumes
the basic units as described above. The data is entered into the
function when either units or a terminator are received.
[terminator]
The
specific
SYNTAX
TYPE
Indicates the end of the command, enters the data, and switches the
active-entry area OFF. A semicolon
YIMninators
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
(EOI)
messages as terminators
(;)
is the recommended terminator.
wiIl
attempt to recover
HP-R3
syntax types are:
1: [code] [terminator]
END
These are simple action commands that require no complementary information, such as
AUTO ; (autoscales the active channel).
There can be no characters or symbols between the code and the appendage.
Note
In the
[D] must be 2 characters For example,
CLEAREGl
SYNTAX
TYPE
3: [code] [data]
These are data-input commands such as STAR 1.0 GHZ
folIowing
cases:
CLEAREG[D],
; will generate a syntax error.
[unit][terminator]
RECAREG[D],
CLEAREGO ;
;
(set the start frequency to 1
will execute, while
SAVEREG[D],
SYNTAX TYPE 4: [code] [appendage] [data] [terminator]
These are titling and marker commands that have an appendage, such as TITRi
(title register 1
QUERY
SYNTAX:
‘lb
query a front-panel-equivalent
mnemonic (For example,
STATEl), TITR2 YEST2tB
[code][?]
ftmction,
POUE?, AVERO?,
(title register 2
TEST2).
append a question mark (?) to the root
or REAL?.) lb query commands with integer
appendages, place the question mark after the appendage.
l-10
HP-IB Programming and Command Reference
and EG[D],
GHx).
“STATEI”
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
IEC-625
worldwide standards for interfacing
parallel.
Every
HP-II3
device must be capable of performing one or more of the following interface
functions:
Tblker
A
talker
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
taIker
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
w
power supplies
n
signal generators
The network
analyzer
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
multiple-controller
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.
dehned
system, active control can be passed between controllers, but there can
system
as a device capable of:
controller connected to the interface. The system controller acts as the
external
disk drive in the pass-control mode. The analyzer is also a
l-1
HP-IB Programming and Command Reference
1
Page 23
HP-IB Bus Structure
Figure l-l.
EP-IB
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.
HandshakeLines
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
also
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.
l-12
HP-IB Programming
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
SRQ (Service Request)
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.
deline
whether
lines
carry device-dependent instructions or data.
line
is set true (low) when a device requests service
REN (Remote Enable)
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 m returns the device to
front-panel operation). When this line is set false (high), the
bus and all of the connected devices return to local operation.
EOI (End or Identify)
This line is used by a talker to indicate the last data byte in a
multiple-byte tr
ansmission,
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.
HP-IB Requirements
Number of Interconnected Devices:
Interconnection Path
Maximu
Cable Length:
Message Transfer Scheme:
15 maximum.
20 meters maximum or 2 meters per device
(whichever is less).
Byte serial, bit parallel asynchronous data
transfer using a
or by an active controller to initiate
3-line
handshake system.
Data Rate:
Address Capability:
Multiple-Controller Capability:
Maximum of 1 megabyte-per-second over the
spetied
distances with tri-state drivers Actual
data rate depends on the transfer rate of the
slowest device connected to the bus
Primary addresses: 31
maximu
of 1 talker and 14 listeners can be
talk,
31 listen. A
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 wm controller is allowed.
HP-IB Programming and Command Reference
l-13
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:
delined
by the IEEE 488.2 standard. The analyzer has the following
SHl
AH1
T6
L 4
SRl
RLl
PPO
DC1
DTl
Cl,C2,C3
Cl0
E2
LEO
TEO
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.
T&state
drivers
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
47th
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
w
pass-control mode
GRAPHICS PLOTTER
HP-16
PRINTER
HP-II3
system:
DISK DRIVE
HOST CONTROLLER
Figure
l-2.
NETWORK ANALYZER
Analyzer Single Bus Concept
HPJB Programming and Command Reference
l-15
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,
“lhIker/Listener
Mode.
n
‘Ih&erListener 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
allows
the computer to control the analyzer via
HP-LB
(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
Network
AnuZ~zm
User’s
Guide
provides information on setting the correct bus
HP 8719~A2OWZ?~
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
taIker/Iistener
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
OUTPPLOT;
or
OUTPPRIN
; 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
l-16
PLOT ;
HP-IB Programming and Command Reference
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
all
but the addressed
ATN,
and IFC lines
taIker.
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 m
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.
(IEEE-488
Universal Co
identilied
. . . . . . . . . . . . . . . .
In system-controller mode,
by an
HP-B3
m
-W
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.
Local
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.
local
command (GTL) is received, the remote line is
HP-IB Programming and Command Reference
l-17
Page 29
Local Lockout
If the analyzer receives the local-lockout command
(LLO)
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
unconhgure
(PPU)
messages.
If the analyzer is in pass-control mode, is addressed to talk, and receives the take-control
command
(TCT),
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
=I)
are disabled. Changing the analyzer’s HP-IB status from remote
ail
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
serial-polI
enable command (SPE). Upon receiving this command, the analyzer
‘RI
initiate the serial-poll sequence, address the analyzer to
dehned
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.
Trigger
In hold mode, the analyzer responds to device trigger by taking a single sweep. The analyzer
responds only to selected-device trigger
execute-trigger (GET) unless it is addressed to listen. The analyzer will not respond to GET if it
is not in hold mode.
(SDT).
This means that it will not respond to group
l-18
HP-IB Programming and Command Reference
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
single
sweep is
the OPC ; causes the analyzer to output a one (1) when the command execution is complete.
The analyzer
completed. For example, executing OPC?
causes the bus to
wiII halt
halt untiI
the computer by not transmitting the one (1)
; PRES
the instrument preset is complete and the analyzer outputs a one
(1).
As another example, consider the timing of sweep completion. Send the command string SWET
3
S; OPC? ; SING; to the analyzer. This string sets the analyzer sweep time to 3 seconds, and
then waits for completion of a
single
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
single
sweep. At this point a
valid
trace exists and the trace data could be read into the
1TheSecOmmands are not queriable, but the active channel may be found by OUTPCHAN.
2Theclassco
mmands
are OPC-comptible if there is only one standard in the class.
HP-IB Programming and Command Reference
l-19
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
find
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
dB,
and
receives
ilhnninates
POBE?
the analyzer front-panel talk light
POUE? ;
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
(I”).
In this case, the analyzer transmits the
POW3
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
X.xX
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
87NND,
llrmware
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
w
certain output commands
n
ASCII floating-point (FORM 4) array transfers
l-20
HP-IB Programming and Command Reference
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
g”
3 digits
l-3.
Sl
Figure
s3n
3 digits
Decimal
Point
15 digits Sign Exponent
E
FORM 4 (ASCII) Data-Transfer Character String
‘-’
for negative, blank for positive.
Digits to the left of the decimal point.
hg61a
Decimal point Standard decimal point.
15 digits
E
SW
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
OUTPDATP
or
OUTPDATR
commands. These commands allow a
specific
Special
Chapter 2.
Specihc
data
data points For more
Functions, n located in
‘Ib
read the trace data using the marker, the marker must
hrst
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,
automaticahy
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
w
The tracking is switched OFF.
OFF
HP-IB Programming and Command Reference
l-21
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
value
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
(value
l), zero (for value
all
the possibilities for values 1 and 2. The three possibilities for the marker
2),
and the marker frequency. See
I)able l-4
for a
stimulus value are:
n
frequency
n
time (as in time domain, Option 010 Only)
n
CWtime
n
power (in power sweep mode)
‘Ihble l-4.
DiepW
Format
LOGMAG
PHASE degrees
DJ%LAY
SMITH CBART
POLAR
JJN MAGS
SWRSWR
REAL real
IMAGINARY
The
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
LIN
MAG data expressed as: "Watts,” for single input measurements (A,B,R), and “Units,” for ratioed
neasurements (A/R, B/R).
s&u&ant
MarkerOUTPMAEK
LIN MKR
LOGMKRdB
R+S
G +
LIN MKR
ILIGMKR
in this format, though it is included in data transfers. See also OUTPFORF.
Units as a Function of Display Format
Mode
value 1
seconds
hmag
ReAm
realohms imfigohms
JiB
Siemens
hmag
Rdm
hmag
imag
auxilbry
value associated with the fIxed marker.
value
2 value 1 value 2
dB
real
real
dB degrees
real
t
t
t
degrees real
degrees real
imsg
imag
Siemens Siemens Siemens
degrees real
imag
t
t
t
t
OUTPFOEM
dB
degrees
seconds
real
real
real
real
real
h-l3
SWR
real
m
t
t
t
imag
inag
imag
imag
imsg
imag
imag
imag
t
t
t
t
real ohms
degrees
seconds
hmag
hmag
firnag
MAEKRE
lzBADouT*
valueaux
dB
degrees
dB
real
real
dB
real
SWR
real
imsg
degrees
imagohm~
den-
degrees
value
t
t
t
imag
imag
imag
t
t
t
t
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
well
as four different numeric formats The current format is set with the
FORM3,
FORM4,
and
FORM5
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.
FORMl, FORM2,
A transmitted array will be output in the current format, and the analyzer
wili
attempt to
read incoming arrays according to the current format. Each data point in an array is a pair of
numbers,
usuaIly
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:
FORM1
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
follow. FORM 1 is best applied when rapid
data transfers, not to be modified by the computer nor interpreted by the user,
are required.
IEEE
32-bit
FORM2
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
11-bit
biased exponent, and a
52-bit
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.
FORM4
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).
FORM5
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
analyzer
transmitted. Table
terminates each
l-5
32-bit
floating-point format with 4 bytes-per-number, 8 bytes-per-data
transmis
sion by asserting the EOI interface Iine with the last byte
offers a comparative overview of the five array-data formats.
HP-IB Programming and Command Reference
1-23
Page 35
able
1-5.
EIP
8719D/20D/22D Network Analyzer Array-Data Formats
Format type
FORM 1
FORM 2
FORM 3
FORM 4
FORM 5
No header is used in FORM 4.
Type of Data
Internal
IEEE
FloatingPoint
IEEE
FloatingPoint
ASCII
PC-DOS
FloExtingPoint
Binary
32-bit
64-bit
Numbers
32-bit
B-8 per
Data Value
3
4
8
(Ty$xd)
4
Bytes per point
2 data values
6
8
16
Gail)
8
(24.31
Bytes per trace
PW
1206
1608
3216
10,050
Crypical)
1608
Total Bytes
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
F’unctions,”
located in Chapter 2.
“Example
F’ile, n
7C:
Reading ASCII Disk Files to the Instrument Controller’s Disk
located in Chapter 2, explains how to access disk
Bles
from a computer.
l-24
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:
F=Start
frequency + (n-1) x
Span/(Points-1)
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
3B:
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
Information.
Note
n
Another method of identifying all of the frequency points in a sweep is to
3D,
“Data Transfer Using Frequency Array
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
stimuhis
value as part of
the marker data.
HP-IB
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
F’igure l-4
n
pre-raw measured data
n
raw measured data
n
error-corrected data
n
formatted data
n
trace memory
m
calibration coefficients
Trace memory can be directly output to a controller with
shows the different kinds of data available within the instrument:
OUTPMEMO
transmitted back.
;
, but it cannot be directly
l-26
HP-l6
Programming and Command Reference
Page 38
One channel shown.
+
OlJPPRE
I
L-
Legend
Accessible
Array
0
Raw
Data
o-
w
OurPFlAW
OUTPRAF
OCITPCALC
4
OUTPMEMO
OUTPDATA
OUTPDATF
+
OUTPFORM
OUTPFORF
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,
transmit data until all formatting functions have completed.
n
OUTPPRE transmits data in conjunction with
Programming Example
n
OUTPLIML,
occurred (if activated).
OUTPRAW<I>,
OUTFUMM,
OUTPFORM, OUTPDATF,
2E:
lhke4 - Error Correction Processed on an External PC.
and OUTPLIMF will not transmit data until the limit test has
OUTPRAF<I>
lhke4
mode and the SWPSTART command. See
HP-M
Programming and Command Reference
and OUTPFORF will not
l-27
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
OUTPMSTA
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
OUTPDA!lT
outputs the error corrected data from the active channel in the current output
format. This data may be input to the analyzer using the INPUDATA command.
n
OUTPFORF
output format, but only the first number in each of the OUTPF’ORM data pairs is actually
transferred
- ._..
- .._. -
"- -
_--
and
~Z#&&mary.
_~,.~ _ -
outputs the formatted display trace array from the active channel in the current
.-
- -
for me display form&
-..-.
. . . .._._..._.
. . . .
Because the data array does not contain the second value for these display
. . . .
-” _.... -”
~::~::~:~- .._ -
~~~~
_..........._ - -...f
.._.
.._.................
-
.._
.._...........
j@m
.._...... - ..- :.:..:..?
#oup
~~~~~
.._..__ - .._.. 9__,-
~~~~~
_ .-.........._.....
formats, the INPUFORM command may not be used to re-input the data back into the
analyxer.
The second value may not be
signiiicant
in some display formats (see ‘0ble
thus eliminating it reduces the number of bytes transferred.
-..._.....
__... - -.
r-1 ~~
9_..... - ._.._.,. 9
PORM4,
.._....__ -
v
l-4),
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
INPUFVRM
followed by the DATI command.
n
OUTPRAF’<I>
memory trace using the
outputs the raw measurement data trace The data may be input back into the
INPURAW<I>
command.
Data Levels
Different levels of data can be read out of the
in Figure 14.
the network
Pre-raw data
‘I’he
following list describes the different types of data that are available from
analyzer.
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 - Error Correction Processed
on an External Computer. The four arrays refer to
512
and S22 respectively. These four arrays are available only if
2-port correction or
in
real/ihnaginary
Raw data
The basic measurement data, reflecting the
parameters, IF averaging, and IF bandwidth. If a full 2-port
measurement calibration is activated, there are actually four
instrument.
‘I&e4
Refer to the data-processing chain
mode is on. This data is represented
pairs
OUTPPRE[1-4]
commands See
stimuhis
Sll,
S21,
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
OUTPRAW2,OUTPRAW3,OUTPRAW4.
Normally, only raw 1
OUTPRAWI,
is available, and it holds the current parameter. If a 2-port
measurement calibration is active, the four arrays refer to
Sll, Szl, SK!,
and
SZZ
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
gating.
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
‘Iable l-4
for the various units
dehned
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
specihc
Anulym
error term in the error model. The HP 87530
User’s
details
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
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
Learn
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
summary
of the instrument state. It includes all the front-panel settings,
ODTPLEAS ;
hrmware
HP-IB Programming and Command Reference
command, which commands
revision.
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
l-5.
Refer to lhble
description of each bit within the status reporting structure.
57
SRE
ESNB
CH.3
2048
0.4
1024 512 256 128 64 32
04.3
0.4
I
0.2
a.1
EVENT STATUS REGISTER B
CH.2Complete
16
l-6
for a
SRE
wa,t,ng
8 4 2
carp,ete
1
128
64 32 16
EVENT STATUS REGISTER
Figure
130
HP-IB Programming and Command Reference
8
l-5.
Status
4 2
I&porting
SE
E
1
Structure
cb67d
Page 42
‘Ifdbe
1-6. Status Bit
Detiitions
Status Byte
BitName
BP
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
Cperation
1 Request control
2 Query error
3
Bequence
4 Execution error
5 Syntaxerror
6 User request
7 Power on
Bit
0
single
or calibration step complete
1
Service
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
NLUIE
NallX?
Not applicable for the
Not applicable for the BP
One of the enabled bits in event status register B has been set.
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.
One of the enabled bits in the event-status register has been set.
An instrument preset has been executed.
Event-Statas
A command for which OPC has been enabled has completed operation.
Theanalyxerhasbeencomman
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.
EventA3tatus lCegist.er
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.
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
l),
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.
When using
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:
n
summarizes
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
the bit in the status byte. For example,
SRE24 ;
enables status-byte bits 3 and 4 (since 23 +
nn
SFLEnn ;
command enables the
represents the binary equivalent of
24
= 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
SREn.n.
The units variable
status byte.
ESEnn; and ESNBnn;
nn
represents the binary equivalent of the bit in the
, both of which work in the
132
HP-IB Programming and Command Reference
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.
HP-IB Programming and Command Reference
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
w
issuing GET (disabling the bits)
w
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.
50-characters
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
8719D/2OD/22D
Network
1. Start by selecting a calibration kit, such as 50 ohm type N.
2. Select a calibration type, such as
3.
C&l
ea& class Used by the calibration type, such as ~~~~~~~~~
a
2-port
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
(STANA
to STANG).
5. If, during a calibration, two standards are measured to satisfy one class, the class must be
closed with DONE ; .
6.
Declare the calibration done, =,,., as ee ~~~~~~~~~~~~ (SAVl; Over HP-B).
HP-II3
Aruzl~m
follows the same command sequence as a calibration from
User’s
Ouide,
(CALKN50; )
Sll
l-port
transmis
(CALISlll; ).
;.:< .,..
_;
.v;.;m;
i
(CLASS 11~ ;
../..../........
)
luring
sion,and isolation subsequences must be
The
STANA
to STANG commands will hold off the
HP-II3
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
cal
kits can have a different number of standards in a given
class, any automated calibration sequence is valid only for a specific
1-34HP-IB Programming and Command Reference
HP-B
cal
kit.
Page 46
‘Ihble
1-8. Relationship between
CUbrations
and Classes
~sponse
IsoIation
TRL
thnl?
TRL
reflect:*
TRL line
1 These subheadings must be
2 These subheadin@ must be called when doing TRL
or
mat&z*
caIIed
.
.
when doing
fuII 2-port calibrations.
0
0
l
2-port adibrations.
HP-IB Programming and Command Reference
l-35
Page 47
lhble l-9.
Error
Coefkient Arrays
r
A==Y
1
2
3
4
6
6
7
8
9
10
11
12
1 One path, 2-portcal duplicates arrays 1 to 6 in arrays 7 to 12.
2 Response and isolation corrects for
transmission measurements, aud for
reflection measurements.
Besponse
ER
or
ET
Responseand
ISOl8tiOD
Ex (ED)~
ET(ER)
cnmstak
dire&vi@
l-port
ED
ES
ER
and trawmission tracking in
%-port1
EDF
ESF
ERF
EXF
ELF
ETF
EDR
ESR
ERR
EXR
ELR
ETR
and reflection tracking in
!lwJLRM
EDF
ESF
ERF
EXF
ELF
ETF
EDR
ESR
ERR
EXR
ELR
ETR
Meaning of fhxt subscript:
D = directivity
S
=
source match
R = reflection tracking
X=crosstalk
or isolation
L-load match
T = transmission tracking
Meaning of second subscript:
F=forward
R = reverse
136
HP-IB Programming and Command Reference
Page 48
Disk File Names
Disk
IiIes
created by the analyzer consist of a state name of up to eight characters, such as
F’IDI’ER,
DOS format, the
the kind of information in the
distinguish
appended with up to two characters. In
GIename
is
FIIiI’ER.XX.
fiIe.
files
of the same type.
LIF
format, the
The first appended character is the
file
name is
FIITERXX.
EIe
type,
teUing
In
The second appended character is a data index, used to
Error corrected data, raw data, formatted data, memory traces, and calibration
FORM 3 data
decoded.
Ivies
‘Ihble l-10
(IEEE
64-bit
floating point format). The other files are not meant to be
lists the appended characters and their meanings
‘Ihble l-10.
-1
I, P Instrument state
Four-channel
W
Graphic8
G
Rrror
D
Raw data
R
Formatted data
F
MM
instrmnent state
corrected data
Disk File Names
Char2
1
Display graphia,
1
Channel 1
2
Channel 2
3
Channel 3
4
Channel 4
1 to 4
ChlICh3,
5t.o8
Ch2/Ch4,rawarrays6t~8
Channel 1
1
2
Channel 2
Channel 3
3
4
Channel 4
Meaning
raw arrays 1 to 4
files
are
Memory trace
M
Calkit
C
Cal data, channel 1
1
Cal data, channel 2
2
(HPGL
Full page
F
Left
L
R
S
(HPGL
Right
(HPGL
Error corrected data (S2P)
plot)
plot)
plot)
1
Channel 1
2
Channel 2
Channel 3
3
Channel 4
4
K
stimuhls state
0
lto9
CoefEcientsltoQ
Caeflicient
A
Cbef3icient
B
Coellicient
C
OtoC
Sameaschannell
P
Lower
L
u
Upper
Lower
L
U
UpPer
1
Channel 1
Channel 2
2
10
11
12
HPJB Programming and Command Reference
137
Page 49
Using Key Codes
Using key codes
to using other HP-IB commands This may be
allows
remote control of the analyzer keys and can be used as an alternative
usefuI,
but it is a
highly
recommended
programming practice to use the HP-IB command mnemonic appropriate for the function
desired.
R
CHANNELl
cbdld
Figure 1-6. Key Codes
When using key codes, the following notes must be taken into consideration:
Note 1:
Note 2:
An “invalid key” is reported with a 63.
OUTFXEY;
outputs the key code of the last key pressed. This command reports a
knobtumasa-1.
Note 3:
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
RPG
knob count. It can be either positive or negative. There are about
resulting
two byte
120 counts per turn.
l-38
HP-IB Programming and Command Reference
Page 50
Key Select Codes for the Network Analyzer
The HP-IB mnemonics in the following table are
functiomxlly
arranged by their front-panel key
equivalent. For example, all of the mnemonics that correspond to softkeys accessed by means
of the
Lear]
key, will be listed under the a key in the following table.
&YS
AVG
CAL-Error correction, calibration
CAL-Calibration kits
CAL-Power Meter Calibration
CHANNEL
COPY
DISPLAY
ENTRY
FORMAT
LOCAL
MEAS
MENU (stimulus)
MARKER
MARKER FCTN
SAVE/RECALL-Internal registers
SAVE/RECALL-Disk
files
SCALE REF
SEQ-Sequencing
STIMULUS
SYi!mlM
SYSTEM-Limit testing
SYSTEM-Transform
Column headings:
Function
Action
Mnemonic
S
?
0
Range
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.
Symbol conventions:
[I
D
I
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,
CLEA3, CLEA4, and
8
<>
|
A character string operand which must be enclosed by double quotes
A necessary appendage.
An either/or choice in appendages
500 units. For SWR: f 500 units. The scale is always positive, and has minimum values of
toe-12
magz f
500
dB.
For phase: f 500 degrees. For
degrees,
l-60
lOe-15
seconds, and 10
picounits.
HP-IB Programming and Command Reference
smith
chart and
PoIar: f
500 units. For Iinear magnitude:
.OOl
dB,
Page 72
‘liable l-10.
Key Select Codes (continued)
Function
Time Domain Transform
On/oK
Set freq
ModeLow pass impulse
L0wpass-P
Bsndpass
Specify gate menu
Window
Window shape
Demodulation
Maximum
Normal
Minimum
Any value
Use trace memory
3K
kmplitude
Action
Phase
InIoK
start
bP
k&.er
span
Mnemonic
SY
51
l93M-transform
TIMDTRAN<ONIOFF>
SETF
LOWPIMPU
LOWPSl-EP
BANDPASS
SPEG
1
WINDMAXI
WINDNORM
7
WINDMINI
1
WINDOW[D]
1
WINDUSEM<ONIOFF>
DEMOOFF
1
DEMOAMPL
1
DEMOPHAS
1
(
XI’EO<ONIOFF>
(
XI’ESIIAR[D]
(
L4TESIOP[D]
(
XTECENT[D]
(
Xl’ESPAN[D]
2
2
3
3
3
3
S?
1
1
1
1
1
1
1
1
3
1
1
1
0,l
0,l
0,l
D
l,o
0,l
0,l
0,l
I,0
D
D
D
D
0
OPC
Eange
tate
dependent
timul~ ranget
timulm
timul~ ranget
timlll~ ranget
ranget
1
I
3ate
shape
1
For frequency or power sweeps, refer to Chapter 12, “Preset State and Memory Allocation,” in the
YP 8719DBODk?ZD U..‘s
rtep.
For CW time sweep, transform on:
blaximum
Wide
VOIlUd
blinimum
Guide. For CW time: 0 to 24 hours. For frequency sweep, transform on: f l/frequency
H/time
(
:ATsMAxI
(
:ATSWIDE
(
XI’SNORM
(
:ATsDIINI
step.
1
3,l
1
$1
1
3,l
1
31
-I
HP-IB
Pronrammin6
and Command Reference
l-61
Page 73
HP-IB Only Commands
‘Ihble
1-12. HP-IB Only Commands
Action
Identify
instrument
Key
Key code
Move marker
On completion
Plot/print
softkeys
Copy default
MnemonicSyntaxJ 1
IDN?
KEY [D]
KOR?
MARKBUCK[D]
OPC
P!SOFI’<ONIOFF>
D-10
MISCELLANEOUS
1
1
DImitates pressing a key. The data transmitted is the
1
DMoves the marker to the selected point on the trace.
2
1
2
1
Description
Outputs the
PACKARD, 87NND,O,XXX”, where
model number of the instrument and
fIrmware
code,asdefinedinFigure1-6.
outputs
positive, it is a key code. If it is negative, then set bit
16
equal to
the RPG knob count. It can be either positive or
negative. There are about 120 counts per turn.
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.
identification
revision of the instrument.
last key code or knob count. If the reply is
bit 14, and the resulting two byte integer is
softkey
string: “HEWLETT
87NND
is the
X.xX
is the
RangeforD=lto61.
Iast OPC-compatible
menu keys when printing or
command
ke]
Revision
Leamstrhlg
SOFR
-PI
1
2
Displays the software revision on the
D
Selecta
the learn
from the analyzel The valid parameters are:
0: Defaults to current revision.
201: Revision
612: Revision
string
8720A
872OA
revision to input to and output
2.01
6.12
analyzer.
l-62
HP-IB Programming and Command Reference
Page 74
‘able l-11. EIP-IB
Only Co
mmands
(continued)
Action
Mnemonic
F
iweep
start
hllect raw dataIKKE4<0N(OFF>
lelftest
No operation
Select
l-port cal
External
trigger
SwPm
Tsr?
NOOP
CAL1
EX’ITHIGH
EXlTLOW
MISCI
syntax
LANE
JS (continued)
1
2
?
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
SWPSIYART
analyzer is in continuous, number of
external trigger mode.
Causesaselftest. Returnsazeroifthetestpasses.
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
Description
I-FIB
‘I&e4
mode only.
commandis received or when the
OPC-compatible.
grouIq
or
1
I
bit
kror-corrected
ht.43
‘ormatted Data
law DataINPURAWl[D]
kror
coefIicient
‘ower
meter
Yalkit
WAIT
INPUDKlA[D]
INPUFORM[D]
INPURAW2[D]
INPURAW3[D]
INPURAW4[D]
SAVC
INPUPMCAL<I>
Cal.
INPUCALK[D]
12>
Makes the analyzer wait for a clean sweep when used
with the OPC command.
T
INl
-
T
[nputa
3
D
3
D
3
D
D
3
3
D
3
D
2
1
3
D
3
errorsorrected data.
Lnputs
formatted data.
hlputa
raw data.
kputs
an individual error coefficient array. Issue the
command
caIibration
individual
Fhudly,
l’his
the error coefllcienta transfer to the instrument.
inputs
ss
100 times the power meter reading in
[nputa
“CALIXXSS; “(XxXx
type), then input each of the appropriate
error
c0efEcient-s
issue
“SAVC;
OPC compatible command denotes completion of
power meter cal array.
a
Cal
kit.
” and trigger a sweep.
specifies the data
using “INPUCALC”.
Values should
be entered
dEL
Ram string
kputs
D
3
-
the learn string. Preceded by SELL if learn
string is not current revision.
HP-IB Programming and Command Reference
l-63
Page 75
‘lhble l-11. HP-IB
Only Co
mmands
(continued)
Action
Wive
function
Pctive
channel OUTPCHAN
*tions
Serial number
dentify OUTPIDEN
nstrument
Zrror coefecient
Interp. cal.
hlkit
lata
OUTPACTI
OUTPOPTS
OUTPSERN
OUTPCALC<O1,02
0uTP1cAL<1>
0uTPcALK
OUTPDATA
OUTPDATF
Mnemonic
. . .
syntax ? Description
12>
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
‘Ihble
Outputa
Outputs the active
inFORM1.
Outputs the error corrected data from the active
channel in
Fastdatatransferco
string
of the options
coeficient
l-9, for the contents of the arrays.
the selected interpolated
Cal
kit, a less than 1000 byte string
reavimaginary
pairs. See Figure l-4.
mmand for OUTPDATA.
instaIled.
array from the
Cal
coel&ient array.
Error
formatted
Power meter
?ower
meter cal. OUTPPMCAL<I>
Icy
code
OUTPERRO
OUTPFORM
OUTPFORF
Cal.
OUTPIPMCAL<I>
OUTPKEY
1
1
1
2
2
1
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
first
number of the OUTPFORM data pairs is
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.
followed
%ble
by the error message in ASCII
dispIay
units. See
command for OUTPFORM. Only the
l-4.
Cal
array for channel 1 or
dB.
Iast
key pressed, in ASCII
l-6
for key codes. -1 is
‘Ihble
Cal
array for
l-4 for data
transm&ec
1-64HP-IB Programming and Command Reference
Page 76
‘able l-11.
HP-IB Only Co
mmands (continued)
Action
Learn
string
External source
smoothing
Sequencing
Limit
faihlres
Limitlist
Limit marker
Mnemonic
OUTPLEAS
OUTPRFFR
OUTPAPER
OUTPSEQ<I>
OUTPLIMF
OUTPLIML
OLITPLIMM
syntax
OUTPUT (continued)
1
1
1
1
2
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
stimuhs
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).
Outputs the limit test results as described for
OUTPLIML for the active marker.
Description
external
value tested, the second is the test
source RF frequency when in external
stimulus
points that failed.
stimulus
flmt
point.
is the
result:-1
Marker
Memory
Marker statistics
Bandwidth
Bandwidth+ loss
Plot
OUTPMARK
OUTPMEMO
OUTPMEMF
OUTPm
OUTPMWID
OUTPMWIL
OUTPPLOT
1
1
Outputs the active marker values in 3 numbers. The
fmt
two numbers are the marker values, and the last
the stimulus value. See
Outputs the memory trace from the active channel. It
iserrorcorrecteddatainreaUW@narypaim,andcan
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 to an
printeL
HPGL
‘Ihble l-4
plot string in ASCII format to the
for the marker values
OUTPDA!I!A.
d
for OUTPMEMO.
HP-GL
plotter or
is
HP-IB Pro6ramming and Command Reference
l-65
Page 77
‘Ihble l-11.
HP-IB Only
Co
mmands (continued)
ACtiOll
Prim
Pre-raw data
iaw
data
Mnemonic
OUTPPRIN
OUTPPRNALL
OUTPPREl
OUTPPRE2
OUTPPRES
OUTPPREQ
OUTPRAWl
oUTPRAw2
oUTPRAw3
oUTPRAw4
OUTPRAP<I>
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
We4
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
S22,
respectively. The data is in
Array 2
Array 3 (512 data).
Array 4
Fast data transfer
Description
alI pages
(Sll
(521
(522
Sll
(521
(s22
List Values or current page of
data). Analogous to OUTPRAW except
only.
data).
data).
data).Outputs
2-port calibration
and the following arrays hold
data).
data).
uncorrected data arrays for
is on, in which case raw
reaI/mmgmary
co
mmand for
OUTPRAW<I>.
S21, 512,
pairs.
and
Ratus
byte
XspIay
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
line
and Data Point Special
Refer to the “Lhnit Line and Data Point Special Functions” section in Chapter 2.
OU!CPSTCA!l!
sm?
OUTP!CITL
OUTPAMAX*
OUTPSEGAM*
values
OUTPSEGM*
value
Punctions.”
1
1
1
1
1
1
Outputs the status byte. ASCII format (FORM 4).
Outputa
Outputs max values for all limit line segments.
Outputs min values for
Outputs Iimit test
segment
stimuIq
Outputs Iimit test
SELSEG[D].t
the
display
title. ASCII format
min/max aII
numbel;
max stimuhq max value, min
min value for
min/max
(FORM
aII
limit Iine segments.
se@. Outputs the
aII
active segmentat
for a
specitled
4).
segment.
Set
1-66HP-IBProgrammin6 and Command Reference
Page 78
able l-11.
HP-IB Only Co
mmands (continued)
ACtiOJl
Data: point
Data: range
Limit test: chl
Limit test:
Limit
Limit test: ch4
Limit test status
Limit test status
Fail
%ck
test:
report
ch2
ch3
Mnemonic
OUTPDATP
OUTPDATR
OUTPLIMl*
OUTPLIIE?’
OUTPLIMS’
OUTPLIM4*
ouTPsEGAF*
OUTPEEGF*
OUTPFAIP’
READDATE
syntax
OUTPUT
1
1
1
1
1
1
1
1
1
1
7
(continued)
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
status~for
Outputs
See
ThiSW
reports the number of
stimuhm
test.
Outputs the date of the clock in the following format:
DDMMMYYYY
Description
SELMA2D’T[D])
stat&
of limit test for channel 1.
stat&
of limit test for
status§
of limit test for channel 3.
status§
of limit test for channel 4.
all active segmentat
the
Emit
test
statm-8
SRLSRG[D].t
mmand is similar to OUTPLIMF except that it
and trace values for each failed point in the
failures Rrst,
charmel
for a
specitled
followed by the
2.
segment.
Xock
Killhax
ecordmg
Segment
Aast
point
%st point
specify point
’
Refer to the “Limit Line and Data Point 3pecial Functions” section in Chapter 2.
Values
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
dne and Data Point Special Functions.
READTIME
LIbiITLINRANDDA!C4POINTTR6I’
MINMAX<ONIOFF>*
SELSEG[D]*
1
21,0
3
3
3
3
(FAIL),
n
Outputs the
HH:MM:ss
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
wiII
report. D can range from 0 to the number of points
minus 1.
-1 (NO-LIMIT)
time
of the clock in the following format:
min/max
values
are recorded per limit segment.
number
mmauds
1s.t
OUTPDA!TRwmmandwillreport. Dcanrangc
fhst.
point number in the range of
recording per segment. Min
for the OUTPSEGF and
to report on. D can range from
mmandwfllreport.
Darnrange
points
HP-IB Programming and Command Reference
l-67
Page 79
‘able l-11.
HP-IB Only Co
mmands
(continued)
ACtlOll
FORM1
FORM2
FORM3
FORM4
FORM6
Press
Label
ClearCLES
hterrogate
Enable
~Fwl
wRsK<I>[$l
CL8
ESB?
ESR?
0UTPm
E~PI
ESNB[D]
=Wl
Mnemonicsyntax ?
OUTPUT
STATUS REPORTING
FOBMATS
1
1
1
1
1
SOFTKEYS
2
4
1
1
1
1
1
1
1
Description
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).
Activates
Writes label (10 char) to indicated softkey I, where I = 1
to& Initialusaofthisw
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.
softkey
I, I= 1 to 8.
MENUPORM;
eventgtatus
(O<D<265)
mmand requires previous
and MENUOFF;.
register.
AveragingMENUAVG
calibration
copr
DisplsV
FoTmat
Marker
Meas
Marker function
3ff
Save RecalI
Save RecaII
Scale
3timul~
Qstem
bquencing
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.
COAXial.
WAVEguide.
TIYITPERI.
A=Pl
AIt
ASEG
ASSS
-PI
-PI
AUXC<ONIOFF>
AUTO
AVEBFACILTDI
A-VERO<ON~OlV>
A-ST
~01
BANDPASS
These 3 commands control the warning beeper, causing it to sound if the indicated condition
occurs:
Measures and displays the data at the auxihary input (ANALOG IN).
Measures and displays A/R on the active channel.
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
bandpass
mode.
BEEPDONE<ONIOFF>
BEEPFAIkONIOFF>
The completion of functions such as save, done with calibration
standard, and data trace saved.
A
limit
test
failme.
HP-IB Programming and Command Reference
l-69
Page 81
BEEPWARN<ONIOFF>
The generation of a warning message.
BLAD<ONJOFF>
BR
These commands set the open capacitance values of an open circuit while it is being defined as
a calibration standard.
Blanks the display.
Measures and displays B/R on the active channel.
01
CW
01
~Pl
CAL1
These commands set the power meter calibration factor corrections for the particular sensor
used. Sensor B is only
CALFCALF[D]
C-QPI
CALFSENA
CALFSENB
Accepted for compatibility with the HP 8510, where its function is
to begin a calibration sequence.
valid for the HP
Sets the calibration factor.
Selects the frequency for the calibration factor correction.
Edits the sensor A calibration factor table.
Edits the sensor B calibration factor table.
438A
which has two input channels:
These commands begin a calibration sequence:
CALIFUL2
CALIONEB
CALIRAI
CALlRESP
cALIs
cALIs
CALITRL2
These commands select a default calibration kit:
cALK24MM
cALK292Bm
cALK292s
cALK35BfD
CALK35MC
Note
CALK35MM selects the HP
the HP 85052 series
Short, load, open, thru
One-path
Response and isolation.
Response.
Sll
l-port.
s22 l-port.
Thru,
2.4~mm (HP
2.92~mm.
2.92’ (HP
3.5~mm (HP
3.5~mm (HP
2-port.
reflect, line or Line, reflect, match
85056A/D Cal
85056K cal
85052B/D,
85033C Cal
Cal
kits for the HP
(SLOT) 2-port.
kit).
kit).
HP
kit).
85033C cal
85033D cal
kit for the HP
8719D/20D/22D.
(TRL*/LRM*) 2-port.
kit).
8752C/53D,
and selects
CALK7MM
cALKN50
cALKN75
l-70
HP-IB Programming and Command Reference
7-mm (HP
Type-N 50
Type-N 75
85031B Cal
ohm (HP 85032B/E
ohm (HP 85036B/E
kit and HP 85050 series).
Cal
Cal
kit).
kit).
Page 82
CALKTRLK
TRL
3.5~mm
(HP
85052C
cal kit).
CALKUSED
CALN
CALPOW
CAISPORTI
CALsPORT
CALZLINE
CALZSYST[D]
CHANl
CHAN2
CHANS
CHAN4
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
TRL/LRM
Establishes the system Z0 (see
for a
TRIJLRM
calibration.
calibration.
SEl’Z)
as the characteristic impedance
Adjusts the color brightness of the selected display feature. (See
COLOXXXX commands)
Sets the center stimulus value. If a
list
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.
CHOPAB
Places the analyzer in the chop measurement mode. See also
Al.IrAB.
CLAD
Class done, modify cal
kit,
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
Copies labels from file titles.
Copies labels from register titles.
Turns interpolative error correction ON and OFT.
Turns error correction ON and
OFT.
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
This
is known as a fast 2-port
2-port
cal
calibrated
measurement.
-QPl
DlDlVDZ<ONIOFF>
D2XUPCE2
D2XUPCH3
D4XUPCX2
D4XUPCH3
DATI
DCONV
DEBU<ONIOFF>
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 4X 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
HP-LB
commands across the display.
HP-IB Programming and Command Reference
l-73
Page 85
DECRLOOC
Decrements the sequencing loop counter by 1.
DEFC
DEFLPIUNT
DEIWIXPIO
Sets the default colors for all display features
Sets the printer to the following default setup conditions:
Print
Auto-feed
Monochrome
on
Print Colors:
Chl/Ch3
Chl/Ch3 Memory
Ch2/Ch4
Ch2/Ch4
Graticule
Warning
Text
Data
Data
Memory
Magenta
Green
Blue
Red
cyan
Black
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:
HP-B?
Address: 1
cal
kit modification. D is the
standard number.
DEL4
DEL0
Displays the data formatted as group delay.
Turns the delta marker mode
OFT’.
These 6 commands make the indicated marker the delta reference:
DELItl
DELR2
DF4LR3
DELR4
DELIS5
DELWIXBi
Marker 1.
Marker 2.
Marker 3.
Marker 4.
Marker 5.
F’ixed
marker.
Xon-Xoff
DEMOAWL
l-74
HP-IB
Proprammiq
and Command Reference
Turns on transform demodulation and sets the transform
demodulation to amplitude demodulation. Only has a meaningful
effect with a CW time transform.
Page 86
DEMOOFF
Turns the transform demodulation function OFF.
DEMOPHAS
DJTIX
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
2
Memory 5
Graticule 1
Text.
7
Marker 7
Line Type:
Data
7
Memory 7
Sets the number of
files
in the directory at disk initialization.
LIP
only.
Specifies which disk in an external multiple-disk drive to be used for
save/recall.
Specilles
which volume of an external multiple-volume disk drive to
be used for save/recall.
DISM<ONIOFF>
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:
DISPDATA
DISPDATBi
DISPDDM
DISPDMM
DISPMEMO
DM
DONE
Data only.
Data and memory.
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
DUAG<ONIOFF>
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).
Dual
channel display ON or OFF
DUPmEQ[X]SEQPI]
Duplicates sequence X to sequence Y. X,Y = 1 to 6.
HP-IB
Programming and Command Reference
l-75
Page 87
EDITDONE
Done editing list frequency or limit table.
EDITLlML
Begins editing limit table.
EDITLISTBegins editing list frequency table.
ELED[D]
EBIIB
ENTO
ESB?
ESE[D]
Sets the electrical delay offset.
Send out a beep during a sequence.
Tums the active entry area
OFF.
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.
EXTDSelects the external disk as the active storage device.
These commands include the indicated information when a register is stored on disk. See
F’igure
l-4 for data types:
EXTMDATl<ONIOFF>
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
imaary
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
defining
a standard during a cal kit
modification.
These 5 commands set the data format for array transfers in and out of the instrument:
HP
FOE&i1
FOIM.2
FOEBl3
l-76
HP-IB
8719D/20D/22D
32 bit floating point format. Preceded by 4 byte header.
64 bit floating point format. Preceded by 4 byte header.
Programming and Command Reference
internal format. Preceded by 4 byte header.
Page 88
FORM4
ASCII format. No header.
FORM5
32 bit floating point PC format. Bytes reversed. Preceded by 4 byte
header.
These commands define the format to use on disk initializations:
FORMATDOS
FOEMATLIF
FREQOFFS<ONJOFF>
FEE0
FREB
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
2-port calibration sequence.
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:
GAT-ECENT[Dl
GATEO<ONIOlW>
GATESPAN[D]
GAl”ESTAB[D]
GkI’ESTOP[D]
Center time.
Gate ON/OFF, OPC-compatible.
Span time.
Start time.
Stop time.
These 4 commands set the gate shape:
GATSMAXI
GATSMIN-I
GATSNORM
GATSWTDE
GOSUB<I>
HOLD
IDN?
MUimlmL
Minimum.
Normal.
Wide.
Invokes a sequence as a subroutine. I =
Puts the sweep trigger into hold.
Outputs the
where
the
firmware
identihcation
87NND
is the model number of the instrument and
revision of the instrument.
1
to 6.
string: HEWLETT PACKARD,
87NND,
0, X . XX,
XXX
is
These 7 commands branch an executing sequence to a new sequence if the following condition
is satisfied.
IFBIHIGH
Tests the
specified
input GPIO bit (see
PARAIN
CD]).
If high, invokes
the sequence which follows
HP-IB Programming and Command Reference
l-77
Page 89
IFBILOW
Tests the specified input GPIO bit (see
the sequence which follows.
PARAIN ED]).
If low,
invokes
-IDI
IF’LCEQZESEQ<I>
IF’LCNEZESEQ<I>
IFIXT!EQ<I>
lFIXI!ASSSEQ<I>
IMAG
INcRLooc
These commands input an 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
uncorrected data. Complete the process by triggering a sweep. See
of the different arrays.
INPUCALCOl[D]
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
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.
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
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
FORM
command.
Inputs a learn string read out by
ODTCALK ;
Cal
OUTPLEAS
. After the transfer, the
kit area with SAVEUSEK; .
; .
l-78
HP-IB Programming and Command Reference
Page 90
These commands input power meter calibration arrays into the instrument. Values should be
entered as
100
x power meter reading in
dB.
INPUPMCALl
INPUPMCALZ
These commands input a raw data array using the current format. See
Channel 1.
Channel 2.
OUTPRAW<I>
for the
meaning of the arrays The instrument stops sweeping, error corrects the data, then formats
and displays the data.
INPURAWl[D]
lNPuRAw2p]
INPURAWS[D]
INPURAWC[D]
These commands select the instrument mode. They are
INSMNETA
INsMruNR
Array 1.
Array 2.
Array 3.
Array 4.
alI
OPC-compatible.:
Standard network analyzer. OPC-compatible.
Tuned receiver. OPC-compatible.
Selects the internal disk as the active storage device.
=Pl
Sets the display intensity, 50 to 100 percent.
Selects the internal memory for save/recall.
ISOD
Done with isolation subsequence in a 2-port calibration.
OPC-compatible.
ISOL
ISOOP
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
l-6
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
OFF.
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
I;
or added using SADD
;
. The segment is
EDITLIML;,
closed with SDON; , the table is closed with EDITDONE;
-PI
VI
-PI
-I?1
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.
LIBlTSL
LIMTSP
-PI
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.
l-80
HP-IB Programming and Command Reference
Page 92
LISV
Activates the list values function. The next page of values can be
called with NEXP ; and the previous page can be called with
PREP
; .
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
TlTF’n
command. Requires pass control mode.
LOAD1
llle
from disk with the name indicated by the previous
llle
loaded depends on the file title in the
Loads the
file
from disk using the
file
file
name provided by the
preceding TITF 1; command.
LOAD2Loads the file from disk using the
preceding
LOAD3Loads the
preceding
LOAD4Loads the
preceding
LOAD5Loads the
preceding
These 6 commands load the
command. The actual
TlTSEQn
LOADSEQl
LOADSEQZ
LOADSEQS
command. Requires pass control mode.
llle
from disk with the name indicated by the previous
file
loaded depends on the
Loads sequence 1 from disk.
Loads sequence 2 from disk.
Loads sequence 3 from disk.
TITF2 ;
hle
TITF3
llle
TITF4;
llle
TITF5
command.
from disk using the
; command.
from disk using the
command.
from disk using the file name provided by the
; command.
file
title in the
llle
name provided by the
llle
name provided by the
lile
name provided by the
llle
TlTl?n
position specified by the
TlTSEQn
position specified in the
LOADSEQ4
LOADSEQ5
LOADSEQ6
LOAN
LOAO
w=QF’l
LOGFREQ
LOGM
MOPI
LOWPIB!IPU
LOWPSTEP
LEN?
-PI
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
dellned
Measures the load as being offset when a standard has been
as an offset load (see OFLS).
dellned
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.
Sets the value of the sequencing loop counter.
Turns ON the low pass impulse transform.
Turns ON the low pass step transform.
Same as
OUTPLEAS
(output learn string).
Same as INPULEAS (input learn string).
HPJB Programming and Command Reference
l-81
Page 93
MAIUTlUG
Sets the external trigger to manual trigger on point.
OPC-compatible.
These commands make the indicated marker active and set its stimulus value:
MARKl[D]
BfA=Pl
BtARKS[D]
M-A=Wl
MAEK5[D]
BtAEKBucKp]
BfAEKcENT
MAmcoNT
lbiAEKcouP
IbiARKcw
BiAEKDELA
MAaMlIsC
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
MARKuNco.
Sets the CW frequency to the active marker’s frequency.
Sets
electrical length so group delay is zero at the active marker’s
StiXUlllUS.
Places the markers on the discrete measurement points
-AWDl
-TV4
-WI
lMAMMIDD
MARKOFF
-PAN
-TAB
BIARKSTIM
MARKSTOP
MARKUNCO
Sets the auxiliary value of the hxed marker position. Works in
coordination with MARKFVALandMARKFSTI.
Sets the
stirnuhrs
position of the hxed marker.
Sets the value of the fixed marker position.
Same as
SEAMAX
(search for maximum on current channel’s trace).
During a limit segment edit, makes the marker amplitude the limit
segment middle value.
Sane as
SEAMIN
(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
stimuhrs
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
stimuhrs
to that of the active marker’s
Uncouples the markers between channels, as opposed to
MARKcolJF!
-0
Places the hxed marker at the active marker position and makes it
the delta reference.
l-82
HP-IB Programming and Command Reference
Page 94
Page 95
~Pl
Sets the number of power meter readings per point used during a power
meter calibration.
OFLD
OFIS
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
delined
OFSD[D]
OFSL[D]
OFSZ[D]
OBIII
OPC
during a
cal
kit modification:
Delay offset.
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
PREP ;
.
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 ; respectively. The entire list can be printed, in
mode, with
of an
PRINTALL ;
HP-lEl
peripheral, the system controller must have pass control
. Since these commands need to take control
ASCII
text
capability.
ORJENT<VEItT~HOB>
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
OUTI?ACI’I
Outputs the value of the active function, or the last active function
if the active entry area is OFF.
OUTPABfAX
OUTPAMIN
OUTPAPEE
Outputs the max values for all limit line segments
Outputs the
ruin
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
‘lhble l-9,
for the contents of each array. Each array is output in the currently
F’ORMn
command. The data is in real/imaginary pairs, the same
number of pairs as points in the sweep.
ouTPcm1
OUTPCALCO2
ouTPcALco3
ouTPcALCo4
ouTPcALco5
ouTPcALc66
Array 1.
Array 2.
Array 3.
Array 4.
Array 5.
Array 6.
ouTPcALco7
l-84
HPqB Programming and Command Reference
Array 7.
Page 96
OUTPCALCOS
Array 8.
OUTPCALCQ9
OUTPCALClO
0uTPcALc11
OUTPCALC12
OUTPCALK
OUTPCHAN
OUTPDATA
OUTPDATF
OUTPDATP
OUTPDATIt
Array 9.
Array 10.
Array 11.
Array 12.
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:
H
1 = channel 1
n
2=channel2
w3=channel3
=
channel 4
84
Outputs the error corrected data from the active channel. See
Figure
l-4
and
FORMn
command.
Fast data transfer command for OUTPDATA. =
Outputs the trace data indexed by point (see
Outputs the trace data for range of points (see
SELPT[D]).
SELMINPT[D],
SELMAXPT[D]).
ouTFEI?Ro
OUTPFAJP
OUTPFORM
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
failures first,
OUTPLIMF
followed by the
except that it reports the
stimuhrs
and trace values
for each failed point in the test.
Outputs the formatted display data array from the active channel.
See
‘Ihble l-4
format. See also
for the contents of the array as a function of display
FORMn
command.
Fast data transfer command for OUTPFORM.
HP-IB Programming and Command Reference
l-85
Page 97
These 12 commands output an interpolated error coeihcient array for the active calibration on
the active channel. See
Outputs the identification string for the analyzer: HEWLETT
PACKARD,
instrument and
87NKD,
0 ,X . XX where
X.xX
is the
87NND
hrmware
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.
0uTPrPlKcL1
OUTPIPMCL2
OUTFKEY
OUTPLEAS
OuTPLtMl
OUTPLIM2
ouTPLlM3
ouTPLIM4
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
F’igure l-6
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
iimit
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.
l-85
HP-IB Programming and Command Reference
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
value
for the point. Second is an integer indicating test status. Third is the upper Iimit
limits
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.
OUTPLIMP
OUTPLIML
OUTFLIMM
OUTPMARIC
OUTPMEMO
OUTPB4EMF
OUTPMSTA
OUTPMWID
OUTPBfWIL
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
Rrst
two numbers are the marker
stimuIus
value. See
Table l-4
for
the meaning of the response values as a function of display format.
Outputs the memory trace from the active channel. The data is in
reaHmaginary
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
MEASTAT<ONIOFF>.
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
value
as
well.
ouTPoPTs
OUTPPLOT
Outputs an ASCII string of the options
Outputs the plot string. Can
be
directed to a plotter, or read into the
installed.
computer.
These commands output the power meter calibration array. Values should be entered as 100
times the power meter reading in
sweep,
OUTPPMCALl
OUTPPMCAL2
TAKCS,
has not been taken:
Channel 1.
Channel 2.
dB.
A default array is used if a power meter calibration
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
OuTPPREl
OuTPPRE2
OuTPPItE3
OuTPPEE4
Array 1
Array 2
Array 3
Array 4
Sll, S21, S12,
(Sll
data).
(S21
data).
(S12
data).
(S22
data).
2E: Take4 -
and
Error Correction Processed on an
S22,
respectively:
wiII
be fully error
HP-IB Programming and Command Reference
l-87
Page 99
OUTPPIUN
Outputs a raster dump of the display, intended for a graphics
printer.
OUTPPRNALL
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 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
plotter as the plotter type.
printer
as the plotter type.
HP-IB Programming and Command Reference
l-88
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.