beautypg.com

Ppoll, Ppoll -10 – Measurement Computing GPIB-488 User Manual

Page 78

background image

Chapter 4

GPIB 488.2 Library Reference

Programming Reference Manual

4-10

GPIB-488

Ppoll

Performs a parallel poll.

Syntax

C

PPoll(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

will contain the eight-bit result of the parallel poll. Each bit of the poll result contains

one bit of status information from each device which has been configured for parallel polls.
The value of each bit is dependent on the latest parallel poll configuration sent to the devices
through

PPollConfig

and the individual status of the devices.

ibsta

will contain a 16-bit status word as described in Appendix B,

IBSTA

.

iberr

will contain an error code, if an error occurred.

Usage notes

None.

Example

Parallel polls devices connected to board 0.

C

short result;

PPoll(0, &result);