PPoll

NI-488.2

PPoll


Purpose

Perform a parallel poll on the GPIB.

Format

C

void PPoll (int boardID, short *result)

Visual Basic

CALL PPoll (boardID%, result%)

Interactive Control (Usage Notes)

PPoll

Input

boardID The interface number

Output

result The parallel poll result

Description

PPoll conducts a parallel poll and the result is placed in result. Each of the eight bits of result represents the status information for each device configured for a parallel poll. The interpretation of the status information is based on the latest parallel poll configuration command sent to each device (see PPollConfig and PPollUnconfig). The Controller can use parallel polling to obtain one-bit, device-dependent status messages from up to eight devices simultaneously.

For more information about parallel polling, refer to the Parallel Polling Overview.

Possible Errors

EARG result does not point to a valid memory location.
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.