Testsrq, Testsrq -26 – Measurement Computing GPIB-488 User Manual
Page 94
Advertising

Chapter 4
GPIB 488.2 Library Reference
4-26
GPIB-488
TestSRQ
Evaluate state of SRQ line.
Syntax
C
TestSRQ(int board, short *result)
Parameters
board
is an integer which identifies the GPIB board to be used for this operation. In most
applications, this value is 0.
Returns
result
is equal to 1 if the GPIB SRQ line is asserted.
result
= 0 if the GPIB SRQ line is
unasserted.
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
TestSRQ
will not alter the state of the SRQ line.
Example
This example tests to see if SRQ is asserted.
C
Short result;
TestSRQ (0, &result);
if (result == 1)
{ /* SRQ is asserted */}
else
{ /* No SRQ at this time */}
Advertising