
KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-19
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
ibfind
Description
This command opens and initializes the GPIB board descriptor. The returned board
descriptor can be used in later commands. Similar to
ibonl
1,
ibfind
performs a board
description initialization. Before the board is put offline by using
ibonl
0, the descriptor
that is returned by
ibfind
is valid; -1 is returned if
ibfind
is unable to get a valid
descriptor. At the same time, the
ERR
bit of the
ibsta
and the
EDVR
bit of the
iberr
are set.
Support Level
Board level
Syntax
Microsoft C/C++ and Borland C++
int ibfind (const char *boardname)
Visual Basic
ibfind (ByVal boardname As String) As Integer
- or -
call ibfind (ByVal boardname As String, ud As
Integer)
Parameters
boardname
: board name; for example, gpib0
Return Value
The board descriptor or -1
Error Codes
EBUS, ECIC, EDVR, ENEB
ibgts
Description
This command sets the board from active control status to standby control status.
ibgts
sets the GPIB board as the standby control unit and releases the control of the
GPIB ATN
line.
Support Level
Board level
Syntax
Microsoft C/C++ and Borland C++
int ibgts (int ud, int shadow_handshake)
Visual Basic
ibgts (ByVal ud As Integer, ByVal v As Integer)
As Integer
- or -
call ibgts (ByVal ud As Integer, ByVal v As Integer)
Parameters
ud
: board descriptor
v
: determines whether to handshake with receiver
Return Value
The value of the
ibsta
Error Codes
EADR , EARG, ECIC, EDVR, ENEB, EOIP