beautypg.com

Ppollconfig, Ppollconfig -11 – Measurement Computing GPIB-488 User Manual

Page 79

background image

Chapter 4

GPIB 488.2 Library Reference

GPIB-488

4-11

Programming Reference Manual

PPollConfig

Configures a device for parallel polls.

Syntax

C

PPollConfig(int board, short address, int

dataline, int sense)

Parameters

board

is an integer which identifies the GPIB board to be used for this operation. In most

applications, this value is 0.

address

is the address of the GPIB device to be configured for a parallel poll.

dataline

specifies which data line (1-8) the device uses to respond to a parallel poll.

sense

can be 1 or 0, specifying the condition under which the data line is to be

asserted/unasserted. The device compares this value to its Individual Status Bit (IST) and then
responds accordingly. For example, if

sense

= 0 and the device asserts the specified data line

if its IST bit = 0 and unassert the data line if its IST bit = 1.

Returns

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

Remember that if a device is locally configured for a parallel poll, the Controller's parallel poll
configuration instruction is ignored.

Example

Configures the device connected to board 0 at address 6 to respond to parallel polls on line 7
with sense 1. The device asserts line 7 if its IST bit = 1, and unasserts line 7 if IST = 0.

C

PPollConfig(0, 6, 7, 1)