3-4
KLR-DEV 060713
3.3
EXAMPLES USING C
The examples illustrated in the following paragraphs are installed in the ivi\drivers\kepco\exam-
ples folder during installation of the IVI-COM driver. Figures showing the complete code for each
example are provided
3.3.1
SETTING THE OUTPUT TO A VALUE AND MAKING A MEASUREMENT
The filename for this example is
C output example.txt
, located in the ivi\drivers\kepco\examples
folder (see Figure 3-1 for complete code).
All programs written in C++ must open the driver and include some standard H files.
List (supported in standalone configurations only)
KpDCPwr_ClearLists
Empties all lists. Prepares the KLR to receive a new list.
KpDCPwr_SetVoltageListValues
Sends the new voltage point to the KLR.
KPDCPWR_ATTR_VOLTAGE_LIST_POINTS
Provides the location of the next point to be entered into voltage list.
KpDCPwr_SetCurrentListValues
Sends the new current point to the KLR.
KPDCPWR_ATTR_CURRENT_LIST_POINTS
Provides the location of the next point to be entered into current list.
KpDCPwr_SetListDwellTimes
Sends the new dwell point to the KLR.
KPDCPWR_ATTR_LIST_DWELL_POINTS
Provides the location of the next point to be entered into dwell list.
KpDCPwr_SetListControl
Sends the new relay point to the KLR.
KPDCPWR_ATTR_LIST_CONTROL_POINTS
Provides the location of the next point to be entered into control
(relay) list.
KPDCPWR_ATTR_LIST_SKIP
Provides ability to skip a number of points when a list is repeatedly
executed.
KpDCPwr_ExecuteVoltageList
Causes a list to be executed.
KpDCPwr_HaltVoltageList
Causes a list to be stopped; useful when list is executed continu-
ously.
KpDCPwr_SetListCycles
Causes the list to be executed a number of times. Sending 0 will
make list execute forever.
KPDCPWR_ATTR_LIST_CYCLES
Provides number of cycles for a list to be executed. The clear list
sets this variable to 1.
Utility
KpDCPwr_EnablePasswordState
Enables Password controlled conditions.
KPDCPWR_ATTR_POSITIVE_CURRENT_RATED_LIMIT
Limit model current limit
KPDCPWR_ATTR_POSITIVE_VOLTAGE_RATED_LIMIT
Limit model voltage limit
KpDCPwr_DisablePasswordState
Turn off password enable
KpDCPwr_ChangePassword
Allows for changing the password of the power supply.
TABLE 3-1. KLR IVI-COM DRIVER FUNCTIONS (CONTINUED)
Function Name
Purpose
Содержание KLR SERIES
Страница 2: ......
Страница 10: ......
Страница 42: ......
Страница 58: ...4 16 KLR DEV 060713 FIGURE 4 10 FUNCTION GENERATOR PANEL FIGURE 4 11 CONFIGURE User Sequence vi BLOCK DIAGRAM ...
Страница 59: ......
Страница 60: ......
Страница 61: ...FIGURE 4 13 FUNCTION GE ...
Страница 62: ......
Страница 86: ......
Страница 90: ......