November 1985
National Instruments
Section Four Functions
This section contains descriptions of functions which you use to
program the GPIB-MAC. These functions are in alphabetical order
and are formatted to provide you a handy reference.
Points to Remember
1. The programming examples for each function description are in
Microsoft BASIC version 2.0.
2. In the syntax portion of the function descriptions, arguments
enclosed in brackets are optional. Do not enter the brackets as
part of your argument.
3. Terminate each programming message with a
return
(<CR>), a
or a carriage return followed by a
The terminator is denoted by
in
the syntax portions of the function descriptions. In the program-
ming examples, the BASIC PRINT # statement automatically
sends a carriage return at the end of the string, so a carriage
return is not placed there explicitly.
4. To send more than one programming message per PRINT
statement, embed a
(denoted by
13)) or
(denoted by CHR$( 10))in the statement. For example, to send
the two programming messages “send interface clear” and “send
remote enable,” you could use either of these two sequences:
PRINT
PRINT
1”
or
5.
PRINT # 1
1”
For all examples, the communications port has been assigned to
file number 1
by the BASIC OPEN
statement.
27
SECTION FOUR FUNCTIONS