S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-4
© National Instruments Corp.
caddr - Change the GPIB Address of the
GPIB-232CT
Type:
Initialization
function
Syntax:
cad
dr [addr]
<CR>
Purpose:
You
use
caddr
at the beginning of your program to change
the GPIB address of the GPIB-232CT.
Remarks:
The
argument
addr
is a device address that specifies the new
GPIB address for the GPIB-232CT.
addr
consists of a
primary address and an optional secondary address. The
secondary address is separated from the primary address by a
plus sign (
+
). Both addresses are expressed as numeric
strings.
Only the lower five bits of each address are significant. These
bits can 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.
0+2
or
0+98
or
32+98
or
0+\x62
If you specify a primary address without a secondary address,
secondary addressing is disabled.
If you call
caddr
without an argument, the GPIB-232CT
returns to you its current GPIB address.
The address assigned by this function remains in effect until
you call
caddr
again, call
onl
, or you turn off the
GPIB-232CT.
The power-on default is 0 with secondary addressing disabled.