beautypg.com

Programmer reference, 1 visa instrument driver functions, Table 3. bop visa driver functions – KEPCO BOP VISA Driver (Universal, GPIB) User Manual

Page 12

background image

12

BOP-VISA 010906

2. PROGRAMMER REFERENCE

2.1 VISA INSTRUMENT DRIVER FUNCTIONS

Kepco’s BOP VISA instrument driver provides programming support for Kepco’s BOP Power Supply (VISA
I/O). It contains functions for opening, configuring, taking measurements from, test, calibration and closing
the instrument. To successfully use this module, the instrument must be connected to the GPIB and the
GPIB address supplied to the initialize function must match the GPIB address of the instrument.

Table 3 lists the functions that are available.

TABLE 3. BOP VISA DRIVER FUNCTIONS

Purpose

Function Name

Description

INITIALIZE FUNCTION

Initialize

KpBop_init

Initializes the instrument and sets it to a default configuration.

APPLICATION FUNCTIONS — This class of functions contains high-level test and measurement routines. These functions call
other instrument driver functions to configure, start, and get readings from the instrument.

Set and Measure

KpBop_ApplicSetMeas

Used to either set and read back, or just read back the output voltage,
current and operating mode of the power supply

CONFIGURATION FUNCTIONS — This class of functions configures the instrument by setting system configuration parameters.

Get Current Range
Status

Kpbop_getCurrRange

Unit can operate in either auto, high or low range. The function will
return 0 for auto, 1 for high range and 4 for low range

Set Current Range

Kpbop_setCurrRange

Sets the current operating range (auto, high or low)

Get Voltage Range
Status

Kpbop_getVoltRange

Unit can operate in either auto, high or low range. The function will
return 0 for auto, 1 for high range and 4 for low range

Set Voltage Range

Kpbop_setVoltRange

Sets the voltage operating range (auto, high or low)

Get Minimum or Maxi-
mum Value

KpBop_GetMinMaxValue

Gets the minimum or the maximum output voltage, output current of the
power supply depending on the min_max switch and slide selection
position.

Set Trigger Voltage and
Current

KpBop_SetTrig_Volt_Curr

Sets the trigger voltage and trigger current at the same time

Set Trigger Value

KpBop_SetTrigValue

Sets the trigger voltage or trigger current level, depending on the switch
position.

Get Trigger Value

KpBop_GetTrigValue

Gets the trigger voltage or the trigger current level, depending on the
switch position.

ACTION/STATUS FUNCTIONS — This class of functions executes commands and queries. It also provides functions which allow
the user to determine the current status of the instrument.

Set Voltage and Current

KpBop_Set_Volt_Curr

Sets the output voltage and current at the same time.

Set Value

KpBop_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

KpBop_GetValue

Gets the output voltage, the output current of the power supply depend-
ing on slide selection position.

Transient pulse in volt-
age mode

Kpbop_TransVolt

Sets the power supply to the required value for the indicated time

Transient pulse in cur-
rent mode

Kpbop_TransCurr

Sets the power supply to the required value for the indicated time

Clear List parameter

Kpbop_ListClr

Clears all the parameters of a list, set direction to UP and SEQ to
Default (DSEQ)

Count list parameter

Kpbop_ListCount

Sets the LIST seq to run for COUNT periods