KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-43
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
Syntax
Microsoft C/C++ and Borland C++
void Send (int board_desc, Addr4882_t address,
const void *buffer, long count, int eot_mode)
Visual Basic
call Send (ByVal ud As Integer,
ByVal addr As Integer, ByVal buf As String,
ByVal eot_mode As Integer)
Parameters
board_desc
: board ID
address
: the device address
buffer
: the sent data bytes
count
: data count
eot_mode
: data termination mode (
DABend
,
NULLend
, or
NLend
)
Error Codes
EABO, EARG, EBUS, ECIC, EDVR, ENOL, EOIP, ENEB
SendCmds
Description
This command sends GPIB commands. Returns the number of transferred command
bytes in the global variable,
ibcntl
.
Syntax
Microsoft C/C++ and Borland C++
void SendCmds (int board_desc, const void *cmdbuf,
long count)
Visual Basic
call SendCmds (ByVal ud As Integer,
ByVal cmdbuf As String)
Parameters
board_desc
: board ID
cmdbuf
: the sent command bytes
count
: data count
Error Codes
EABO, ECIC, EDVR, ENOL, EOIP, ENEB
SendDataBytes
Description
This command sends data from the buffer to the device. The
SendDataBytes
function
assumes that the interface on the GPIB bus is in the talk-active status and already
addresses the devices as listeners. If
eotmode
is
DABend
, the
EOI
line
is controlled
while the final byte is sent. If
eotmode
is
NULLend
, the
EOI
line
is not controlled
while the final byte is sent. If
eotmode
is
NLend
, the
EOI
line
is set to enable while
the final byte and the following new character "\n" have been sent. Returns the actual
number of transferred bytes in the global variable,
ibcntl
.