![Agilent Technologies Agilent 4396B Скачать руководство пользователя страница 86](http://html.mh-extra.com/html/agilent-technologies/agilent-4396b/agilent-4396b_gpib-programming-manual_2867995086.webp)
c
b
480
END
SELECT
490
Xfr_done=XBlock_size
500
!
510
ALLOCATE
Dat$[Block_size]
520
!
530
Img$="#,"&VAL$(Block_size)&"A"
540
ENTER
@Src_file
USING
Img$;Dat$
550
!
560
Img$="8A,ZZZZZZ,"&VAL$(Block_size)&"A"
570
OUTPUT
@Hp4396
USING
Img$;"WRITE
#6",Block_size,Dat$,END
580
DEALLOCATE
Dat$
590
IF
FNCheck_error(@Hp4396,"
<CPTI:
write>")=-1
THEN
SUBEXIT
600
END
LOOP
610
SUBEND
620
!
630
!
Instrument
Error
Check
640
!
650
DEF
FNCheck_error(@Hp4396,Str$)
660
DIM
Err$[64]
670
OUTPUT
@Hp4396;"OUTPERRO?"
680
ENTER
@Hp4396;Err$
690
IF
Err$"+0,""No
error"""
THEN
700
"ERROR:
";Str$;"
";Err$
710
RETURN
-1
720
ELSE
730
RETURN
0
740
END
IF
750
FNEND
Figure
11-8.
Sample
Program:
File
Transfer
from
External
Controller
to
4396B
(2/2)
Lines
80
to
180
accept
the
entry
of
the
source
le
name
and
its
size
and
the
destination
le
name
.
Line
200
calls
the
subprogram
to
transfer
a
le
from
the
external
controller
to
the
4396B .
Lines
340
to
350
prepare
for
writing
the
le
to
the
destination
storage
device
.
Lines
390
to
480
calculate
the
length
of
the
data
that
has
not
been
transferred
based
on
the
source
le
size
previously
entered
and
the
length
of
the
data
that
has
been
already
transferred.
If
the
length
of
the
remaining
data
does
not
exceed
16
Kbytes
,
it
is
set
as
the
transfer
data
length;
otherwise
,
16
Kbytes
is
set
as
the
transfer
data
length.
Note
that,
if
the
length
of
the
data
not
transferred
is
0
at
this
time
,
the
transfer
process
is
terminated.
Lines
530
to
540
read
data,
whose
amount
is
specied
by
the
transfer
data
length,
from
the
source
le
.
Lines
560
to
570
write
data
to
the
destination
le
in
the
xed
length
block
format
(see
Figure
11-8).
The
maximum
length
of
data
transferred
at
a
time
is
16
Kbytes
.
Therefore
,
if
the
size
of
the
source
le
is
greater
than
16
Kbytes
,
the
transfer
routine
,
lines
390
to
590,
is
repeated
until
transferring
all
of
the
data
is
completed.
Lines
650
to
750
provide
a
function
to
check
that
no
error
has
occurred
in
the
4396B .
Note
T
o
transfer
a
le
from
the
external
storage
device
to
the
4396B,
you
must
check
the
le
size
(number
of
bytes)
in
advance
.
11-14
Using
Application
Programs
Содержание Agilent 4396B
Страница 12: ...Tables A 1 Manual Changes by Serial Number A 1 A 2 Manual Changes by Firmware Version A 1 Contents 6 ...
Страница 32: ......
Страница 52: ......
Страница 68: ......
Страница 72: ......
Страница 92: ......
Страница 96: ......
Страница 99: ...Agilent 4396B Network Spectrum Impedance Analyzer Using Instrument BASIC with the 4396B Printed in JAPAN ...
Страница 100: ...c Copyright 1997 2000 2001 2003 Agilent Technologies Japan Ltd ...
Страница 116: ......
Страница 126: ......
Страница 130: ......
Страница 138: ......
Страница 148: ......
Страница 163: ...C The Keyboard Mini DIN keyboard is following key layout Figure C 1 mini DIN Keyboard The Keyboard C 1 ...
Страница 176: ......