Ibrsv, Ibrsv -42 – Measurement Computing GPIB-488 User Manual
Page 55
Chapter 3
GPIB 488.1 Library Reference
3-42
GPIB-488
IBRSV
Changes the serial poll response byte.
Syntax
C
ibrsv (int board, int statusbyte)
Parameters
board
is an integer containing the board handle.
statusbyte
represents the serial poll response byte of the GPIB Interface Board. The serial
poll response byte is system-specific, with the exception of bit 6 (hex 40). If bit 6 (hex 40) is
set, then the SRQ line is asserted to indicate to the Controller-In-Charge that the board is
requesting service.
Returns
ibsta
will contain a 16-bit status word as described in Appendix B,
.
iberr
will contain an error code, if an error occurred. If no error occurs,
iberr
will contain
the previous value of
statusbyte
.
Usage Notes
This routine is used when the specified GPIB Interface Board is not the Controller-In-Charge.
It can be used to request service (set bit 6 of the serial response byte) from the
Controller-In-Charge or to change the value of GPIB Interface Board's serial poll response
byte.
Example
This example sets the GPIB Interface Board 1 serial poll status byte to 41 hex (assert SRQ)
which indicates that the board requires service.
C
int gpib1;
gpib1 = ibfind ("gpib1");
ibrsv (gpib1, 0x41);