Chapter 4
Programming in S Mode
© National Instruments Corp.
4-3
GPIB-232CT User Manual
name is shown in
boldface
in the function tables and in the syntax portions
of the function descriptions.
Function Argument Delimiters
When you type in a function, separate the first argument from the function
name with at least one space. Separate each additional argument with at
least one space or a comma.
In the syntax portions of the function descriptions in Chapter 5, the
information within the square brackets (
[]
) are optional. If you want to
include optional information, do not type the brackets, only the information
inside the brackets.
Abbreviations for Arguments
The function descriptions in Chapter 5 use abbreviations for some
arguments. They are as follows:
addr
a GPIB address
alist
one or more
addrs
bool
a boolean value:
1 = true, on, or enable
0 = false, off, or disable
GPIB Address
Each device on the GPIB has a GPIB address. The GPIB-232CT's address
is 0 at power on and can be changed using the
caddr
function. Refer to
the manuals of your GPIB devices to learn their addresses. You will need
to know these when you begin to program the GPIB-232CT.
Only the lower five bits of each GPIB address are significant. These bits
can be in the range from 0 through 30 for both the primary and the
secondary address. For example, 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. A plus sign (
+
) separates the primary address from the
secondary address. The listen address is 32 (primary address plus 32), the