2-12
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
ibcac
Description
This command sets the assigned GPIB board to be the active controller by setting the
ATN line
to enable. The GPIB board must be the CIC (controller in charge) before
calling
ibcac
. Use
ibsic
to set the board as the CIC. The board can take control
synchronously (1), asynchronously (2), or either (v). If either, the GPIB board tries to
create the ATN signal but does not terminate the data transfer (synchronous control is
tried first). If this fails, the board takes asynchronous control by immediately creating
the ATN signal without considering any current data transfer for asynchronous control.
Support Level
Board level
Syntax
Microsoft C/C++ and Borland C++
int ibcac(int ud, int synchronous)
Visual Basic
idcac (ByVal ud As Integer, ByVal v As Integer) As
Integer
- or -
call ibcac (ByVal ud As Integer, ByVal v As Integer)
Parameters
ud
: board unit descriptor
v
: either synchronous or asynchronous control
0: asynchronously
1: synchronously
Return Value
The value of the
ibsta
Error Codes
EARG, ECIC, EDVR, EOIP, ENEB
ibclr
Description
This command sends the
GPIB Selected Device Clear
(SDC) message to the
assigned device.
Support Level
Device level
Syntax
Microsoft C/C++ and Borland C++
int ibclr (int ud)
Visual Basic
idclr (ByVal ud As Integer) As Integer
- or -
call ibclr (ByVal ud As Integer)
Parameters
ud
: device unit descriptor
Return Value
The value of the
ibsta
Error Codes
EARG, EBUS, ECIC, EDVR, EOIP, ENEB