TestSRQ

NI-488.2

TestSRQ


Purpose

Determine the current state of the GPIB Service Request (SRQ) line.

Format

C

void TestSRQ (int boardID, short *result)

Visual Basic

CALL TestSRQ (boardID%, result%)

Interactive Control (Usage Notes)

TestSRQ

Input

boardID The interface number

Output

result State of the SRQ line: non-zero if the line is asserted, zero if the line is not asserted

Description

TestSRQ returns the current state of the GPIB SRQ line in result. If SRQ is asserted, result contains a non-zero value. Otherwise, result contains a zero. Use TestSRQ to get the current state of the GPIB SRQ line. Use WaitSRQ to wait until SRQ is asserted.

Possible Errors

ECIC The interface is not the Controller-In-Charge; see SendIFC.
EDVR The NI-488.2 driver is either configured incorrectly or is not properly installed.
EHDL boardID is out of range.
ELCK The requested operation could not be performed because of an existing lock by another process.
ENEB The interface is not installed or is not properly configured.
EOIP Asynchronous I/O is in progress.