Klr ivi-com driver functions -3 – KEPCO KLR Series Developers Guide User Manual
Page 25

KLR-DEV 060713
3-3
TABLE 3-1. KLR IVI-COM DRIVER FUNCTIONS
Function Name
Purpose
Initialization
KpDCPwr_init
Initialize Power supply, create session handle.
KpDCPwr_InitWithOptions
Initialize power supply, allowing user to determine reset and identifi-
cation options.
KpDCPwr_close
Close session handle.
KpDCPwr_LockSession
Prevents other instrument tasks from accessing unit.
KpDCPwr_UnlockSession
Allows other instrument tasks to access unit.
KpDCPwr_reset
Sends reset to unit setting output off
KpDCPwr_revision_query
Gets the revision level of the power supply
KpDCPwr_AttachToExistingCOMSession
Allows second usage of driver
KpDCPwr_serial_query
Gets the serial number of the power supply
KpDCPwr_cal_date_query
Gets the calibration date of the power supply
Output Control Functions
KPDCPWR_ATTR_OUTPUT_ENABLED
Boolean is used to set the output on and off with this attribute
KPDCPWR_ATTR_VOLTAGE_LEVEL
Sets or reads back the output voltage of power supply.
KPDCPWR_ATTR_CURRENT_LIMIT
Sets and read back the output current level.
KPDCPWR_ATTR_POSITIVE_CURRENT_LIMIT
Sets the current limit level.
KpDCPwr_MeasureCurrent
Measure current function.
KpDCPwr_MeasureVoltage
Measure Voltage function.
KPDCPWR_ATTR_OUTPUT_MODE
Indicates if unit is in voltage or current mode of operation, read only
on the KLR.
KPDCPWR_ATTR_POSITIVE_CURRENT_PROTECTION
_LIMIT
Sets the current protection level.
KPDCPWR_ATTR_POSITIVE_VOLTAGE_PROTECTION
_LIMIT
Sets the voltage protection level.
Output trigger
KPDCPWR_ATTR_TRIGGERED_CURRENT_LEVEL
Sets the current trigger level.
KPDCPWR_ATTR_TRIGGERED_VOLTAGE_LEVEL
Sets the triggered voltage level of the power supply.
KPDCPWR_ATTR_TRIGGERED_CURRENT_LIMIT
Sets the triggered current protect level of the KLR.
KPDCPWR_ATTR_TRIGGER_SOURCE
Sets and views the trigger source.
KPDCPWR_ATTR_INIT_CONTINUOUS
Enables continuous or single trigger events.
KpDCPwr_ConfigureTriggerSource
Allows selection of the trigger source from External or software trig-
gers.
KpDCPwr_ConfigureTriggeredCurrentLimit
Sends the current trigger level to the power supply.
KpDCPwr_ConfigureTriggeredVoltageLevel
Send the voltage trigger level to the power supply.
KpDCPwr_Abort
Sends abort to the KLR, preventing a trigger event from changing
the power supply output.