WaitSRQ

NI-488.2

WaitSRQ


Purpose

Wait until a device asserts the GPIB Service Request (SRQ) line.

Format

C

void WaitSRQ (int boardID, short *result)

Visual Basic

CALL WaitSRQ (boardID%, result%)

Interactive Control (Usage Notes)

WaitSRQ

Input

boardID The interface number

Output

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

Description

WaitSRQ waits until either the GPIB SRQ line is asserted or the timeout period has expired (see ibconfig, option IbcTMO). When WaitSRQ returns, result contains a non-zero if SRQ is asserted. 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 able to detect the state of the SRQ line because it is not the Controller-In-Charge.
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.