FindRQS

NI-488.2

FindRQS


Purpose

Determine which device is requesting service.

Format

C

void FindRQS (int boardID, const Addr4882_t *addrlist, short *result)

Visual Basic

CALL FindRQS (boardID%, addrlist%(), result%)

Interactive Control (Usage Notes)

FindRQS addrlist

Input

boardID The interface number
addrlist List of device addresses that is terminated by NOADDR

Output

result Serial poll response byte of the device that is requesting service

Description

FindRQS serial polls the devices described by addrlist, in order, until it finds a device which is requesting service. The serial poll response byte is then placed in result. Ibcnt contains the index of the device requesting service in addrlist. If none of the devices are requesting service, the index corresponding to NOADDR in addrlist is returned in Ibcnt and ETAB is returned in Iberr. For more information about serial polling, refer to the Serial Polling Overview.

Possible Errors

EARG An invalid address appears in addrlist; Ibcnt is the index of the first invalid address in the addrlist array.
EBUS No devices are connected to the GPIB.
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.
ETAB None of the devices in addrlist are requesting service or addrlist contains only NOADDR. Ibcnt contains the index of NOADDR in addrlist.