
:PROGram[:SELected]:DEFinet <block>
Equivalent
K
ey
Sequence
P
arameter
Description
<block>
:
block
data
of
program
The
<block>
must
be
arbitrary
block
program
data
containing
the
lines
of
program
code
.
The
rst
line
of
<block>
must
be
a
header
,
which
shows
the
program
size
.
There
are
two
formats
for
the
header
as
follows:
#0
:
Allows
the
OUTPUT
statement
to
send
program
line
until
END
is
specied
in
the
OUTPUT
statement.
*
#NMM
.
.
.
.
M
:
Species
the
program
size
.
N
species
the
number
of
digits
that
dene
the
program
size
M .
.
.
.
M
is
program
size
in
byte
(N
digits)
Each
line
of
the
program
must
be
separated
by
<CR>
or
<CR>
<LF>.
When
the
size
of
the
<block>
exceeds
the
amount
of
available
memory
in
the
instrument,
the
program
lines
are
saved
up
to
the
point
of
memory
overow
.
In
the
response
to
the
DEFine
query
,
the
selected
program
and
its
size
are
returned.
The
selected
program
must
be
in
either
the
paused
or
stopped
state
for
the
program
to
be
uploaded.
The
<block>
is
uploaded
as
denite
length
arbitrary
block
response
data.
The
program
size
is
returned
in
the
rst
line
as
the
header
,
then
program
lines
are
returned.
Query
Response
f blockg
Examples
OUTPUT
@E5100;":PROG:DEF
#0"
OUTPUT
@E5100;"10
""HELLO!"""
OUTPUT
@E5100;"20
END"
OUTPUT
@E5100;"
"
END
DIM
A$[100000]
OUTPUT
@E5100;":PROG:DEF?"
ENTER
@E5100
USING
"%,2A";HEAD$
!
Gets
the
header
.
B=VAL(HEAD$[2])
!
FOR
I=1
TO
B
!
ENTER
@E5100
USING
"%,A";HEAD$
!
NEXT
I
!
ENTER
@E5100
USING
"-K";A$
!
Gets
the
program.
:PROGram[:SELected]:DELete[:SELected]
Deletes
the
program
in
the
B
ASIC
editor
of
the
analyzer
.
This
command
can
be
used
from
an
external
controller
only
.
(No
query)
Examples
OUTPUT
@E5100;":PROG:DEL"
8-112
Command
Reference
Summary of Contents for E5100A
Page 1: ...Agilent E5100A B Network Analyzer Programming Manual ...
Page 2: ......
Page 5: ...c Copyright 1995 1996 1997 1998 2000 2001 Agilent Technologies Japan Ltd ...
Page 8: ......
Page 36: ......
Page 46: ......
Page 48: ...Figure 3 1 Simpli ed Data Processing Flow 1 3 2 Data Processing and T ransfer ...
Page 58: ......
Page 76: ......
Page 112: ......
Page 232: ......
Page 246: ......
Page 250: ......
Page 299: ...110 END Waveform Analysis Commands D 49 ...
Page 302: ......
Page 322: ......
Page 350: ......
Page 352: ......
Page 362: ......
Page 368: ......
Page 372: ......