
Getting
Data
from
the
Analyzer
T
o
get
a
data
from
the
analyzer
using
the
binary
transfer
method,
the
following
procedure
is
used:
1.
Assign
a
binary
data
path.
(Specifying
format
o.)
2.
Specify
the
data
transfer
format
as
binary
.
3.
Dene
a
data
array
that
is
the
same
size
as
the
data
that
will
be
retrieved.
4.
Send
the
data
query
command.
5.
Retrieve
the
data
header
.
6.
Retrieve
the
data.
7.
Retrieve
the
terminator
.
8.
Set
the
transfer
format
to
ASCII
mode
if
binary
transfer
is
nished.
The
binary
data
is
sent
in
a
mixed
format
of
an
ASCII
header
and
a
binary
data
body
as
shown
in
Figure
3-4
and
Figure
3-5.
T
o
retrieve
data
correctly
,
you
must
retrieve
the
data
header
and
data
itself
independently
.
The
following
is
a
sample
module
for
receiving
data
using
the
IEEE
64-bit
format:
ASSIGN
@Dt
TO
800;FORMAT
OFF
Binary
path
must
turn
o
the
formatting.
Use
717
instead
of
800
for
the
external
controller
.
OUTPUT
@E5100;"FORM3"
Specify
the
format
as
IEEE
64-bit
format.
DIM
Dat(1:201,1:2)
A
ssume
that
the
receiving
data
size
is
20122.
OUTPUT
@E5100;"OUTPDATA?"
Query
the
data
trace
array
.
ENTER
@E5100
USING
"#,8A";Header$
Data
header
is
8
byte
character
.
ENTER
@Dt;Dat(*)
R
eceiving
data
via
binary
path.
ENTER
@E5100;End$
R
eading
terminator
.
OUTPUT
@E5100;"FORM4"
Set
ASCII
mode
if
binary
transfer
is
nished.
Module
3-8.
Getting
Data
from
Analyzer
Using
Binary
Transfer
Note
Binary
data
transfer
to
the
analyzer
is
not
allowed.
Use
ASCII
transfer
for
sending
data
to
the
analyzer
.
Related
GPIB
Commands
The
following
commands
are
used
to
specify
the
data
transfer
format.
FORM2
Selects
IEEE
32-bit
oating
point
format.
FORM3
Selects
IEEE
64-bit
oating
point
format.
FORM4
Selects
ASCII
format.
FORM5
Selects
MS-DOS
format.
3-10
Data
Processing
and
T
ransfer
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: ......