2-38
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
addressList
: the list of the device addresses ended by
NOADDR
; the devices are
waiting to go to remote control mode
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB, ESAC
FindLstn
Description
This command finds listening devices on the GPIB bus. This function tests all primary
addresses in
padlist
as follows: if a device exists in a given
padlist
, the device
primary address is stored in
resultlist
. Otherwise, the function tests all the secondary
addresses of the primary ones, and stores the addresses of any finding devices.
ibcntl
includes the actual numbers of addresses stored in
resultlist
.
Syntax
Microsoft C/C++ and Borland C++
void FindLstn (int board_desc,
const Addr4882_t padList[], Addr4882_t resultList[],
int maxNumResults)
Visual Basic
call FindLstn (ByVal ud As Integer, padList ( )
As Integer, resultList ( ) As Integer,
ByVal maxNumResults As Integer)
Parameters
board_desc
: board ID
padList
: the list of the GPIB primary addresses ended by
NOADDR
resultList
: the list of all listening device addresses; the listening devices found
by
FindLstn
function
maxNumResults
: the maximum number of the resultList
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB, ETAB
FindRQS
Description
This command sequentially polls devices to determine which device is requesting
service; the resulting byte is returned in
ibcntl. ibcntl
contains the index of the device
requesting service in
addrList
. If no device is requesting service,
ETAB
and the index
of
NOADDR
are individually returned in
iberr
and
ibcntl
.
Syntax
Microsoft C/C++ and Borland C++
void FindRQS (int board_desc, const Addr4882_t addressList[],
short *result)
Visual Basic
call FindRQS (ByVal ud As Integer, addressList ( )
As Integer, result As Integer)
Parameters
board_desc
: board ID
addressList
: the list of the GPIB primary addresses ended by NOADDR
result
: the sequentially poll return byte of the device requesting service
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB, ETAB