
1-10
Return to
KPCI-488LPA-900-01 Rev. A / December 2008
Section 1: Keithley Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
SRQ
Description
This function checks if a device is requesting service.
Syntax
Microsoft C/C++ and Borland C++
char srq(void)
Visual Basic
srq ( ) As Long
Return Value
0: the device is not requesting service
1: the device is requesting service
TARRAY
Description
This function sends a block of binary data from memory to the devices defined as lis-
teners. The GPIB addressing must be performed using the
transmit
function.
Syntax
Microsoft C/C++ and Borland C++
long int tarray (void *buf,
unsigned long count, long int eoi,
long int *status)
Visual Basic
call tarray (buf as variant, ByVal count As Long,
ByVal eoi As Integer, status As Integer)
Parameters
buf
: the buffer storing the data to send
count
: the maximum number of data bytes to be transmitted
eoi
: enable or disable EOI mode of the device. 0 = disable EOI; 1 = enable EOI
Return Value
0: read data successfully
8: timeout error
32: data transfer terminated with EOI
TRANSMIT
Description
This function sends GPIB commands and data according to a specified string com-
posed a series of GPIB commands and data.
Syntax
Microsoft C/C++ and Borland C++
long int transmit (char * cmd,
unsigned maxlen, long int * status);
Visual Basic
call transmit(cmd As String, status As Integer)
Parameters
cmd
: the buffer containing the command string and data to send.
The valid
cmd
string values are contained in
maxlen
: the maximum number of command string bytes to send.
Return Value status
:
0: sent command and data successfully
1: illegal command syntax
8: timeout error
16: unknown command
32: data transfer terminated with EOI