Ibsad, Ibsad -43 – Measurement Computing GPIB-488 User Manual
Page 56

Chapter 3
GPIB 488.1 Library Reference
GPIB-488
3-43
IBSAD
Assigns/unassigns a secondary address to a board or device.
Syntax
C
ibsad (int boarddev, int address)
Parameters
boarddev
is an integer containing device or board handle.
address
represents the secondary address. If
address
= 0 or
address
= 7F hex, secondary
addressing is disabled. If
address
is a legal secondary address (60 to 7E hex), the new
secondary address is temporarily assigned to the board/device. The new secondary address is
used until it is either redefined by calling
ibsad
again, the device/board is re-initialized by
calling
ibfind
or
ibonl
, or the program is restarted.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurs. Contains the previously assigned
secondary address if no error occurs.
Usage Notes
See also
ibpad
.
Example
This example assigns the secondary address 7 (MSA7, hex 67) to a device at PAD 5.
C
int dev5;
dev5 = ibdev (0,5,0,13,1,0);
ibsad (dev5, 0x67);