Agilent 8753E Programming Manual

Notice

Hewlett-Packard to Agilent Technologies Transition
This documentation supports a product that previously shipped under the Hewlett­Packard 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 USA March 2000
Notice.
The information contained in this document is subject to change without notice.
Hewlett-Packard makes no warranty of any kind with regard to this material, including but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnish@, performance, or use of this material.
@
Copyright Hewlett-Packard Company 1098,1900
How to Use This Guide
This guide uses the following conventions:
3
CFront-Panel
Ke
This represents a key physically located on the instrument.
This represents a “softkey,” a key whose label is determined by the instrument’s lirmware
Screen
Text
This represents text displayed on the instrument’s screen.
HP 8763E/Option 011 Network Analyzer Documentation Map
The
InmtaIIetion familiarizs you with the HP 876SEK3ption
front and rear environmental operating requirementq
well
as procedures for hwMling, conUgwlng,
and verifying the operation of the analyzer.
The
U8erb meatmrements, explains commonly-used
features, and performance from your analyzer.
and
Qnlck
Start Guide
011 network analyzer’s
paneln,
electrical and
Guide shows how to make
tella
you how to get the most
88
0
I!3
The Quick summary of selected
The HP-IB Progreaming and
Boference
information for operation of the network analyzer under
The HP BASIC Guide provide8 a tutorial introduction using J3ASIC
demonstrate the remote operation of the network analyzer.
‘Ike
provides the system verification and performance Record for your HP network analyzer.
Eoference
Gnlde provides programming
programming example8 to
System Verillcation and
teata
Guide provides
wer
features.
HP-III
control.
Progmmming
and the Wrformence
876SEK)ption
Command
Examples
‘Ibet
Guide
011
a
l&t
iV
Contents
EP-IB Programming and Command Reference Guide
1.
Where to Look for More Information Preset Conditions Analyzer Command
Code Naming Convention
Valid Characters units
........................
Command Formats
General Structure:
SyntaxTypes
Analyzer Operation
Held Commands Operation Complete
HP-IB Operation
Device Types
lhlker
Listener
.......................
......................
Controller
HP-H3
Bus Structure
Data&s
Handshake Lines Control Lines
HP-IH
Requirements
HP-B
Operational Capabilities
HP-lB
status lndica~rs
Bus
Device Modes System-Controller Mode
‘lhlker/Listener
Pass-Control Mode Analyzer
Bus
Setting HP-IB Addresses
Response to
HP-IH
Commands)
Abort
.......................
Device Clear.
...................
Syntax
...............
..............
...................
..................
.................
...................
..................
...................
.................
....................
....................
.....................
.................
.....................
.................
...................
.................
..............
..................
..............
Mode
................
.................
Modes
................
...............
Met&Messages
(IEEE-488
...................
...................
..........
............
Universal
l-2
l-3
1-7
l-7
1-9
1-9
l-10
l-10 l-11
1-12 1-12 1-12 1-14 1-14 1-14 1-14
l-16 l-10 l-10 l-16
1-17 1-19
l-20
1-21 1-21
l-22 l-23
1-23
l-23
1-24
l-245 l-25 l-25
ckmtente-1
Local.. Local Lockout Parallel Poll
Pass
Control
Remote.. Serial Trigger
Reading Analyzer Data
Output Queue Command Query.
Identification
output syntax. Marker Data Array-Data Formats Trace-Data Transfers Stimulus-Related Values
Data-Processing Chain
Data Arrays
FhstDataTransferCommands
Data Levels Learn String and Calibration-Kit String
Error Reporting
Status Reporting The Status Byte
.....................
...................
....................
....................
....................
.....................
Poll
......................
.................
....................
..................
....................
...................
.....................
.................
.................
...............
.................
.....................
............
.....................
........
....................
...................
...................
The Event-Status Register and Event-Status Register B . Error Output
Error Messages in Numerical Order Calibration Display Graphics
User Graphics Units
BPGL
subset:
Accepted but ignored HP-GL commands:
Disk File Names Using Key Codes Key Select Codes Arranged by
HP-E3
Only Commands
Alphabetical Mnemonic Listing
....................
..........
......................
....................
.................
....................
......
....................
....................
F’ront-Panel Bardkey
...
.................
.............
l-25 l-25
l-25
1-26
1-26 1-26
l-26
1-27
l-27 l-27 l-28 l-28
130
l-33 l-35
136
l-37 l-37
139
l-40 l-42 l-43 l-43 l-45
1-46
l-47 l-48 l-54 l-57 l-57 l-57 l-69 l-60
1-62
1-63
l-93
l-103
Index
Figures
l-l.HP-IBBusStrwture .. l-2.
Analyzer Single Bus Concept . . . . . . . . . . . . .
l-3.
FORM4
l-4.
The
l-6.
Status Reporting Structure . . . . . . . . . . . . . .
1-6. Key Codes . . . . . . . . . . . . . . . . . . . . . .
(ASCII) Data-Transfer Character String
Data-Processing Chain for Measurement Outputs
. . . . . . . . . . . . . . .
YIhbles
l-l.
Preset Conditions (1 of 5)
l-2.
Code Naming Convention
l-3.
OPC-compatible Commands
l-4. UnitsasaFunctionof DisplayFormat. l-5.
HP 8753E Network Analyzer Array-Data Formats
1.6.
StatusBit
l-7.
Relationship between Calibrations and Classes
1.8. Error
l-O.DiskFileSulXxes
l-10.
Key
l-11. HP-IB
Definitions
Coefiicient
Arrays
..................
Select Codes
Only
Commands
..................
..............
..............
..............
........
................
...............
................
1-16 1-22
. . . .
l-29 l-38 l-43
1-62
1-13
l-32
134
...
l-44
.....
l-55
1-56
l-60
1-65
l-03
.
l-3 l-8
contents-8
1
EIP-IB
Programming and
Command Reference Guide
This document is a reference for operation of the network analyzer under
HP-II3
control.
analyzer, refer to the HP
For
information
875.9E Network
about
manual operation of the
Anulgm
User’s Guide.
HP-IB Programming and Cbmman
d Reference
Guide
l-l
Where to Look
for
More Information
Additional information covering many of the topics discussed in this document is located in the following:
8 !lWorial Desrrtption
a description and discussion of all aspects of the
of the
Hewlett-Rzchwd Interface Bw, presents
HP-B
A thorough overview of all technical details as a broad tutorial. HP publication,
HP
part number 5021-1927.
n
IEEE Standard
ANS3XEEE std
Digital
Interface for
488.1-1987
proSrammabl@ InsFmcmentatzon
contains detailed information on
IEEE-488
operation. Published by the: Institute of Electrical and Electronics Engineers, Inc.,
345
East
47th
Street
New York, New York 10017.
w
HP
BASIC Pro9rammilng likumples Guide
includes
progmmming
examples in HP BASIC.
1-2 HP-IB
Proi@xum&f
and
Comnmm
d Itehrence
Gtuide

Preset Conditions

When the called the factory preset state. This state is
PB5BJm
CONDlTIONS
Analyzer Mode Analyzer Mode
Frequency
OpelUMOIl
off&
Harmonic OperaMon
Stimulnr condlt10ne
Weep
Step Sweep
Dieplay Trieeer Type
External Trigger Sweep Time Start
F+requency
Frequency Span
W.)
Frequency Span
Pm. ow
Start
The
The
Span
CW
Frequency
Bource Pawer Pbwer Slope
Start Power
Power Bpan
Coupled Rawer
Bource
Coupled Channels Coupled Port
OiTaet
Value
Tvpe
Mode
Power
L-J
Network Analyzer Mode
ofr
0 on
Linear Frequency
off StartJBtop
Continuous
oif
100 ma,
8om
2ooo.W
6000.07
0 lOOmE 1OOOMHZ
OdBm
0
­26dB
on on on
Power
on
key is pressed, the analyzer reverts to a known state
delined
‘able
l-l.
Preset Conditions (1 of
PEEam VALUB
Auto Mode
Idle
MHZ
dB/Ql-liq m
16.0 dBm
PltEBlm
C4WDlTIONS
Power Range No. of
RAnta
FTeqnency Lbt
Frequency
IEdIt
Ltst
Sweep Mode
List Ll6t mw
Uesponse lhldltioM
Parameter
Convemion Fbmlat
DiePlaY
Color Selections
Dual Channel
Auxllhry
split Display Active Channel Channel 1 Frequency Blank
Lfi3t
Mode
Frequency
Power
Channel
in
!Ihble
l-l.
6)
PREBlrr VALUE
Auto;
Bange
201
hPtv StartBtop,
Point6
Swept
off w
Channel 1: 811; Channel 2: 821; Channel 8: 812; Channel 4:
w
Log Magnitude [all inputs)
bme aa before
cm w ZX
Disabled
Number of
0
822
HP-IB
Prolprunmins
and
Commmn
d Ibference
Gnlde l-8
‘&able
l-l. Preset Conditions (2 of 5)
PPEBET C&WBTION
Rwpome c4mlltlon#(collt.)
Beeper: Bone Beeper:
Warning
B2/DltoD2 TlMe
IF Bandwidth
IF AveragIng Fk.ctm Bmootbing
‘ham Offset
lectrlcal Belay kale/Division
hllbratlon
)orrectIon !aIibraMon lsrpe khbration Kit yEtem 20
blocky Factor
ht8MiOM
Chop A and B Power Meter
Cahbration
Readings
CorrecMon
Aperture
port1 port2
Input A Input B
Number of
Power Loss
PRESETVALUE
Ifeett.0 2 (jGEEg has
setto<
PItIBET
lntenslly to
on
OfP OIY
Channel 1 - [hp]
Channel 2 -
s7ooHz
1s; Oif
1% SPAN; OE
)
Degrees
)IlS
LO
16X,
no effect. If
16%
InCre~
16%.
Bmpt:
dB/Division
PltEsm CoNluTION
CaBbratIon (cent)
Bensor
AA
Interpolated
CmecMon
Markers
Markem Last Active Marker
Reference Marker Marker Mode
Display
Delta Marker Mode
1 huplins
Marker Search Marker lkrget Marker Marker Tracking Marker Sthnuhw
Marker
Marker Aux Offset
W-4
Marker polar Marker
Bmlth
Llnit Llnw Limit Lines Limit mung Limit List Edlt
Mode
Mnwlw omet
(eeupled)
1,
Marker6
Width
Value
Statletics
Marker
Error
2,3,
Value
O&et
4
Value
Offset
mtm
Beep
WU
PREs7m VALUE
A
on1
1
L3IIz;
Markers od
1 None
Continuous cn w cn w
-8dB
-8dB;ofP m II%? IdB 1
Degrees
oil LlnMkr R+jx
r&r
elf cm
IQnPtr
Upper/Lower
OH2 DdB Sl0pIn.g Line w
i
LImIta
1 InterpoIated Error Correction can be on or off when the
factory preset state.
state
of
Interpolated Error Correction.
1-4
HP-IB Prom
‘I’he
User’s Guide describes how to set the factory preset
and
timman
d Reference
Guide
analyzer ia
in the
‘lhble
PREBE~’
CONDITIONS
l’lme Domain
PraMfOrIIl
rransform lype wart Transfoml
lhnsform 3aMng 3at.e 3ate Start
3at.e
Demodulation Window Use Memory
9ystem Parameters EIP-IL3 Addresws
HP-IB Mode
bcun
Clock Time Stamp
Pre~t:
CQpy conngnrIItloll
Parallel port
Plotter
Plotter port
Plotter Baud Rate
Plotter Handshake
HP-IB Address
Printer 5pe
Span
Shape
Span
FbctoryNwr
mpe
l-l. Preset Conditions (3 of 5)
VALUE
xf Bandpaw
-20
10 nanomecondn EJlr
Normal
-10
nanosecond9 20
nanoaeconti
WI
Normal
cfr
last. Active
Bt8t43
La& Active
Btd?
Last Active
State
on
ht Belected Btatb?
La& Active Eltate
last AcMve State
Last AcMve
Btste hst
Active
Btate
la& Actlve Std.0
Imt
Active
Btate last
AcMve
Stata
PBESEF CONDITIONB
copy
conflgaratlon
[cont.)
Printer port
Printer
Baud Rate
Pdnter Han&hake
Printer
HP-IB Address
Dlak f&we
hiflgW~tlOll
(Define Store)
Data Array Raw Data Array
Fbrmatted
Data Array
oraphics
Data
Dnly Directory she Bave Using
Select Dbk
Disk Fbrmat
Beqnenclng
2
Loop Counter
ITLOUT Bervlce
Modes
HE-IB llla@~wMc Bource
Phase Lock Sampler Correction Spur Avoidance
Aux Input
Analog
Ibolutlon
BWI
Node
lwmlm
VALUE
hst Active 3tate
Iast
Active
sate List
Active
sate last
Active
state
DiY DfP ou InY OlY
Default1 BbrY
Internal
MemorJ
LIP
0
High
OIY MPDn
on on
I&w
11 (Aux Input)
1 The directory size is calculated as 0.013% of the floppy disk size (which
~266) or 0.006% of the hard disk size.
2 Pressing preset turns off sequencing modify (edit) mode and tips any
runuing
sequence.
HP-IB Progmamdng
and
Comnumd
Reference
Guide
is
1-S
!Ihble
l-l. Preset Conditions (4 of 5)
‘RESEF CONDlTlONS
lot
lot
Data lot Memory ‘lot
GraMcule
lot lbxt ‘lot Marker
uWfeed
‘lot Quadrant
tale
Plot
lot Speed
bn Number:
ChlKh8
Data
Chl/ChS Memory
ChllChS
QraMcule
ChllChS l&t Chl/Cht) Marker Ch2lCh4 Data Ch2Kh4 Memory
Ch2lCh4
QraMcule
PREBm
on on on on on on
FuUPaee
Pull
Fkst
2 6
1
VALUE
PREBEl’ CONDFl’IONE
Pen Number (cant):
Ch2lCh4 ‘lbxt Ch2/Ch4 Marker
Line
Qpe:
Chl/ChL?
Data
Chl/ChS Memory Ch2ICh4
Data
Ch2/Ch4 Memory
Print
Fklnter
Mode
Auto-Fbed
Printer Colora
CHllCh8 Data CHl/ChI Memory CIWCh4 Data CIWCh4 Memory
QraMcule Warnine
lbxt
Ref
Une
PlwBlm
vALuJ3
7 7
Last Active State
cn
Magenta
Zreen
Blue Red
Zyan
Black Black Black
lhble
Rwmat
lhble
l-6
HP-IB Prorpamming and
l-l. Preset Conditions (5 of 5)
Scale
Commam
d Reference Guide
Reference
IRosition
Value

Analyzer Command Syntax

Code Naming Convention

The analyzer
titles (where possible), according to this naming convention:
Simple comman
as in POWE, the
contains two words, the first three mnemonic letters are the first three letters of the fhst word, and the fourth mnemonic letter is the first letter of the second word.
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 are the function specifier. As an example, category pen numbers are represented by the several functions such as PENNDATA, PENNMEMO.
The code naming guidelines, listed in
n
make commands more meaningful and easier to remember
n
ma%.ain compatibility with other products (including the HP 8510)
HP-D3
commands are derived from their front-panel key
ds
are the
comman
first
4 letters are the category label and the last 4 letters
&st
four letters of the function they control,
d name for power. If the function label
For
example, ELED is derived from electrical
comman
d PENN, which is used in combination with
Table l-2,
are used in order to:
Note
There are times when these guidelines are not followed due to technical considerations.
HP-IB
ProlplLmmins
and
Comumn
d Reference Guide 1-7
‘Ihble
1-2. Code Naming Convention
Convention
One Word
Two Words
Two
Words
in a
ctroup
Three Words
Some codes require appendages (ON, OFF, have a front-panel equivalent are
Key Title
Power start
Electrical Delay
Search Right
Marker
+CknteI
Gate
-d?pan
CalKitN600
Pen
Num
Data
For BP-IB Code Use
FiIst
Four Letters
First Three Letters of First Word, First Letter of Second Word
Four Letters of Roth
First Three Word, Fhst Letter of Second Word, First Four Letters of Third Word
HP-II3
I.&t.ers
of First
1,2,
etc.). Codes that do not
only commands. They use a
Example
POWE
ELED
MARKCENT
GATESPAN
CALKNSO
PENNDATA
similar convention based on the common name of the function.
l-8
BP-IB
Programmi.ug
and
Commm
d Beference Guide

Valid Characters

The analyzer accepts the following ASCII characters:
x
letters
w
numbers
n
decimal points
n
+I-
l
semicolons
n
quotation marks
n
carriage returns (CR)
w
linefeeds
(;)
(“)
(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,
seconds, etc.
dB,
Seconds
S V
Volts
Hz DB
Hertz
dB
or
dBm
Input data is assumed to be in basic units (see above) unless one of the following units is used (upper and lower case are equivalent):
MS Milliseconds US Microseconds NS Nanoseconds PS
Picoseconds
HP-IB
E’ro@ammh@
KHZ Kilohertz MBZ Megahertz GHZ FS
and
Commam
Gigahertz Femtoseconds
d
Iteference
Guide
1-B

Command Formats

The
HP-R3
commands accepted by the analyzer can be grouped into five input-syntax types. The analyzer does not distinguish between and lower-case
letters.
General Structure: The general syntaz structure is:
[code] [appendage] [data] [unit] [terminator]
upper-
The individual sections of the
[code]
The root mnemonic (these codes are described in
syntaz
the “Alphabetical Mnemonic Listing” later in this
document.) A qualifier attached to the root mnemonic Possible
appendages are ON or
OFT),
or integers, which specify one capability out of
several. There can be no spaces or symbols between
the code and the appendage.
Mat.4
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 decimals, with power of ten by E (for example, frequency to 2
GHz).
enclosed by double quotation marks. For example: A title string using RMB
OUTPUT 716;
where the
“TITL”““Unitl”““;
first
two ‘I BASIC will interpret the third
[unit]
The units of the operand, if applicable. If no units are specitled, the analyzer assumes the basic units as described previously. The data is entered into the function when either units or a terminator are received.
[terminator]
Indicates the end of the command, enters the data, and switches the active-entry area OFF. A semicolon (;) is the recommended terminator.
Wminators
are not necessary for the analyzer to interpret comman syntax error, the analyzer will attempt to recover at
code are
ezplained
OF’F
(toggle a function ON or
below.
specified
STAR
8.2E+ 18;
sets the start
Character strings must be
BASIC
would look like:
‘I
are an escape so that
‘I
‘I
properly.
ds
correctly, but in the case of a
RMB
l-10
HP-IB
Pro@-g
and
Comman
d lbference
Guide
the next terminator. The analyzer also interprets line feeds and
END OR IDENTIFY
(EOI)
messages as
HP-IB
terminators.
Syntax Types
The specific syntax types are:
SYNTAX TYPE 1: [code] [terminator]
These are simple action commands that require no complementary information, such as
AUTO;
(autoscales
the active channel).
SYNTAX TYPE 2:
These are simple action comman
such as
CORRON;
REM1 ;
,
[code] [appendage] [terminator]
ds requiring limited customization,
and
RECAZ;
,
RECR3;
CORROFF;
(error correction ON or
(recall register
1,2,3).
OFT’)
or
There can be no
characters or symbols between the code and the appendage.
Note
SYNTAX TYPE 3: [code] [data]
These are data-input start frequency to 1
In the following cases: CLEAREG[D] ,
SAVEREG[D],
For example,
CLEAREG 1;
and
CLEAREGB
will
[unit][terminatorl
comman
GHz).
EG[D], [D]
must be 2 characters.
1; will execute, while
generate a syntax error.
ds such as STAR 1.0
RECAREGID]
GHZ;
(set the
,
SYNTAX TYPE 4: [code] [appendage] [data] [terminator]
These are titling and marker commands that have an appendage,
such as
QUERY SYNTAX:
‘I TEST2
TITRl “STATE1
‘I
(title register 2
[code][?]
(title register 1
TEST2).
STATEl),
TITRZ
To query a front-panel-equivalent function, append a question mark (?)
REAL?.)
to
the root mnemonic
(For
example, POWE?,
AVERO?,
or
To query commands with integer appendages, place the
question mark after the appendage.
HP-IB
ProIplLmmine
and
Comnmn
d Reference
Chide l-11

Analyzer Operation

Held Commands

The analyzer cannot process key commands known as “held” commands. held command because it requires the analyzer to take one sweep of data before executing any other commands.
Once a held command is received, the analyzer will read new commands into the input buffer, but it will not begin the execution of any commands until the completion of the
1Bcharacter input buffer is full, the analyzer will put hold on the bus
until it is able to process the commands in the buffer.
HP-lB
commands while executing certain
For
example,
held
command. When the
SIN@
is a
Note
Commands that call a calibration class are held if there is just one standard in the class, since such commands
trigger a measurement.

Operation Complete

Occasionally, there is a need to know when certain analyzer operations have been completed. There is an operation-complete function (OPC) that allows a synchronization of programs with the execution of certain key commands. This mechanism is activated by issuing or QPC?; prior to an
ESR
operation-complete bit will then be set after the execution of the OPC-compatible command. OPC bit to be set when the place of the
OPC;
OPC-compatible
For
single
command. The status byte or
example, issuing
sweep is
UPC;
flnished.
Issuing
causes the analyzer to output a one (1) when the
command execution is complete. The analyzer will halt the computer
by not t example, executing
ransmitting
the one (1) until the command has completed.
OPC? ; PRES ;
, and then immediately querying the analyzer causes the bus to halt until the instrument preset is complete and the analyzer outputs a one (1).
As another example, consider the timing of sweep completion. Send
thecommandstringSWET
string sets the analyzer sweep time
3
S;OPC?;SING; totheanalyzer.
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 computer.
SING;
OPC?;
This
OPC ;
causes the
in
For
1-12
HP-IB Procpammipg and
Cornman
d Reference
Guide
‘able l-3.
OPC-compatible Commands
AUXC<ONIOFF> GHAN1
CHAN2 CHANSl CHAN41
CLASS1
1A2
CLASS1 1B2 CLASSllC2
CLA8822A2 CLASS22B2 cLAss22c2 CLEA<l CLEARALL CLEAREG<Ol to DATI NUMG EX’ITOFF PRES
EXTTON
EX’ITPOIN FREQOFFS<ON(OFF> RECAREG<Ol
2Theclawco
to
5>
31)
1 These commands are not querlsble, but the active channel may be found by
OUTPCHAN.
mmanda
FWDI2 FWDM2 FWDT2 GM’EO<ONJOFF> REVM2
BARMOFF
HARMSEC
BARMTHIR SAVl
INSMEXSA
INSMEXSM SAVC
INSMNETA
INSMTUNR
ISOD
MANTRIG
NOOP SLIS
RAID TRAD
RECA<l
are OPCcompatible if there is only one standard in the
to
5>
to
31>
REFD RESPDONE
REVI
REVT2 RSl-
SAV2
SAVE< 1 to
SAVJZREG<Ol
SAVT SING
L?IXN<A
SWPSCART
WAIT
5>
to G>
to 31>
class.
HP-IB Procpammine and Comman
d Reference
Guide
1-18

HP-IB Operation

The HewletMackard Interface Bus (HP-B) is Hewlett-Packard’s hardware, software, documentation, and support for IEEE 488.2 and
IEC-625
allows you to operate the analyzer and peripherals in two methods:
n n

Device Types

The HP-B 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 parallel.
Every HP-IB device must be capable of performing one or more of the
following interface functions:
Talker
A talker is a device capable of transnu addressed to talk. There can be only one active talker at any given time.
n
n
n
n
n
The network analyzer is a talker when it sends trace data or marker information over the bus.
worldwide standards for interfacing instruments. This interface
by an external system controller by the network analyzer in system-controller mode
‘tting device-dependent data when
Ezamples
of this type of device include:
power meters
disk drives
voltmeters counters
tape readers
Ltstener
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
n
power supplies
w signal
1-14
generators
HP-IB
ProIpammine
and Cemman
d
Eeference
Guide

HP-IB Bus Structure

Figure l-l. HP-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.
Progmmming
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 insure
valid
data.
Handshake Lines
HP-E3
undergoes a handshake to
A three-line handshake scheme coordinates the transfer of data between
talkers and listeners. ‘lb insure data integrity in multiple-listener transfers, this technique forces data transfers to occur at the transfer
l-16
HP-IB
Prolpammipg
and Co-
d Reference
Guide
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.
ATN (Attention)
The active controller uses this to
define
whether the information
line
on the data bus is command-oriented or dataoriented. When this line is true (low), the bus is in the command mode, and the data lines carry bus commands. When this
lineisfalse(high),thebusisinthe
data mode, and the data lines carry device-dependent instructions or data.
SRQ (Service Request)
This line is set true (low) when a device requests service and
the active controller services the requesting device, The network
analyxer
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.
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-IE3
rather than from its front panel
HP-IB
ProEpammtng
and Comman
d Reference
Chhie
1-17
EOI (End or Identify)
(pressing (Local) 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.
This line is used by a talker to indicate the last data byte in a multiple-byte transmission, or by an active controller to initiate 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.
l-18
HE-IB Procpsnrming
and
Comman
d lteferencw GMde
HP-II3 Requirements
Number of Interconnected
15 maximum.
Devices: Interconnection Path Maximum
Cable Length:
Message Transfer Scheme:
20 meters maximum or 2 meters per device (whichever is less).
Byte serial, bit parallel asynchronous data transfer using a handshake system.
Data Rate:
Maximum of 1 megabyte-per-second over the speci3ed distances with
&i-state
depends on the transfer rate of the slowest device connected to the bus.
Address Capability:
primary
listen. A maximum of 1 taker and 14 listeners can be connected to the
interface at given time.
Multiple-Controller Capability:
ln 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 allowed.
3-line
drivers.
Actual
data rate
addresses: 31 talk, 31
sgrtem
controller is
HP-IBPro@rtsammh@andCo-
dR.eferenceGnide l-19
HP-II3 Operational Capabilities
On
the network there is a standard. The
list
of
analyzer’s
HP-R3
device subsets as defined by the IEEE 488.2
analyxer
rear panel, next to the
has the following capabilities:
HP-II3
connector,
SHl AH1 T6
L4
F’ull-source
handshake. Full-acceptor handshake.
Basic talker, answers serial poll, unaddresses if MLA is
issued. No
talkaly
mode.
Basic listener, unaddresses if MTA is issued. No listen-only
mode.
SRl RLl
PPO
DC1 DTl
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.
Cl,C2,C3 Cl0 E2
System controller capabilities in system-controller mode.
Pass control capabilities in pass-control mode.
Tri-state drivers.
No extended listener capabilities. TEO
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.
l-20
BP-IB l’ro@anmr@
and
Conrman
d
Beference &ride
GRAPHICS PLOTTER
SYSTEM
CORTROLLER
Figure 1-2. Analyzer Single Bus Concept
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-B
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:
“ANOTHERSYSTEMCONTROLLERONHP-IBBUS”
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
1-22 HP-IB
ProLpannning
and
Comman
d
Beference Gnide
Loading...
+ 163 hidden pages