National Instruments GPIB-MAC User Manual page 42

Table of Contents

Advertisement

November 1985
caddr -
Change GPIB Address of the GPIB-MAC
Initialization function
Syntax:
Purpose:
You use caddr at the beginning of your program to
change the GPIB address of the GPIB-MAC.
Remarks:
The argument addr is a device address that specifies the
new GPIB address for the GPIB-MAC. 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 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.
If you specify a primary address without a secondary
address, secondary addressing is disabled.
If you call caddr without an argument, the GPIB-MAC
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 -MAC.
31
SECTION FOUR - FUNCTIONS

Advertisement

Table of Contents
loading

Table of Contents