![background image](http://html1.mh-extra.com/html/keithley/kpci-488-lpa/kpci-488-lpa_user-manual_3940953023.webp)
KPCI-488LPA-900-01 Rev. A / December 2008
Return to
1-9
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 1: Keithley Command Compatible Functions
SETOUTPUTEOS
Description
This function sets the terminating characters for output data transfer.
Syntax
Microsoft C/C++ and Borland C++
void setoutputEOS (long int e1, long int e2)
Visual Basic
call setoutputEOS (ByVal e1 As Long, ByVal e2 As Long)
Parameters
e1
: the first terminating character for output data transfer
e2
: the second terminating character for output data transfer
SETPORT
Description
This function sets the I/O address of a GPIB board. This function is not used for the
Model KPCI-488LPA.
Syntax
Microsoft C/C++ and Borland C++
void setport (long int bd, unsigned io)
Visual Basic
call setport (ByVal bd As Long, ByVal io As Long)
Parameters
bd
: the board number
io
: the I/O base address set to the device
SETTIMEOUT
Description
This function sets the timeout period. The timeout period is the maximum duration
allowed for a read/write operation.
Syntax
Microsoft C/C++ and Borland C++
void settimeout (unsigned long int timeout)
Visual Basic
call settimeout (ByVal timeout As Long)
Parameters
timeout
: the timeout value in milli-seconds (msec)
SPOLL
Description
This function performs serial polling and a read of the specified device’s status.
Syntax
Microsoft C/C++ and Borland C++
long int spoll (long int addr, char *poll,
long int *status)
Visual Basic
call spoll(ByVal addr As Integer, poll As Integer,
status As Integer)
Parameters
addr
: the address of the device to poll
poll
: returns result of serial polling
Return Value
0: data sent successfully
8: timeout error