Download NI-488.2M Software Reference Manual

Transcript
Chapter 4
NI-488.2M Software Characteristics and Routines
PPollConfig (3)
PPollConfig (3)
Purpose:
Configure a device for parallel polls.
Syntax:
void PPollConfig (int board, Addr4882_t address, int
dataline, int sense)
board specifies a board number. The GPIB device at address is
configured for parallel polls according to the dataline and sense
parameters. dataline is the data line (1-8) on which the device is to
respond , and sense indicates the condition under which the data line is to
be asserted or unasserted. The device is expected to compare this sense
value (0 or 1) to its individual status bit, and respond accordingly.
Devices have the option of configuring themselves for parallel polls, in
which case they are to ignore attempts by the Controller to configure them.
You should determine whether the device is locally or remotely
configurable before using PPollConfig or PPollUnconfig.
Example:
Configure a device connected to board 0 at address 8 so that it responds
to parallel polls on data line 5 with sense 0 (assert the line if the
individual status is 0, unassert the line if the individual status is 1).
PPollConfig (0, 8, 5, 0);
© National Instruments Corp.
4-17
NI-488.2M Reference Manual