Agilent 70820A Programmers Guide

Programmer's Guide
HP 71500 Series
ABCDE
70820-90053
No.
art
P
HP
in
USA
Ma
y
1993
c
yrigh
Cop
All Righ
ermission
p
oun
F
1400
Reserv
ts
tain
t
is
Hewlett-P
ed.
prohibited,
e
v
Gro
kard
ac
Repro
except
arkw
P
Compan
duction,
as
,San
y
a
1991,
y
adaptation,
ed
w
allo
Rosa,
ta
1993
under
CA
translation
or
cop
the
95403,
yrigh
USA
without
ws.
la
t
prior
written
Certification
Hewlett-Packard Company certies that this product met its published specications at the
time of shipment from the factory. Hewlett-Packard further certies that its calibration
measurements are traceable to the United States National Institute of Standards and
Technology, to the extent allo wed by the Institute's calibration facility, and to the calibration
facilities of other International Standards Organization members.
Warranty
This Hewlett-Packard instrument product is warranted against defects in material and
workmanship for a perio d of one year from date of shipment. During the warranty perio d,
Hewlett-Packard Company will, at its option, either repair or replace products whichproveto
be defective.
For warranty service or repair, this product must be returned to a service facility designated
and
ard
k
Buy
to
by
when
to
ac
w
Ho
er.
Hewlett-P
Hewlett-Pac
erly installed
prop
instrumen
the
of
ev
er,
ac
k
Buy
ard
k
ard
er
for
on
or
t,
Hewlett-P
y
b
Hewlett-P
pay
shall
another
from
Hewlett-P
with
use
instrumen
that
are,
w
soft
ac
kard
ac
shipping
all
coun
ard
k
ac
instrumen
an
rm
or
ard.
k
shall pa
try
arran
w
Hewlett-P
t.
are
w
er
Buy
y shipping
harges,
c
.
ts
will
t
will
shall
that
execute
kard
ac
unin
e
b
prepa
duties,
soft
its
do
terrupted
shipping
y
charges
its
es
to
taxes
and
and
are
w
programming
w
not
or
harges
c
return
pro
for
w
rm
that
t
arran
error-free.
Hewlett-P
to
duct
pro
the
returned
ducts
designated
are
instructions
op
the
eration
Limita
tion
foregoing w
The
tenance
main
misuse,
preparation
site
eration
op
y
b
arrant
Buy
outside
or
not
shall
y
er-supplied
Buy
er,
the
of
maintenance.
apply
vironmen
en
to
soft
defects
are
w
sp
tal
resulting
terfacing,
in
or
from
ecications for
improp
er
unauthorized
the pro
duct, or
inadequate
or
dication
mo
improper
arranty
W
of
NO OTHER WARRANTY IS EXPRESSED OR IMPLIED. HEWLETT-PACKARD
SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE.
Exclusive Remedies
THE REMEDIES
REMEDIES.
HEWLETT-P
PR
VIDED
O
HEREIN
CKARD
A
INDIRECT, SPECIAL, INCIDENT
BASED ON CONTRA
CT, TOR
T, OR
ARE
SHALL
BUYER'S
NOT
SOLE
BE LIABLE
AL, OR CONSEQUENTIAL D
ANY OTHER LEGAL THEOR
AND
DIRECT,
ANY
OR
F
AMAGES, WHETHER
Y.
CLUSIVE
EX
Assistance
available
e
duct
o
Pr
lett-Packar
Hew
any
or
F
maintenanc
pr
d
assistanc
e,
agr
e
ducts.
o
ontact
c
ements
e
your
and
ne
ar
other
est
customer
lett-Packar
Hew
assistanc
Sales
d
e
agr
and
ements
e
Service
ar
Oc
e.
or
for
iii
Safety Symbols
The following safetysymbols are used throughout this manual. Familiarize yourself with each
of the symbols and its meaning before operating this instrument.
Caution
caution
sign denotes a hazard. It calls attention to a pro cedure which,
The
if not correctly performed or adhered to, could result in damage to or
destruction of the instrument. Do not pro ceed beyond a
caution
sign until the
indicated conditions are fully understood and met.
Warning
warning
sign denotes a hazard. It calls attention to a procedure which,
The
if not correctly performed or adhered to, could result in injury or loss of life.
Do not proceed beyond a
warning
sign until the indicated conditions are fully
understood and met.
General
arning
W
arning
W
Caution
Safety
Considerations
instrument
this
e
Befor
protectiv
through
pro
Any
the
personal
There
injury
Any
with
the
with
vided
interruption
instrument,
injury
many
are
Be extremely
.
adjustments
protective
e
protectiv
the
of
disconnection
or
.
points
careful.
or service
ers
v
co
switche
is
conductor
contact.
earth
e
protectiv
instrument
the
in
procedures that
ed
v
remo
mak
,
on
d
the
of
(grounding)
e
the
of
should
sure
e
w
po
ac
conductor,
protectiv
which
require operation
performed
be
personnel.
Before this instrument is switched on,
make sure its primary p ower circuitry
has b een adapted to the voltage of the ac power source.
correct
the
ailure
F
instrumen
the
to
set
ac
the
when the
t
o
p
er input
w
ac
to
plugged
is
cable
er
w
o
p
has
it
cable
er
earth
e
if contacted,
can,
oltage
v
in.
been
to
inside
terminal
only
could
properly
et outlet
sock
a
or
can
cause personal
of the
trained
y
b
cause
grounded
outside
result
instrument
service
damage
in
to
iv

Programming Fundamentals

This chapter provides the necessary information to operate a microwave transition analyzer
system via a computer. The topics described in this chapter are as follows:
Setup Pro cedures for Remote Operation
Address Switches
Communication With the System
Status Reporting Structure
Synchronization of Events and Commands
ransfer
T
Data
1
Programming
Fundamentals
1-1
Setup Procedures
Note
Refer to the HP 71500A MicrowaveTransition Analyzer Installation and
Verication Manual for more information on installation, conguration, and
addressing for microwave transition analyzer systems.
The following procedure describes how to connect your equipment for remote operation
specically for a microwave transition analyzer system.
1. Connect computer, microwave transition analyzer system, and other peripherals with
HP-IB cables.
Note
When connecting the HP-IB cables to the microwave transition analyzer
system, make sure that these connections are made to the HP-IB connector
on the mainframe and
not
to the mo dule itself. This ensures access to all
equipment via the public HP-IB.
(If
bus.
the
to
dule
mo
fron
displa
to
reset
panel,
t
y
it.)
the address
on
then
the
til
un
press the
micro
After
2.
not sure
k
Chec
3.
view
o
T
NN
NN
N
N
N
N
N
N
N
N
N
N
N
ADDRESS MAP
transition
the
the
N
N
N
N
N
N
HP-IB
how
HP-IB
address
the
N
N
N
N
N
N
N
N
N
N
N
N
analyzer
cables
to reset
address
N
N
softk
are installed,
device,
a
of
map,
urn
T
.
ey
appears
the
press
the
in
switc
micro
the
knob
the
reset all
its
h
a
w
4
DISPLA
on
address
line
transition
e
v
k
5
Y
the
map.
instruments
o,
er
w
o
p
analyzer
the
on
ey
panel
t
fron
connected
on,
then
y
displa
the
of
y
ou
map.
w
are
a
e
v
Note
The
access
micro
and
transition
e
v
a
w
error-rep
orting
analyzer
mo
capabilities.
dule
m
ust
be
cated
lo
in
ro
HP-IB
for
0
w
Programming
1-2
Fundamentals
Address Switches
Address switches set the HP-MSIB address of an element (mo dule); the column address
switches also set the HP-IB address for masters and independent elements. Some master
elements can also have their HP-IB address set through the use of softkeys (that is, soft-set
address).
The hard address switches for the microwave transition analyzer are located on the top of the
module.
Note
HP-IB address 31 is an illegal address and should not be used.
Descriptions of the address switches for the microwave transition analyzer are given below.
Switches
v
a
w
micro
address whic
transition
e
h
also
is
analyzer
the
switched
is
HP-IB
HP-IB
Column
hes
Switc
ADDRESS
w
Ro
ON-OFF
ADDRESS
1|5
Figure
When
the
o
These
address.
These
1-1.
is
this
HP-IB.
the
set
the
set
Address
the
set
HP
to
71500A
OFF,
HP-MSIB column
w
HP-MSIB
ro
address.
Switches 1|3
Self-Test Switches
SwitchA
hB
Switc
enables or disables portions of the power-on self test. In the OFF (or 0)
osition,
p
ortions
p
seconds
10
enables or disables the po
the normal po
HPMSIB
Caution
Disabling this test can prevent correct operation of the system. SwitchBis
intended for factory or service use only.
executed.
is
test
self
full
the
to
ed
skipp
are
the self
of
or
test
less.
wer-on HPMSIB c
wer on test is p erformed. In the ON
power-up test is skipp ed.
osition,
p
test
1)
approximately
time
In
k
the
eep
ON (or
the
heck. In the OFF (or 0) position,
(or 1) p osition, the
Programming
Fundamentals
arious
v
1-3
SwitchC
enables or disables lo oping on RAM test failures. In the OFF (or 0) position,
the lo oping is disabled. In the ON (or 1) position, the RAM data test will
loop on failures until the switchis moved to the OFF (or 0) position.
Caution
SwitchD
Caution
CNTRL
SYS
Soft-Set
This mo de can prevent correct op eration of the system. SwitchCisintended
for factory or service use only.
enables or disables printing any errors from certain p ortions of the p ower-up
self test. In the OFF (or 0) position, this mode is disabled. In the ON (or
1) position, the power-up self test will congure the \lo cal" HP-IB as TON
(talker only) and certain errors will print out information pertaining to the
errors.
This mo de can prevent correct op eration of the system. Switch D is intended
for factory or service use only.
system
the
is
set
is
dule ma
activ
dule
in
C
IF
the
and
y
e
ON
not
con
(or
REN.
assert
troller
HP-IB
(system
con
controller
dule
mo
the
is
h
switc
or
to
F
App
REN.
refer
Addresses
troller)
on the
is
in
set
more
endix
indicates whether
\local"
system
the
OFF
the
details on
assing
\P
G,
HP-IB.
troller
con
p
0)
(or
system con
Con
or not
this
If
and
osition,
troller
trol".
switc
ma
the mo
the mo
h
assert
y
ersus
v
p
1)
If this
C
IF
eration
op
osition,
nor
The
fron
the
til
un
Note
HP-IB
panel
t
another
address
of
soft-set
Changing
osition
p
of
the
micro
the
displa
address
the
the mo
of
.
y
is en
HP-IB
w
The
transition
e
v
a
soft-set
tered.
address
dules on
analyzer
address
the
via
the address
master
remains in
y
displa
map.
Use the following procedure to enter a soft-set HP-IB address.
1. Press the
2.
When
Use
3.
\70820A MT
4. When the next men
ter the new HP-IB address using the n
5. En
6.
Press
the
the
NNNNNNNNNNNNNNNNN
ENTER
4
DISPLAY
displa
fron
y
t-panel
A."
.
5
key on the displayfront panel.
press
ears,
app
or
u
step
eys to
k
scroll
NNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNN
HP-IB ADDRSET
Main Men
knob
appears, press
u
umeric k
N
N
N
N
N
N
N
N
N
N
NN
N
N
N
N
the
ADDRESS
highligh
the
NNNNNNNNNN
.
eys on the displa
N
N
NN
N
mo
eect un
t
fron
N
N
NN
N
N
N
N
N
N
N
N
MAP
ted
ma
dule
til
panel do
N
N
softk
ey
rectangle
yfron
y
w
o
p
es not
.
to
t
changed
e
b
is
er
the
panel.
cycled,
aect the
lab
x
o
b
from
or
eled
Programming
1-4
Fundamentals
Communication with the System
This section develops some fundamental techniques for controlling the microwave transition
analyzer and obtaining sound measurement results. Remote operation of the microwave
transition analyzer is controlled with commands that mainly correspond to front-panel softkey
functions.
It is imp ortant to understand how messages are communicated to the microwave transition
analyzer. Therefore, enter and output statements and command syntax will b e discussed in
this section. It should b e noted that HP BASIC is used for all examples in this manual.
Talking to the Instrument
Commands are sent to the instrument with ASCI I program messages. These messages
are placed on the bus using an output command and passing the device address, program
message, and terminator. Passing the device address ensures that the program message is sent
to the correct interface and instrument.
Note
Executing
The actual
both
Angular brac
parameter
de
co
Information
across
is
that
HP
or
F
actual
automatically
Remote
OUTPUT
the con
troller
kets
that
bus.
the
t
sen
also
Series
9000
terminator
<
terminate
Commands
command you use when programming is dependenton
using.
are
ou
y
that
haracters
c
the
ts
only
the
not necessary
is
message.
ternally
in
sym
that
information
additional
to
These
.
olize
b
information
e
yp
t
con
\
<
an
or
is
The
across
>
programming
and
enclose
"
>
HP-IB
y
displa
message
the
200/300
the
at
the
w
command.
quotes
in
ed
terminator
bus.
trollers,
con
of
end
program
language
ords
the
message
or
represen
is
it
program
a
that
the
in
trollers
program
sen
is
Microwave transition analyzer programs control the passage of commands and data b etween
the microwave transition analyzer and the computer on the Hewlett-Packard Interface Bus
(HP-IB), using HP BASIC
An
OUTPUT
analyzer.
statement tells the computer to send a message to the microwave transition
example,
or
F
OUTPUT
executing
the
and
ENTER
output
statements.
statement
ns.
10
range
time
the
sets
w
elo
b
to
t
Programming
Fundamentals
1-5
ENTER
An
information
adding
y
query
b
statemen
computer.
the
to
question
a
t used
conjunction
in
return
o
T
(?)
mark
to
with
time
the
command:
the
micro
a
range
w
alue
v
a
transition
e
v
to
computer,
the
analyzer
query
rst
form
returns
a
the
Next,
computer:
Programming
1-6
en
statemen
ter
b
can
t
Fundamentals
eused
to
assign
the
returned
alue
v
to
v
a
ariable
in the
The value of the time range above is equated to the computer variable \Range". The variable
may be printed, stored, or used for any other computer function.
Syntax Requirements
All of the program examples in this manual show the recommended command syntax. All
microwave transition analyzer commands must be constructed according to sp ecic syntactical
rules which are outlined in Chapter 2, Programming Commands. Chapter 2 lists all of the
remote microwave transition analyzer commands in alphabetical order according to each
functional group subsystem. A group syntax diagram for each subsystem has been provided in
addition to syntax diagrams for each individual command or query.
Longform or Shortform Mnemonic Format
Program commands can be a combination of either uppercase or lowercase ASCII characters,
whereas the instrument responses are always returned in uppercase.
Capital letters are used to indicate the shortform (abbreviated spelling) of a command
program header that is minimally required. Lowercase letters indicate the longform (complete
elling).
sp
abbreviated
Note
When
elling
sp
y
An
ecifying
sp
indicated
other
a
b
elling other
sp
program
shortform
the
y
than the
command
or
shortform
or
the
query
use
,
complete
longform
or
either
sp
the
elling of
not
is
the longform.
alid.
v
or
Both program
ys
dela
OUTPUT
OUTPUT
either
the
@Mta;
@Mta; "SWE:TIME:RANG
written in
example,
and
Programs
follo
and
wing
presen
commands
the
of
on-screen
"SWEEP:TIME:RANGE
longform are
queries
program
tation
easily read
e
b
y
ma
lines
resp
(with
1;DELAY
1;DEL 1"
used
hanges
c
ect
and
1"
are
either
in
to
almost
longform
timebase
the
the trigger
!
!
self-do
in
or
0.1
to
b
t)
en
ev
Longform
Shortform
cumen
shortform.
seconds
second
1
y
The
ting.
F
division
er
p
time.
in
shortform
syntax conserves the amountof controller memory needed for program storage and reduces
the amount of I/O activity.
Refer to the individual syntax diagrams of each command for both the longform and
shortform mnemonic sp ellings.
Remote
Local
and
The lo cal, remote, and remote with local lo c
front-panel con
trol while a program
In lo cal mode, the instrumen
Control
kout mo des ma
is running.
t accepts and executes bus
arious degrees of
y be used
for v
commands and the fron
t panel is
entirely active.
In remote mo de, all front-panel input is disabled except for the local key and the line
h.
switc
In
out.
remote
(Lo
cal
with
con
lo
trol
cal
lo
can
k
c
only
out
de,
mo
restored
e
b
all
con
y
b
trols
the
(except
troller.)
con
line
the
Programming
switc
en
are
h)
Fundamentals
tirely
loc
ed
k
1-7
Note
Cycling the power also restores lo cal control, however, this will also reset
certain HP-IB states.
The instrument is placed in remote mo de by setting the REN bus control line true, and
then addressing the instrument to listen. Sending the lo cal lockout command
LLO
places the
instrument in lo cal lo ckout mode. The instrument can b e returned to lo cal mode by either
setting the REN line false, or sending the instrument the go-to-lo cal command
GTL
.
Initialization Statements
Programs should b egin with an initialization statement which is comprised of a series of
HP BASIC and microwave transition analyzer commands to ensure that the bus and all
appropriate interfaces are in a known state. The following example shows how to initialize the
microwave transition analyzer.
10 ASSIGN @Mta to 711
20 CLEAR @Mta
30 OUTPUT @Mta;"*SRE 0;*ESE 0;*RST;"
and
name
path
I/O
ASSIGN
The
assigns
is
and
name
that
assigned
command
an
to
the
to
an
is
resource.
I/O
device at
BASIC
HP
In
HP-IB address
command
example
the
11.
that
creates
o
ab
ve,
an
the I/O
path
name
\@Mta"
is
Note
ASSIGN
The
analyzer
computer
the
RESET
The
analyzer
All
analyzer
command
program.
program
command,
and pro
program
or
F
vides a
examples
addressed
is
oers
example,
the
and
*RST,
starting
d
goo
eral
sev
the
program
presets
this
in
HP-IB
at
an
adv
w
micro
can transfer
of the
all
t
oin
p
ual
man
address
when
tages
transition
e
v
a
parameters of
all
for
assume
data to
measuremen
that
711.
included
analyzer
a
micro
a
in
address is
storage
mass
the micro
cesses.
pro
t
v
a
w
unit.
e
v
wa
Executing
transition
e
easily c
hanged
transition
*RST
transition
e
v
a
w
micro
the
actually is the same as executing a number of microwave transition analyzer commands that
set the microwave transition analyzer to a known state.
The CLEAR command is an HP BASIC command that clears the input buer, the output
buer, and the command parser of the specied instrument. That is, a device on HP-IB is
it
that
bus
so
singly
ts
or
on
in
the bus
\cleared"
the
instrumen
To clear the microw
command
eration.
op
are
for
It
not
often
is
aected.
is ready
unison.
e transition analyzer, the \CLEAR @Mta" statemen
av
This
desirable
to reset
ma
only
one
instrumen
used
e
b
y
clear devices
to
so
t
ybeen
tma
that
on
other
tered
into the computer.
clear all devices at select code 7, the \CLEAR 7" statemen
To
tma
ybe en
tered in
to the
computer.
in
Programming
1-8
Fundamentals
Status Reporting Structure
This section describes and denes the status reporting structure used in the HP 71500A
MicrowaveTransition Analyzer. In general, the status data structure is used to \request
service" or indicate a specic condition (for example, operation complete) via SRQ (Service
Request). Therefore, this structure may be used to alert the user that certain events have
occurred without actually initiating a request for this information. Refer to Figure 1-2 for a
model of the status data structure.
Each of the integral parts of the status data structure are described below in more detail.
Figure
1-2.
Status
Data
Structure
2)
of
(1
Programming
Fundamentals
1-9
Status
Byte
Figure 1-2. Status Data Structure (2 of 2)
Register
The Status Byte Register con
Request Service (R
Figure 1-3
1-10
.
Programming
QS) messages, and Master Summary Status
Fundamentals
tains the device's Status Byte (STB) summary messages,
(MSS) messages. See
Figure 1-3. Status Byte Register
Note
Status
The
common query
er,
ev
w
Ho
7-bit
yte.
b
7-bit
OGRAM
except
oll
the
status
the
status
When
the
data
When
the
PR
p
message.
Bits 0 through 3 are not used at this time.
Register
Byte
(*STB?). Both
alue
v
the
Status
Status
Byte
yte
b
Byte
byte
A
T
A
D
the
that
MSS
The
can
for
t
sen
Register
message
Register
message
elemen
>
summary
MSS
summary
be
of these
bit
the
is
plus
is
plus
The
t.
message
read with
p
6
read
the
read
the
resp
message
either a
metho
osition
a
with
single-bit
the
with
single-bit
onse
app
indicates
ds
dep
serial
to
serial p
read
ends
p
QS
R
*STB?
MSS
*STB?
in
ears
the device
that
or
oll
status
the
the metho
on
\SPOLL
oll
message
to
common query
iden
bit
as
tical
6
message
is
the
has at
READ
the
message
yte
b
d used.
(@Mta)",
con
the
,
single
a
the
to
position
troller as
device
the
NR1
<
resp
in place
least
A
ST
iden
device
the
NUMERIC
onse
reason
one
TUS
tically
single
a
returns
to a
of
BYTE
returns
serial
the
for
.
R
requesting service.
Serial Poll
When a serial poll of the instrument is requested, the RQS bit is returned on bit 6 of the
status byte. An example of how to use the service request by conducting a serial p oll of all
instruments on the bus is describ ed below.
QS
transition
e
v
a
w
micro
a
bus;
the
It
on
assumed
also
is
that
erating
op
are
we
on
this
In
analyzer
example,
address
at
assume
11 and
that
a
there
prin
ter
are
at
instruments
o
w
t
address
1.
Interface Select Code 7.
The program command for serial poll using HP BASIC 4.0 is
is the address of the microw
Stat=SPOLL(701)
because the address of the prin
ave transition analyzer. The command for c
ter is 01 on
Stat=SPOLL(711)
hecking the prin
bus address 7. This command
. Address 711
ter is
reads the contents of the HP-IB Status Register into the variable called \Stat". At that time,
bit 6 of the variable Stat can be tested to see if it is set (that is, bit 6=1).
manner:
wing
follo
the
allo
ws
in
the
con
troller
the
\see"
to
Programming
line.
Q
SR
Fundamentals
1-11
The serial
Enable
1.
oll
p
terrupts
in
eration
op
on
can
the
b
bus.
e
conducted
This
2. If the SRQ line is high (that is, if some instrument is requesting service), then checkthe
instrument at address 1 to see if bit 6 of its status register is high.
3. Disable interrupts on the bus.
4. Tocheck whether bit 6 of an instrument's status register is high, use the following
command line.
IF BIT(Stat,6) THEN
5. If bit 6 of the instrument at address 1 is not high, then check the instrument at address 11
to see if bit 6 of its status register is high.
6. As soon as the instrument with status bit 6 high is found, check the rest of the status bits
to determine what is required.
The SPOLL(711) command causes much more to happen on the bus than simply reading the
register. This command clears the bus, automatically addresses the talker and listener, sends
SPE (serial poll enable) and SPD (serial poll disable) bus commands, and reads the data.
Standard Event Status Bit (ESB) Summary Message
ve
to
no
ALSE
F
Byte
ccurred
o
Figure
t Status
enabled
y
empt
ytes,
b
when
1-2
.
the
ESB
The
Register.
the
since
ESB
The
Register
are
ts
en
ev
Message
MA
The
Register.
Whenev
summary
MAV
Output
the
summary
state
Its
reading
last
summary
set
is
TRUE.
ailable
Av
summary
V
The
the
er
Queue
message
indicates
message
UE.
TR
(MA
message
of
state
device is
message
is
clearing
or
Con
V)
the
ready to
shall
empt
a
is
whether
TR
is
ersely
v
Queue
a
is
message
e
b
Refer
.
y
dened
or
UE
the
when
ESB
Standard Ev
of the
,
Summary
dened
indicates
accept
UE.
TR
Figure
to
one
that
or
more
message
not
en
enabled
an
summary message
Message
message
that
whether
y
MA
1-2
b
summary
V
.
request
a
The
app
t
or
the
Status
ev
app
in
ears
the enabled
of
Register.
in
t
en
is
in
ears
the Output
not
troller
con
message
bit
the
ALSE
F
bit
to
the
of
5
even
Refer
Standard
when
the
of
4
Queue is
output
shall
Status
ts ha
Even
Status Byte
data
e
b
The MAV summary message is used to synchronize information exchange with the controller.
The controller can, for example, send a query command to the device and then wait for MAV
to become TRUE. The system bus is available for other use while an application program is
waiting for a device to resp ond. If an application program begins a read op eration of the
Output
device
Note
Queue
resp
without
rst
V, all
MA
for
king
hec
c
onds.
Due to the operation of HP-MSIB, the MA
system
activit
bus
V bit is not implemen
y
ted when
the
til
un
up
held
is
using HP-MSIB.
.
Operation Status Bit (OSB) Summary Message
The OSB summary message is a dened message that appears in bit 7 of the Status Byte
ccurred
o
e
v
ha
ents
Register.
the
since
Figure
1-12
Programming
1-2.
Its
last
state
reading
indicates
or
whether
clearing
Fundamentals
not
or
the Standard
of
one
or
more
Op
of
eration
the
Status
enabled
ev
Register.
Refer
to
The OSB summary message is TRUE when an enabled event in the Standard Operation
Status Register is set TRUE. Conversely, the OSB summary message is FALSE when no
enabled events are TRUE.
Clearing the Status Byte Register
The CLEAR STATUS (*CLS) common command causes the Event Registers and Queues of
the status data structure to be cleared so that the corresp onding summary messages are clear.
The Output Queue and its MAV summary message are an exception and are unaected by
*CLS.
Service Request Enable Register
The Service Request Enable Register is an 8-bit register that can be used by the programmer
to select which summary messages in the Status Byte Register may cause service requests.
The programmer may select reasons for the device to issue a service request by altering the
contents of the Service Request Enable Register. Refer to Figure 1-4.
Figure 1-4. Service Request Enable Register
Reading/Writing the Service Request Enable Register
The Service Request Enable Register
is read with the SER
VICE REQUEST ENABLE
(*SRE?) common query. The response message to this query is a<NR1 NUMERIC
PROGRAM DATA>element that represents the sum of the binary-weighted values of the
of
alue
v
The
er).
b
um
Service
used
un
Service
The
(*SRE)
Request
is
6
bit
Request
common
Enable
ays
alw
Enable
command
Register
zero.
follo
(2
Register
ed
w
raised
written
is
a
y
b
the bit
of
er
w
o
p
the
to
the SER
with
to
DECIMAL NUMERIC
<
n
VICE
REQUEST
OGRAM
PR
Programming
ENABLE
>
A
T
A
D
Fundamentals
1-13
element. The<DECIMAL NUMERIC PROGRAM DATA>, when rounded to an integer
value and expressed in base 2 (binary), represents the bit values of the Service Request Enable
Register. A bit value of one indicates an enabled condition. A bit value of zero indicates a
disabled condition.
Note
*SRE is not aected by *RST.
The device always ignores the value of bit 6.
Service Request Generation
The Service Request function provides the device with the capabilities of requesting service
from the controller via the Service Request interface (SRQ, a line on HP-IB) and reporting
that it has requested service via the Request Service message (RQS, bit 6 of the Status Byte
Register).
The generation of service requests ensures that the device shall:
1. Assert an SRQ when a previously \enabled" condition o ccurs.
the
olled
p
2. Keep
device,
Release
3.
Assert
4.
the
dieren
e
b
Whenev
hanged,
c
device.
changes
messages
cal
lo
ALSE)
F
SRQ
or
an
rst
the
er
the
Device
to
the
asserted
tak
has
when
Q
SR
Qagain
SR
condition.
than
t
ten
con
device
status
Status
the
whic
hardw
un
sp
en
olled
p
if another
If
rst
the
of
ts
ust
m
transitions
Byte
either
h
are.
the
til
action
ecic
so
previous
the
for
Status
the
determine
Register
assert
troller
con
that
condition
SR
an
whether
not aect
do
(Request
has
cancel
to
con
the
condition
to
Q
Register
Byte
the
and
recognized
request
the
troller can
ccurs,
o
not
has
asserted
e
b
or
hange
c
the
state
the
Service
Service
TR
the
detect an
whether
een
b
again.
Service
the
aects
the
of
Request
UE)
service
example,
(for
not
or
cleared,
the service
SR
Enable
unassert
or
request
Q
SR
the
the
Request
terface
in
Q
Register
from
and
*CLS
another
troller
con
condition
next
Enable
request
directly
generate
(Request
command).
device.
cleared
has
m
Register
of
state
Instead,
.
w
t
Service
ust
o
are
the
The
device
shall
generate
a
new
service
request
(assert
Request
Service
TRUE)
when:
1. A bit in the Status Byte Register changes from FALSE to TRUE while the corresponding
bit in the Service Request Enable Register is TRUE.
2. A bit in the Service Request Enable Register changes from FALSE to TRUE while the
UE.
TR
Register
corresponding
in
bit
A
3.
bit
Status Byte
the
in
the
Status
Register
Byte
c
hanges
in the Service Request Enable Register c
In general, the con
troller application program m
that a new reason for service has o ccurred, but only that
occurred, and that the application program should c
is
ALSE
F
from
hanges from F
ust nev
er assume that an SR
heck the device Status Byte Register to
corresponding
the
and
UE
TR
to
ALSE to TR
UE sim
ultaneously.
Q indicates
a new reason for service ma
yha
ve
determine whether this is indeed the case.
Clearing the Service Request Enable Register
a
with
ed
w
of
follo
zero
clears
the
Service
The SER
DECIMAL
<
1-14
Programming
VICE
NUMERIC
REQUEST
Fundamentals
ENABLE
OGRAM
PR
(*SRE)
A
T
A
D
common
elemen
>
command
alue
v
t
bit
Request Enable Register. A cleared register does not allow status information to generate a
hardware Request Service message and thus, no service requests are issued.
Standard Event Status Register
The Standard Event Status Register structure has specic dened events assigned to specic
bits. Refer to Figure 1-5.
Bit 7 - Power On
(PON)
User
-
6
Bit
Request (URQ)
Bit 5 - Command
Error (CME)
Figure 1-5. Standard Event Status Register
This event bit indicates that an o-to-on transition has o ccurred in the
supply
er
w
o
p
ev
This
This ev
1. A syn
en
ent bit indicates that
of the
bit
t
tax error (con
Possible errors include a data elemen
device.
time.
this
at
used
not
is
one of the following ev
ents has occurred:
troller-to-device message) has been detected.
which violates the device
t
listening formats or whose type is unacceptable to the device.
2. A semantic error has o ccurred indicating that an unrecognized
header
w
device-dep
as receiv
enden
Unrecognized
ed.
headers
t
and
headers
incorrect
include
unimplemen
or
incorrect
common
ted
commands.
Programming
Fundamentals
1-15
3. A Group Execute Trigger (GET) was entered into the Input Buer
inside of a<PROGRAM MESSAGE>. A GET message is a
controller-to-device message dened as an addressed command.
The Command Error bit is not set to report any other device-dependent
condition. Events that are rep orted as Command Errors also are not
reported as Execution Errors, Query Errors, or Device-Dependent Errors.
Refer to the appropriate bit denitions for more information.
Bit 4 - Execution
Error (EXE)
-
3
Bit
Device-Dep
Error
enden
(DDE)
This event bit indicates that:
1. A<PROGRAM DATA>element following a header was evaluated
by the device as outside of its legal input range, or is otherwise
inconsistent with the capabilities of the device.
2. A valid program message could not be properly executed due to some
device condition.
Following an Execution Error, the device continues to process the input
stream.
Execution
expression
rounding
Ev
Query
denitions
This
t
Command
A
prop
F
input
a
that
ts
en
Errors,
t
en
ev
Device-Dep
complete
erly
wing
ollo
stream.
errors are
aluation
ev
umeric
n
generate
Device-Dep
or
more
for
indicates
bit
Error,
a
enden
Device-Dep
a
orted
rep
erations
op
elemen
data
Execution
information.
that
Error
to
Error,
is
some
Query
t
due
enden
the
y
b
ha
is
t
Errors
enden
error
an
nor
executed
y
an
condition,
Error,
t
device
en
tak
e
v
not rep
do
t Errors.
has
Execution
an
the
after
place.
orted as
not
Refer
ccurred
o
device
h
suc
device
rounding
or
F
an
generate
to
whic
Error.
op
errange.
v
o
as
tin
con
and
example,
Execution
Command Errors,
appropriate
the
neither
is
h
eration that
ues to
process
Error.
bit
a
did not
the
Bit 2 - Query Error
(QYE)
Bit 1 - Request
QC)
(R
trol
Con
1-16
Programming
Events that generate Device-Dependent Errors do not generate
Command Errors, Query Errors, or Execution Errors. Refer to the
appropriate bit denitions for more information.
This event bit indicates that:
1.
attempt is
An
output
no
is
eing
b
either
made
presen
Output
the
from
data
read
to
ending.
p
or
t
Queue
when
2. Data in the Output Queue has been lost.
The Query Error bit is not
set to rep ort an
y other condition. Ev
ents
that generate Query Errors do not generate Execution Errors, Command
Errors, or Device-Dependen
t Errors.
This event bit is not used at this time.
Fundamentals
Bit 0 - Operation
Complete (OPC)
This event bit is generated in response to the OPERATION
COMPLETE (*OPC) common command. It indicates that the device
has completed any pending operations and that the parser is ready to
accept more program messages. The parser is the logical portion of the
device whichtakes Data Byte Messages, END messages, and hardware
Group Execute Trigger messages from the Input Buer and analyzes
them by separating out the various syntactic elements.
Reading/Writing the Standard Event Status Register
The Standard Event Status Register is destructively read (that is, read and cleared) with the
STANDARD EVENT STATUS REGISTER common query (*ESR?).
The Standard Event Status Register cannot be written to remotely except to clear it.
Clearing the Standard Event Status Register
The Standard Event Status Register shall only be cleared by:
A CLEAR STATUS common command (*CLS).
records
er-on
w
o
p
A
y subsequen
an
en
ev
PON
sequence
tev
bit
t
(Bit
whic
ents
7).
initially clears
h
during the
t Status
of
Even
the
device
the Standard
sequence
er-on
w
o
p
Register
including
then
setting
the
the
in
for 8
Figure
ent
Register
Register
ESB
bits,
.
1-5
Status
Register
(*ESE?).
more
or
one
ws
allo
summary-message
with
returned
is
onding
the
h
eac
Enable
read
is
Data
corresp
Register
bit
ST
ev
(Bit
to
AND
as
a
the
in
ts
en
the
5of
in
bits
the
EVENT
ARD
binary-weigh
Standard
Status
Standard
the
ted
Status
reected
dened
is
Refer
Status
Enable
Enable
to
Ev
Enable
query
Standard
Standard
The
Status
Register).
t
Even
Reading/Writing
Standard
The
TUS
A
ST
<
NR1 NUMERIC RESPONSE DATA>.
Ev
Register
This
Status
ENABLE
t
en
Ev
e
b
to
register
Register.
Standard
the
t
en
Ev
common
Status
ent
The Standard Event Status Enable Register is written to bytheSTANDARD
EVENT STATUS ENABLE common command (*ESE). Data is encoded as
<
DECIMAL NUMERIC PROGRAM DATA>.
Clearing the
The Standard
Standard
Ev
Status
ent
Event Status Enable Register shall be cleared b
Enable
Sending the *ESE common command with a data v
er-on event.
w
Apo
Register
y the following:
alue of zero.
The Standard Event Status Enable Register is sp ecically not aected by the RESET
common command (*RST).
Even
Byte
t
Programming
Fundamentals
1-17
Output Queue
The Output Queue stores response messages until they are read. The availabilityofthe
output is summarized by the Message Available (MAV) summary message (bit 4 of the Status
Byte Register). The MAV summary message is used to synchronize information exchange with
the controller. Refer to Figure 1-6.
Queue
and
END
messages
in
to
the
Output
The
Resp
onse
ormatter
F
places
Figure
Data
Byte
Output
1-6.
Messages
Queue in resp onse to query commands. These bytes are removed from the Output Queue as
they are read by the controller. As long as the Output Queue contains one or more bytes,
MAVisTRUE.
The Output Queue is cleared upon power-on, Device Clear Active State Message (dcas), or
is
RESET
the
generated
(*RST) common
ts
ten
con
the
if
command
the Output
of
without
Queue
causing
discarded
are
Query
a
for
Error.
y
an
other
Query
A
reason.
Error
Standard Operation Status Register
Events in the
Standard Op eration Status Register ma
y be enabled with the following
commands:
STATus:OPERation:ENABle
STATus:OPERation:PTRansition
us:OPERation:NTRansition
T
A
ST
1-18
Programming
Fundamentals
Figure 1-7. Standard Operation Status Structure
The
denition
of
Operation
the
Status
Register
bits
(see
Figure
1-7
follo
as
is
)
bit 0: calibrating|set at the start of calibration, cleared at the end of calibration
ws:
bit 1: un
bit 2: un
used (dened
used (dened as ranging)
as settling)
bit 3: unused (dened as sweeping)
bit 4: unused (dened as measuring)
5:
bit
trigger
6:
bit
aiting
w
ccurs
o
un
used
trigger|set
for
(dened
as
when
aiting for
w
measuremen
the
arm)
a
trigger,
a
aiting
w
is
t
for
Programming
cleared
Fundamentals
when
1-19
bit 7: unused (dened as correcting)
bit 8: unused (dened as instrument-specic)
bit 9: unused (dened as instrument-specic)
bit 10: self test in progress (instrument-specic)|set at the start of self-test, cleared at the
end of self-test
bit 11: ready (instrument-specic)|set by the :READy command, cleared by a program
message terminator
bit 12: unused (dened as instrument-specic)
bit 13: unused (reserved)
bit 14: unused (dened as user-dened program running)
bit 15: always zero
Commands
Synchronization
section
This
commands,
and
tial
oten
p
A
application
measuremen
e
v
a
w
micro
voided
a
e
b
measuremen
describ
problem with
program
ts
transition
y
b
t
es
which
remotely
using
nished
is
Ev
of
hniques
tec
in turn
commands that
,
the
to
con
needs
analyzer
hronization
sync
efore
b
ents
insures
kno
b
and
whic
when
w
troller
efore
commands
making
hma
alid
v
tak
the
ust
m
making
y
an
eused
yb
measuremen
appreciable
e
commands
when
w
kno
a measuremen
instruct
that
measuremen
other
to insure
ts.
time
v
ha
trace
t.
sync
to
nished.
e
data
This
the
ts.
hronization
nish
Therefore,
ailable to
v
a
is
tial
oten
p
dule
mo
is
to
that
w
w
et
b
the
to
the
problem
un
ait
een
til
mak
can
a
ev
ts
en
e
with
For
the
UN
R
erations
op
example,
command
UN
R
command
consider
a
is
initiated b
data-logging
a
then
and
command
RUN
y the
mak
to
that
command
device
a
e
allows
whic
frequency
execution of
still
are
commanded
is
h
measuremen
subsequent
progress.
in
a
e
tak
to
MEAS:FREQ?.
using
t
commands while
UN
R
The
measuremen
command
t
The
device
the
therefore
takes appreciable time to perform. Figure 1-8 shows a timing diagram of this operation
without the use of a synchronization command.
It should b e noted that, without the use of a synchronization command, the RUN command
is still in progress when the FREQUENCY measurement is initiated. If the RUN command
example,
(for
progress
in
e
completed
not
has
FREQUENCY)
its
while
eration,
op
the
RUN
data
y
an
command
used
still
is
to mak
operation has been completed can the data be assumed to
other
ma
be v
measuremen
e
b
y
alid.
in
valid.
ts
Only
after
an
1-20
Programming
Fundamentals
Figure
1-9
command
RUN
the
initiated.
Figure 1-8. Timing Diagram Without A Synchronization Command
except
e
v
o
ab
illustrates
used. It
is
command
Therefore,
same
the
should b
completed
has
data
the
example
e noted
its
to
used
describ
as
that, with
eration
op
e
mak
ed
use
the
efore
b
FREQUENCY
the
sync
a
of
FREQUENCY
the
measuremen
sync
a
that
hronization
measuremen
hronization
command,
alid.
v
is
t
is
t
Figure
1-9. Timing
Diagram
Using
Synchronization
A
Command
General Sequence
The following example HP BASIC statemen
followed when making measuremen
1. OUTPUT @Mta;\*RST;
:SWE:MODE ASIN; . . . "
ts via remote con
ts illustrate the general
trol.
sequence that should be
RESET the mo dule, put it into SINGLE SWEEP mo de, then set up all desired parameters
on).
so
mo
and
de, a
single
measuremen
Programming
b
will
t
Fundamentals
en.)
tak
e
(for
OUTPUT
2.
v
In
example,
sw
a
e
ok
oltage
v
@Mta;\R
(In
eep.
range,
UN"
SINGLE
range,
time
SWEEP
1-21
3. SYNCHRONIZATION COMMAND Use a synchronization command to allow the module
to complete one operation before starting another. Refer to Synchronization Commands
below for more detailed information on the three forms of synchronization commands that
are available.
4.
OUTPUT @Mta;"MEAS:SOUR CHAN1;FREQ?"
ENTER @Mta;Frequency
Ask for and enter measurement data.
Synchronization Commands
There are three forms of synchronization commands that can be used in the general sequence
for remote measurements listed above. The three forms are listed and describ ed below.
Wait-To-Continue (*WAI)
This command instructs the module to not use the bus until all
operations are complete. If using triggered sweeps, this command may cause the bus to
\wait" indenitely if the trigger do es not o ccur.
Operation Complete (*OPC)
status
the
Output
*WAI
to
Assert
Queue
command, the
ccur.
o
SR
indicating
erations
op
where
state
metho
d
OUTPUT
sent
OUTPUT
sent
OUTPUT
is:
of
*OPC
(Service
Q
that
are
it
complete.
is
Request)
after the
aiting
w
@Mta;"*ESE
once
@Mta;"*SRE
once
@Mta;"*CLS;*OPC;"
This command instructs the module to send a \1" to the
complete.
of
aiting
w
is
the
are
to
indenitely
a sequence
assert
for
nev
this
needs
needs
HP-IB
only
only
SR
er
sync
structure
data
command
This
*OPC query
metho
This
indenitely
1;"
32;"
form
d
The
.
ma
is
has
receiv
when
result
y
sync
of
ed,
adv
the
sequence
!
!
erations
op
all
bus
the
in
hronization uses
dule
mo
the
tage
an
commands
of
command
This
command
This
Similar
an
for
commands
of
when
Q
in
eing
b
hronization
be
to
be
to
all
to
the
ev
a
REPEAT
UNTIL BIT (SPOLL(@Mta),6)=1
en
t
Note
1-22
\All op erations complete" is dened as 1) there is no trace in progress, and 2)
all remote commands have been parsed and processed.
Programming
Fundamentals
Data Transfer
The microwave transition analyzer represents trace data and non-trace data dierently.
For non-trace data, the microwave transition analyzer will send information backin
ASCII character co de as either text or numeric data. As an example of ASCII text, the
SWEEP:MODE query (SWE:MODE?) returns ASINjSINGjAUTOjTRIG as a response. As
an example of ASCII numeric data, the SWEEP:TIME RANGE query (SWE:TIME:RANG?)
returns a value X.XXEXX as a response.
Note
Some numeric responses are integers (for example, no decimal pointor
exponent).
For trace data, the microwave transition analyzer supp orts 16-bit binary, 32-bit binary,and
ASCII transfers (MSByte rst, LSByte last). Binary trace data is preceded by a header
to indicate that binary data is about to be received. The header is \#0" which indicates
indeterminate length binary data. When using the microwave transition analyzer via HP-IB,
the last data byte will have the EOI (END OR INTERRUPT) status line asserted with it.
Listed
BASIC example
HP
an
is
w
elo
b
program that
reads trace
data
e
v
a
w
micro
the
from
transition analyzer.
OUTPUT
ENTER
J=1
FOR
ENTER
NEXT
@Mta;"WAV:DATA?"
@Mta
TO
@Mta
USING
Points
"#,2A";Header$
USING
J
"#,W";Value(J)
Request
!
Read
!
Read
!
trace data.
header.
the
point.
each
Programming
Fundamentals
1-23
2

Language Reference Information

Introduction
This chapter contains organization and syntax information for the microwave transition
analyzer commands. The programming commands are divided into three types: common
commands, top-level commands, and subsystem commands. A command syntax summary is
shown at the beginning of each subsystem.
The commands or queries of each subsystem are listed in alphabetical order according to their
mnemonics. A syntax diagram, parameter information, and functional description is provided
for each command; however if more detailed information regarding a command function is
e
v
a
w
ma
b
y
Micro
used
e
in
necessary
ransition
T
Note
refer
,
Analyzer
Chapter
to
Either
3,
Reference
longform
the
\Key
Man
Denitions"
ual.
shortform
or
in
the
sp
HP
elling
71500A/HP
command
the
of
70820A
programming.
subsystems
The
CQUIRE
A
BASIC
CALIBRA
TION
CHANNEL
CONFIGURE
DAC
DIAGNOSTICS
DISPLAY
FUNCTION
HISTOGRAM
LIMIT
MARKER
MASS
MEMORY
MEASURE
in the
denes
starts
reloads
con
ecies
sp
a
w
micro
measuremen
the instrumen
calibration
v
all
trols
the
transition
e
v
ertical
metho
analyzer
conditions.
t
calibration
t
data.
Y-axis
or
acquiring sla
dfor
are:
sequence,
functions
of
ve
retriev
the input
dules
mo
calibration
es
channels.
w
o
p
at
er
on.
data,
or
controls the 12-bit DAC output.
controls the screen format and howwaveforms, data, and text are displayed
on-screen.
trols
con
allows v
eform math
v
a
w
the
arious statistics of the input c
functions.
hannels or function to be measured.
controls masks for pass/fail testing.
controls the t
wo cursor mark
ers.
provides mass storage capabilities for the HP 70820A.
mak
es
arious
v
eform measuremen
v
a
w
ts.
MODULA
SOUR
CE
TOR
con
trols
the
ternal
in
pulse
generator.
Language
Reference
Information
2-1
PEAK POWER
METER
Available with Option H10 only.
controls the operation of the HP 70820A as a statistical peak power meter.
PROGRAM
RF PULSE
SECURE
SOURCE
STATUS
SWEEP
SYSTEM
TABLE
TRIGGER
WAVEFORM
WINDO
XLINE,
W
YLINE
Notation Conv
Pictorial
controls HP Instrument BASIC.
controls the various parameters relating to RF pulses.
provides a convenient metho d for destroying or blanking mo dule
information.
controls the conguration and settings of an external source.
accesses the non-IEEE 488.2 status structures for this instrument.
controls all horizontal or X-axis functions.
returns the state of the microwave transition analyzer system.
controls tabular data measurements.
denes and controls trigger conditions.
provides access to waveform data and determines trace parameters.
sp
pro
ecies
the
vides access
to line
markers.
e used.
to b
ws
windo
math
and
FFT
entions
functional
each
in
for
is,
shown;
command
the
either
ho
upp
er,
ev
w
sequence.
ercase
the
follo
The
subsystem
items enclosed
All
ercase
w
lo
or
minim
Items
um
enclosed b
wing
in
general
this
letters
um
n
guidelines
ual.
man
y
b
ma
of
er
b
rectangular b
ya
rounded
a
used)
e
b
y
haracters is
c
refer
en
to
elop
v
and
shown
indicate
ox
the
m
e
ust
pictorial
case
are
e
b
in upp
parameters
insensitiv
tered
en
ercase.
tax
syn
exactly as
diagrams
(that
e
used
description of each parameter is given in the resp ective command descriptions.
Command sequence items are connected by lines. Each line can be followed in only one
direction, as indicated by an arrow at the end of each line.
Any combination of command sequence items that can be generated by following the lines
proper
the
in
command
A
Textual
Notation
CAPITAL
LETTERS
tactically
syn
direction
sequence
is
item
optional
is
Capital letters are used to indicate the shortform of a command program
header that is
minimally required. Lo
correct.
there
if
is a
alid
v
path
around
it.
wercase letters indicate the longform
(complete spelling).
<>
Angular brackets are used to enclose elements of the language being dened.
\F
to
Refer
information
unctional
tained
con
Syn
within
tax
Con
these
v
en
brac
tions"
k
ets.
explanation
an
for
w
elo
b
of
A
2-2
Language
Reference
Information
Loading...
+ 854 hidden pages