Example
Commands
EXECUTE
"SING"
EXECUTE
"ANAOCH1"
Semantics
Handling
GPIB
command
parameters
and
a
query
command's
return
value
when
an
GPIB
command
is
executed
by
the
execute
command:
T
o
transfer
GPIB
command
parameters
,
use
a
WRITEIO
command.
This
command
must
be
executed
before
the
EXECUTE
command.
One
WRITEIO
command
is
required
to
transfer
one
parameter
.
F
or
example
,
to
transfer
two
ANARANGE
command
parameters
to
the
EXECUTE
command,
write
the
program
as
follows:
WRITEIO
8,0;
100E6
WRITEIO
8,1:
200E6
EXECUTE
"ANARANG"
T
o
receive
a
query
command's
return
value
,
use
a
READIO
function.
The
READIO
function
returns
only
one
specied
return
value
.
F
or
example
,
four
return
values
(Za ,
Fa ,
Zr ,
and
Fr )
of
the
query
command
OUTPRESO?
must
be
received
by
writing
the
program
as
follows:
EXECUTE
"OUTPRESO?"
Za=READIO(8,0)
Fa=READIO(8,1)
Zr=READIO(8,2)
Fr=READIO(8,3)
GPIB
Commands
that
work
dierently
when
executed
by
the
EXECUTE
command:
When
the
following
GPIB
command
is
executed
by
the
EXECUTE
command,
it
works
dierently
than
when
it
is
executed
by
the
OUTPUT
command.
SING
The
4396B
executes
EXECUTE
"SING"
to
sweep
once
.
Execution
of
the
next
statement
is
suppressed
until
the
sweep
is
completed.
Therefore
,
the
completion
of
the
sweep
need
not
be
supervised
using
a
status
register
.
BASIC
Commands
Specic
to
4396B
B-5