
2-24
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
ibpad
Description
This command sets a board or a device primary GPIB address.
Support Level
Board / device level
Syntax
Microsoft C/C++ and Borland C++
int ibpad (int ud, int v)
Visual Basic
ibpad (ByVal ud As Integer, ByVal v As Integer)
As Integer
- or -
call ibpad (ByVal ud As Integer, ByVal v As Integer)
Parameters
ud
: board or device descriptor
v
: the GPIB primary address (the valid range is 0 to 30)
Return Value
The value of the
ibsta
Error Codes
EARG, EDVR, ENEB, EOIP
ibsad
Description
This command sets or disables a board or device secondary GPIB address.
Support Level
Board / device level
Syntax
Microsoft C/C++ and Borland C++
int ibsad (int ud, int v)
Visual Basic
ibsad (ByVal ud As Integer, ByVal v As Integer)
As Integer
- or -
call ibsad (ByVal ud As Integer, ByVal v As Integer)
Parameters
ud
: board or device descriptor
v
: Set or disable the GPIB secondary address. If
v
is zero, the secondary address is
disabled. If
v
is non-zero, the secondary address is enabled with a secondary address
valid range of 96 to 126 (0x60 to 0x7E).
Return Value
The value of the
ibsta
Error Codes
EARG, EDVR, ENEB, EOIP
ibpct
Description
This command passes Controller-in-Charge (CIC) status to another GPIB device that
has controller capability. The interface automatically releases the
ATN line
and goes
to Controller Idle Status (CIDS).
Support Level
Device level