2-16
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
ibdev
Description
This command opens and initializes a device descriptor. If
ibdev
cannot get a valid
device descriptor, -1 is returned; the
ERR
bit of the
ibsta
and the
EDVR
bit of the
iberr
are set.
Support Level
Device level
Syntax
Microsoft C/C++ and Borland C++
int ibdev (int board_index, int pad, int sad,
int tmo, int send_eoi, int eosmode)
Visual Basic
ildev (ByVal bdid As Integer, ByVal pad As Integer,
ByVal sad As Integer, ByVal tmo As Integer,
ByVal eot As Integer, ByVal eos As Integer)
As Integer
- or -
call ibdev (ByVal bdid As Integer, ByVal pad As
Integer, ByVal sad As Integer, ByVal tmo As Integer,
ByVal eot As Integer, ByVal eos As Integer,
ud As Integer)
Parameters
board_index
: the index of the device access board
pad
: the device primary GPIB address
sad
: the device secondary GPIB address
tmo
: the I/O timeout value
eot
: enable or disable the device EOI mode
eos
: configure the device EOS character and device EOS modes
ibcREADDR
0x0006
0: Unnecessary addressing is not operated during device-level writing or
reading.
1: Addressing is operated continuously during the device-level writing or
reading.
ibcEOSrd
0x000C
0: Ignore the
EOS
character during reading.
1: The reading is stopped while the
EOS
character is read.
ibcEOSwrt
0x000D
0: The
EOI line
is not set to enable while the
EOS
character is sent
during writing.
1: The
EOI line
is set to enable while the
EOS
character is sent during
writing.
ibcEOScmp
0x000E
0: Compare all
EOS
with 7 bits.
1: Compare all
EOS
with 8 bits.
ibcEOSchar
0x000F
Any eight-bit value. This byte becomes the new
EOS
character.
ibcSPollTime
0x0018
0 ~ 17: Set the waiting time of the driver for the sequential polling
response. The time is represented by
ibtmo
timing value.
Default: 11
ibcEndBitIsNormal al0x001A
0: When the
EOS
is received, the
END
bit of the
ibsta
is not set.
1: When the
EOS
is received, the
END
bit of the
ibsta
is set. Default: 1.
Table 2-8 (continued)
Device configuration parameter options
Options
(Constants)
Options
(Values)
Returned Information