1-8
KPCI-488LPA-900-01 Rev. A / December 2008
Section 1: Keithley Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
RECEIVE
Description
This function reads data from a specified device, but does not address a talker. The
GPIB addressing must be performed using the
transmit
function.
Syntax
Microsoft C/C++ and Borland C++
long int receive (char *buf, unsigned long maxlen,
unsigned long *len, long int *status)
Visual Basic
call receive (buf As String, maxlen As Integer,
len As Integer, status As Integer)
Parameters
buf
: the buffer storing the received data
maxlen
: sets maximum bytes of data to receive
len
: returns the actual number of received data bytes
Return Value
0: read data successfully
8: timeout error
SEND
Description
This function sends commands to a specified GPIB device.
Syntax
Microsoft C/C++ and Borland C++
long int send (long int addr, char *buf,
unsigned long maxlen, long int *status)
Visual Basic
call send(addr As Integer, buf As String,
status As Integer)
Parameters
addr
: the listener address
buf
: the buffer storing the data to send
maxlen
: sets the maximum number of data bytes to send
Return Value
0: data sent successfully
8: timeout error
SETINPUTEOS
Description
This function sets the terminating character for input data transfer.
Syntax
Microsoft C/C++ and Borland C++
void setinputEOS (long int eos_c)
Visual Basic
call setinputEOS (ByVal eos_c As Long)
Parameters
eos_c
: the terminating character for input data transfer