Passcontrol, Passcontrol -9 – Measurement Computing GPIB-488 User Manual
Page 77

Chapter 4
GPIB 488.2 Library Reference
GPIB-488
4-9
PassControl
Makes another device the Active Controller.
Syntax
C
PassControl(int board, short address)
Parameters
board
is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
address
is an integer representing the GPIB address of the device that is to become the
controller. The low byte of the integer contains the device's primary GPIB address. The high
byte of the address contains the device's secondary GPIB address. If the device has no
secondary address, the high byte of
address
is 0.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred.
Usage Notes
When this routine is executed, the GPIB
Take Control
(TCT) command is issued. This
forces the Active Controller to pass control to the device at the specified address. This device
must have Controller capability.
Example
This example would make the device connected to Board 0 and whose GPIB address is 6 the
Active Controller.
C
PassControl(0, 6);