How Messages Are Processed; Function Names - National Instruments GPIB-MAC User Manual

Table of Contents

Advertisement

November 1985
The cmd
and
string which may contain 7- or g-bit data
Example ef 1~ ProFamming Message with Data String
The following lines of BASIC code:
contain the function name
write to the device at primary address 2.
on the GPIB. In this case, a <CR> is automatically sent by BASIC
following each print string, so, again, it is not necessary to include it
here.

How Messages are Processed

The GPIB-MAC processes a programmin g message on a line-by-
line basis. The GPIB-MAC buffers the entire message, interprets
the function name and arguments, then executes the message.
The data portions of the
on a line-by-line basis. The data immediately following a wrt and a
cmd are
sent directly to the GPIB.

Function Names

The function names have been selected to indicate each function's
purpose, thereby making your programs easy to understand.
However, if you wish to reduce some overhead in your program
and do not mind giving up these advantages, you may use only as
much of the function name as is necessary to distinguish it from
other functions. This abbreviated form of the function name is
boldface in the
shown in
of the function descriptions.
SECTION THREE - PROGRAMMING THE GPIB-MAC
18
wrt
programming messages are followed by a data
PRINT # 1,
PRINT #l, 'TN;CI;"
wrt, the
wrt
and
function tables and in the syntax portions
argument 2, and the data string
cmd
functions are not processed

Advertisement

Table of Contents
loading

Table of Contents