2-44
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
Microsoft C/C++ and Borland C++
void SendDataBytes (int board_desc,
const void *buffer, long count, int eotmode)
Visual Basic
call SendDataBytes (ByVal ud As Integer,
ByVal buf As String, ByVal term As Integer)
Parameters
board_desc
: board ID
buffer
: the sent data bytes
count
: data count
eot_mode
: data terminal mode (
DABend
,
NULLend
,
NLend
)
Error Codes
EABO, EADR, EARG, EBUS, ECIC, EDVR, ENOL, EOIP, ENEB
SendList
Description
This command sends data bytes to multiple GPIB devices. The
SendList
function
addresses all devices listed in address list,
addrlist
, as listeners, addresses the
interface to talk, and then transfers the data from the buffer to the devices. If
eotmode
is
DABend
, the
EOI
line
is set to enable while the final byte is sent. If
eotmode
is
NULLend
, the
EOI
line
is set to disable 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
.
Syntax
Microsoft C/C++ and Borland C++
void SendList (int board_desc,
const Addr4882_t addressList[], const void *buffer,
long count, int eotmode)
Visual Basic
call SendList (ByVal ud As Integer,
addressList ( ) As Integer, ByVal buf As String,
ByVal term As Integer)
Parameters
board_desc
: board ID
addressList
: the list of the device addresses; the devices that send data bytes
buffer
: the sent data bytes
count
: data count
eotmode
: data termination mode (
DABend
,
NULLend
, or
NLend
)
Error Codes
EABO, EARG, EBUS, ECIC, EDVR, EOIP, ENEB