KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-39
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
PassControl
Description
This command sends the
Take Control (TCT) GPIB message
to the device for
passing control to another GPIB device with control capability. The device changes to
Controller-In-Charge (CIC) status when the interface is no longer CIC status.
Syntax
Microsoft C/C++ and Borland C++
void PassControl (int board_desc, Addr4882_t address)
Visual Basic
call PassControl (ByVal board_desc As Integer,
ByVal address As Integer)
Parameters
board_desc
: board ID
address
: the list of the GPIB primary addresses ended by
NOADDR
Error Codes
EAGR, EBUS, ECIC, EDVR, EOIP, ENEB
PPoll
Description
This command performs parallel polling one time. The board sends a command to all
devices (see
PPollConfig
and
PPollUnconfig
). The controller can simultaneously
obtain one-bit status messages relayed from up to eight devices when parallel polling
is performed.
Syntax
Microsoft C/C++ and Borland C++
void PPoll (int board_desc, short *result)
Visual Basic
call PPoll (ByVal board_desc As Integer,
result As Integer)
Parameters
board_desc
: board ID
result
: the result of the parallel polling
Error Codes
EBUS, ECIC, EDVR, EOIP, ENEB
PPollConfig
Description
This command controls or releases the GPIB data line to configure the device to
respond to parallel polling. If
lineSense
is equal to the ist bit of the device, the
assigned GPIB data line is controlled in a parallel polling duration. Otherwise, the
assigned data line is not controlled in a parallel polling duration. The controller can
simultaneously obtain one-bit status messages related with it from up to eight devices
by a parallel polling.
Syntax
Microsoft C/C++ and Borland C++
void PPollConfig (int board_desc, Addr4882_t address,
int dataLine, int lineSense)
Visual Basic
call PPollConfig (ByVal ud As Integer,
ByVal address As Integer, ByVal dataLine As Integer,
ByVal lineSense As Integer)