1 setting the output to a value, Setting the output to a value -18 – KEPCO KLR Series Developers Guide User Manual
Page 40

3-18
KLR-DEV 060713
3.5.1
SETTING THE OUTPUT TO A VALUE
Figure 3-6 illustrates the use of the IVI-COM driver with LabView to set the KLR output to a
value. The first two blocks show the automation controller and kepcodriver functions. These are
followed by the initialize method of the driver,
Referring to Figure 3-6, the initialize method makes the connection to the KLR using the visa
resource string. The driver supports a simulation mode of operation which is set false in the
example. The next three blocks are property nodes which are used to set the voltage, current
and output enable of the power supply. These are the properties of the power supply which
directly affect the power supply output. In LabView each property must be set separately, but
multiple outputs of the property node are allowed. The final two blocks are the close functions.
One block is the method to close (disable the output). The second block is the ActiveX close ref-
erence which performs the driver close, breaking the connection to the KLR, and the instrumen-
tation close which releases the memory used by the driver.
FIGURE 3-6. SETTING THE OUTPUT USING LABVIEW WITH IVI-COM DRIVER
3.5.2
GETTING A VOLTAGE AND CURRENT READING FROM THE POWER SUPPLY
Figure 3-7 illustrates the use of the IVI-COM driver with LabView to measure the KLR output.