![background image](http://html1.mh-extra.com/html/keithley/kpci-488-lpa/kpci-488-lpa_user-manual_3940953067.webp)
KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-41
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
ReadStatusByte
Description
This command sequentially polls a device. If the sixth bit (hex 40) of the response is
set, the device is requesting service.
Syntax
Microsoft C/C++ and Borland C++
void ReadStatusByte (int board_desc,
Addr4882_t address, short *result)
Visual Basic
call ReadStatusByte (ByVal us As Integer,
ByVal addr As Integer, result As Integer)
Parameters
board_desc
: board ID
address
: device address
result
: response byte of the sequential polling
Error Codes
EABO, EARG, EBUS, ECIC, EDVR, EOIP, ENEB
Receive
Description
This command reads data bytes from a device, and then stores them in the assigned
buffer. Receive the device address described by addressing to a talker, setting the
interface to a receiver, reading count data bytes from the device, and storing these
data bytes into the buffer. The operation is normally stopped when the count data
bytes have been read or the terminal condition is detected. If the terminal condition is
STOPend
, the
EOI
line is set to enable while the
STOPend
byte is received.
Otherwise, the reading operation is stopped while the eight-bit
EOS
character is
detected. Returns the actual number of transferred bytes in the global variable,
ibcntl
.
Syntax
Microsoft C/C++ and Borland C++
void Receive (int board_desc, Addr4882_t address,
void *buffer, long count, int termination)
Visual Basic
call Receive (ByVal ud As Integer,
ByVal addr As Integer, buf As String,
ByVal termination As Integer)
Parameters
board_desc
: board id
address
: the device address; the device is read by the function for data
buffer
: the buffer that stores the read data
termination
: device termination mode (STOPend or EOS character)
Error Codes
EABO, EARG, EBUS, ECIC, EDVR, EOIP, ENEB