
2-40
Return to
KPCI-488LPA-900-01 Rev. A / December 2008
Section 2: NI Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Parameters
board_desc
: board ID
address
: the device address of the device is waiting to be configured.
dataLine
: data line on which the device responds to parallel polling; its range is from 1
to 8.
lineSense
: senses the parallel polling response; its value is either 0 or 1.
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB
PPollUnConfig
Description
This command un-configures the devices to respond to parallel polling. If there is only
constant
NOADDR
in the address list, addrlist, the
Parallel Poll
Un-configure (PPU)
GPIB
message is sent to all GPIB devices. The devices
un-configured by this function will not be included in the following parallel polling.
Syntax
Microsoft C/C++ and Borland C++
void PPollUnconfig (int board_desc,
const Addr4882_t addressList[])
Visual Basic
call PPollUnconfig (ByVal ud As Integer,
addressList ( ) As Integer)
Parameters
board_desc
: board ID
addressList
: the list of the device addresses ended by
NOADDR
Error Codes
EAGR, EBUS, ECIC, EDVR, EOIP, ENEB
RcvRespMsg
Description
This command reads data from a device. The
RcvRespMsg
function assumes that
the interface is in the listen-active status and addresses a device as a talker. The
function reads data continuously, until either "count" data have been read or the
terminal condition is detected. If the terminal condition is
DTOPend
, the reading
action is stopped and the
EOI
line is set to enable while the
STOPend
is received.
Otherwise, the reading action is stopped while the eight-bit
EOS
character is detected.
Returns the actual number of transferred bytes in the global variable,
ibcntl
.
Syntax
Microsoft C/C++ and Borland C++
void RcvRespMsg (int board_desc, void *buffer,
long count, int termination)
Visual Basic
call RcvRespMsg (ByVal ud As Integer, buf As String,
ByVal termination As Integer)
Parameters
board_desc
: board ID
buffer
: the buffer for storing the read data
count
: the number of read bytes
termination
: the description of the data termination mode
Error Codes
EABO, EADR, EARG, ECIC, EDVR, EOIP, ENEB