
Programming
Examples
Example
3:
Mark
er
Output
This
example
prin
ts
the
x-
and
y-axis
v
alues
of
a
marker
in
an
y
selected
domain
or
format.
A
single
sw
eep
with
a
v
eraging
(factor
of
4)
is
taken
b efore
reading
the
marker.
Then,
the
display
format
is
queried
and
appropriate
units
are
prin
ted
for
the
y
axis
v
alue.
Next,
the
x
axis
v
alue
is
read
and
the
selected
domain
is
queried
and
appropriate
units
are
prin
ted
for
the
x
axis.
If
the
system
is
curren
tly
op erating
in
either
the
hold
or
the
con
tinual
mo
de
(see
STIMULUS
men
u),
then
the
data
is
output
immediately;
if
SINGLE,
or
NUMBER
OF
GR
OUPS
has
b een
selected,
then
the
data
output
op eration
w
aits
un
til
the
sp ecied
n
um
b er
of
sw
eeps
has
nished.
F
or
example,
the
following
sequence
selects
the
linear
magnitude
p olar
display
,
turns
on
a
v
eraging,
and
commands
17
groups
of
sw
eeps.
When
nished,
marker
1
is
turned
on,
mov
ed
to
the
maximum
trace
v
alue,
then
the
marker
v
alue
is
assigned
to
the
v
ariables
Mag
and
Phase:
OUTPUT
@Nwa;"LINP;
AVERON
16;"
OUTPUT
@Nwa;"NUMG
17;
MARK1;
MARKMAXI;
OUTPMARK;"
ENTER
@Nwa;Mag,Phase
The
OUTPMARK;
statement
alwa
ys
transfers
t
w
o
v
alues
in
standard
ASCI I
format.
As
sho
wn
in
T
able
13-1 ,
the
v
alues
dep end
up on
the
curren
tly
selected
display
format.
Tw
o
v
alues
are
output
in
ev
ery
display
format,
but
for
Cartesian
displays
the
second
v
alue
is
zero.
T
able
13-1.
Mark
er
Units
for
All
display
Formats
F
ORMA
T
MARKER
Basic
Units
OUTPMARK
A,B
V
alue
LOG
MA
G
dB
dB,
0
PHASE
degrees
(
)
degrees,
0
DELA
Y
seconds
(s)
seconds,
0
SWR
(unitless)
SWR,
0
SMITH
CHAR
T
R
6
jX
()
ohms,
ohms
LINEAR
MA
GNITUDE
(unitless)
(reection)
(unitless)
(transmission)
lin
mag,
0
lin
mag,
0
LIN
mkr
on
POLAR
6
'
(reection)
6
(transmission
lin
mag,
degrees
lin
mag,
degrees
LOG
mkr
on
POLAR
dB
6
'
log
mag,
degrees
Re/lm
mkr
on
POLAR
x
6
jy
(unitless)
real,
imag
INVER
TED
SMITH
g
6
jB
Siemens,
Siemens
REAL
x
(unitless)
real,
0
IMA
GINAR
Y
jy
(unitless)
real,
0
Data
taken
in
step
sw
eep
mo
de
requires
only
one
group
of
sw
eeps
( NUMG
1;
or
SING; )
b ecause
eac
h
data
p oint
is
a
v
eraged
b efore
the
next
p oint
is
measured.
T
o
mov
e
the
marker
to
a
sp ecic
stim
ulus
v
alue,
include
a
n
umeric
v
alue
in
the
instruction.
The
following
sequence
mov
es
marker
1
to
the
data
p oint
closest
to
9.123456789
GHz,
then
transfers
the
marker
v
alue:
OUTPUT
@Nwa;"MARK1
9.123456789
GHz;
OUTPMARK;"
ENTER
@Nwa;Mag,Phase
13-20
GPIB
Programming
Summary of Contents for 8510C
Page 7: ...vii ...
Page 29: ......
Page 61: ......
Page 105: ...FORMAT Functions Figure 4 12 Format Function Block and Format Menu 4 26 Measurement Controls ...
Page 106: ...FORMAT Functions Figure 4 13 Format Selections 1 of 2 Measurement Controls 4 27 ...
Page 107: ...FORMAT Functions Figure 4 14 Format Selections 2 of 2 4 28 Measurement Controls ...
Page 122: ...PARAMETER Functions Figure 4 25 Redefine Parameter Menu Structure Measurement Controls 4 43 ...
Page 175: ......
Page 203: ......
Page 273: ......
Page 297: ......
Page 305: ......
Page 391: ......