Section 5 - vxi plug&play driver, 1 introduction, 2 vxi plug&play instrument driver – KEPCO KLP Series Developer's Guide, Rev 1 User Manual
Page 63: 3 vxi plug&play instrument driver functions, Table 5-1. klp vxi plug&play driver functions, Ion 5)

KLP-DEV 031113
5-1
SECTION 5 - VXI plug&play DRIVER
5.1
INTRODUCTION
The VXI plug&play driver can be used with all KLP models for remote programming.
The driver can be used in a program created by a user with any C compiler to program all ports
accessible via a resource string of the KLP power supply.
5.2
VXI PLUG&PLAY INSTRUMENT DRIVER
The VXI plug&play instrument driver provides support for the VXI plug&play environment. This
driver can be loaded from the CD or downloaded from Kepco’s web site at www.kepco-
power.com/drivers/. The driver includes an executable demonstration program and two files
which provide the source code for the driver and the functional prototypes. In addition, the
examples found in this section are also included with the driver as separate C files.
5.3
VXI PLUG&PLAY INSTRUMENT DRIVER FUNCTIONS
Kepco’s KLP VXI plug&play instrument driver provides programming support for Kepco’s KLP
Power Supply via all remote interfaces. It contains functions for opening, configuring, taking
measurements from, testing, calibrating and closing the instrument. To successfully use this
module, the instrument must be connected to the appropriate port using the proper resource
string for the initialize function (see Table 1-1).
The initialize function opens the session, and communicates with the KLP to validate it as a sup-
ported model and determines the voltage and current limits of the unit. This driver validates the
model to insure it is the proper driver for the unit. The driver differs from the IVI and LabView G
driver in that it will only operate on a Kepco KLP product and has not support for generic opera-
tion or operating other Kepco supplies.
Table 5-1 lists the functions that are available.
TABLE 5-1. KLP VXI PLUG&PLAY DRIVER FUNCTIONS
Purpose
Function Name
Description
INITIALIZE FUNCTION
Initialize Unit
KpKlp_Init
A resource string is passed to this function and the driver is opened.
The handle returned is used in all other functions . This function uses
KpKlp_reset and also performs an *IDN? query to verify the unit is a
Kepco, KLP unit.
Reset
KpKlp_psReset
Resets the instrument to a known state and sends initialization com-
mands to the instrument.
Close
KpKlp_close
This function takes the instrument off-line.
SETTING AND MONITORING OUTPUT FUNCTIONS
Set Value
KpKlp_SetValue
Sets the output voltage, the output current of the power supply,
depending on the slide selection position. The values are checked
against the maximum acceptable values for the corresponding power
supply.
Get Value
KpKlp_GetValue
Gets the output voltage, the output current of the power supply
depending on slide selection position.
Measure Current and
Voltage Output Values
KpKlp_MeasVoltCurr
Measures the values of output (voltage and current).