Keithley IE-488 Manual page 20

Table of Contents

Advertisement

GPIB
IEEE488
MANUAL
USER
COMMANDS
4.0
USER
COMMANDS
The following
user
commands
are
available.
The string
variable
COHHAND$
is the
same string
format
as described
in the
IBM-PC
BASIC
manual.
A typical
command
string
would
be as
follows.
Please
note
that
all
commands must be assigned
in string
form before
using
the CALL statement.
COMMAND$=
"OUTPUT 03.13.20,05[WD#,2,201"
This
command string
would
output
integer
words
(16 bit)
two thru
and including
word 20 to device
primary
address
03 with
secondary
addresses
13 and 20 and also
to device
primary
address
05. The
data
transfer
uses
the
DMA
(SEE APPENDIX
A) mode
for
fast
access.
The device
codes
must be in decimal
within
the range
of
00 to 30. This
allows
the
user
a maximum of 31 device
addresses
to choose
from.
However
the maximum number
of devices
which
may
physically
be connected
to the bus is
15.
The transfer
of
String
data
is
limited
to
single
element
arrays
and must be initialized.
The Maximum string
size
is
255 bytes
as
defined
in
the
IBM-PC
Basic
manual.
The user
may transfer
a
string
inside
of an array
such as VAR$(2,3),
which
would
transfer
the
string
data
contents
of array
element
(2,3).
An error
code of
&H7000 will
be returned
in the FLAG% variable
if
the
stringarray
element
is not
initialized.
EXAMPLES OF LEGAL STRING DATA TRANSFER:
xxx10 COMMANDS = "OUTPUT ll.Ol[$E+,9,22]"
xxx20 VAR$(2,8)
="THIS
IS ARRAY ELEMENT 2,8"
xxx30 CALL IE488
(COMMANDS, VAR$(~,~),
FLG%, BRD%)
This
command will
output
the bytes
"ARRAY ELEMENT" then
return
to
the user program.
xx100 VAR$(l)
= "This
is a single
array
element"
xx110 CALL IE488
(COMMANDS, VAR$(l),
FLG%, BRD%)
This
command will
output
the bytes
' single
ar"
then
return
to
the user
program.
xx200 COMMANDS = "OUTPUT ll.Ol[$E,22,9]"
xx210 VAR$ = "THIS
IS ALSO A SINGLE ARRAY TEST"
xx220 CALL IE488
(COMMANDS, VAR$, FLG%, BRD%)
This
example
will
output
the
bytes
"NIS A OSLA" i.e
backwards,
then
return
to the
user
program.
Page 14

Advertisement

Table of Contents
loading

Table of Contents