![background image](http://html1.mh-extra.com/html/keithley/kpci-488-lpa/kpci-488-lpa_user-manual_3940953021.webp)
KPCI-488LPA-900-01 Rev. A / December 2008
Return to
1-7
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 1: Keithley Command Compatible Functions
LISTENERPRESENT
Description
This function checks if a listener is present on the GPIB system.
Syntax
Microsoft C/C++ and Borland C++
char listener_present(long int addr)
Visual Basic
ListenerPresent (ByVal addr As Long) As Long
Parameters
addr
: the listener address to check
Return Value
0: the specified listener is not present
1: the specified listener is on the GPIB system
PPOLL
Description
This function performs a parallel poll and reads the status of devices.
Syntax
Microsoft C/C++ and Borland C++
int ppoll (char *poll)
Visual Basic
call ppoll(poll As Integer)
Parameters
poll
: returned parallel polling status
RARRAY
Description
This function receives a block of binary data (up to 64K) from a device defined as the
talker. The GPIB addressing must be performed using the
transmit
function.
Syntax
Microsoft C/C++ and Borland C++
long int rarray (void *buf,
unsigned long count, unsigned long *len,
long int *status)
Visual Basic
call rarray(buf As Variant, ByVal count As Long,
l As Integer, status As Integer)
Parameters
buf
: the buffer storing the received binary data
count
: the maximum data bytes. The valid value is 0 to 65535
len
: returns the actual number of received data bytes
Return Value
0: read data successfully
8: timeout error
32: data transfer terminated with EOI