1-6
KPCI-488LPA-900-01 Rev. A / December 2008
Section 1: Keithley Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Visual Basic
call enter(buf As String, maxlen As Integer,
len As Integer, addr As Integer, status As Integer)
Parameters
buf
: the buffer storing the received data
maxlen
: the maximum bytes of data to receive. The valid value is from 0 to 65535
len
:returns the actual number of received data bytes
addr
: the GPIB address of the Talker
status
: 0: read data successfully; 8: timeout error
FEATURE
Description
This function returns the GPIB board settings or hardware features.
Syntax
Microsoft C/C++ and Borland C++
long int feature (long int f)
Visual Basic
GPIBFeature (ByVal f As Long) As Long
Parameters
f
: the feature or setting information desired. Valid FEATURE values are contained in
Table 1-1
FEATURE parameters
Feature
(Constants)
Features
(Values) Returned Information
IEEEListener
0
Checking if ListenerPresent function is supported by
the GPIB board; this information value is always 1.
IEEEIOBASE
100
the I/O base address of the board
IEEETIMEOUT
200
the I/O timeout setting of the board
IEEEINPUTEOS
201
the current setting of the input EOS character
IEEEOUTPUTEOS1
202
the current setting of the output EOS character 1
IEEEOUTPUTEOS2
203
the current setting of output EOS character 2
IEEEBOARDSELECT
204
the current active board number
Return Value
The value of the feature or setting
INITIALIZE
Description
This function opens and initializes a GPIB board.
Syntax
Microsoft C/C++ and Borland C++
void initialize (long int addr,
long int level)
Visual Basic
call initialize (ByVal addr As Long,
ByVal level As Long)
Parameters
addr
:
GPIB address assigned to the board
level
:
0: specifies the board as a system controller
1: specifies the board as a device