2-14
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
Syntax
Visual Basic
idcmda (ByVal ud As Integer, ByVal buf As String,
ByVal cnt As Long) As Integer
- or -
call ibcmda (ByVal ud As Integer, ByVal buf As
String)
Parameters
ud
: device unit descriptor
buf
: the buffer contains the sent command string
cnt
: the number of the command bytes; the command bytes to be sent
Return Value
The value of the
ibsta
Error Codes
EARG, ECIC, EDVR, EOIP, ENEB, EABO, ENOL
ibconfig
Description
This command sets the value of the selected configuration item.
Support Level
Board / device level
Syntax
Microsoft C/C++ and Borland C++
int ibconfig (int ud, int option, int value)
Syntax
Visual Basic
idconfig (ByVal ud As Integer, ByVal opt As Integer,
ByVal v As Integer) As Integer
- or -
call ibconfig (ByVal ud As Integer,
ByVal opt As Integer, ByVal v As Integer)
Parameters
ud
: board or device unit descriptor
opt
: the configuration item that needs to be changed (valid options are shown in
and
v
: the value of the configuration item that needs to be changed
Return Value
The value of the
ibsta
Error Codes
EARG, ECAP, EDVR, EOIP
Table 2-7
Board configuration parameter options
Options
(Constants)
Options
(Value)
Valid Values
ibcPAD
0x0001
Set the board current primary address.
ibcSAD
0x0002
Set the board current secondary address.
ibcTMO
0x0003
Set the board current I/O timeout.
ibcEOT
0x0004
Set the data termination mode for writing.
ibcPPC
0x0005
Configure the board for parallel polling. Default: zero.
ibcAUTOPOLL
0x0007
0: Disable the automatic sequential polling.
1: Enable the automatic sequential polling.