National Instruments GPIB-MAC User Manual page 99

Table of Contents

Advertisement

November 1985
wrt - Write Data *
Syntax:
wrt [#count][alist]<CR>
Purpose:
You use
Remarks:
The argument count is a numeric string preceded by a
number sign (#). The string specifies a number between
1 and 65535 and must not contain a comma.
specifies the number of data bytes to send. The number
of data bytes must not include the carriage return that
indicates the end of the programming message.
The argument
are transferred without any translation to the GPIB.
The argument
commas or spaces.
than one address is given).
A device address consists of a primary address and an
optional secondary address. The secondary address is
separated from the primary address by a plus sign (+).
Only the lower five bits of each address are significant.
These bits may be in the range from 0 through 30 for
both the primary and the secondary address. Therefore,
the binary value 01100010 (decimal 98) is interpreted as
decimal 2.
The following examples all specify a primary address of
0 and a secondary address of 2. The listen address is
32, the talk address is 64, and the secondary address is 2
or 98, which are equivalent.
SECTION FOUR - FUNCTIONS
88
wrt
to send data over the GPIB.
data
is a string of 8-bit characters which
is a list of
addrs are
addrs
separated by
addresses that specify the
#count

Advertisement

Table of Contents
loading

Table of Contents