5 example of setting the output, 1 initialization function, Example of setting the output -6 – KEPCO KLP Series Developers Guide, Rev 3 User Manual

Page 48: Initialization function -6, Kepcodcpwr measure [msr].vi block diagram -6

Advertising
background image

4-6

KLP-DEV 041213

Figure 4-5 is a block diagram which shows the method used by the VI to perform the simulated
current measurement. The query MEAS:CURR? is transmitted to the power supply which
replies with the current measurement.

FIGURE 4-5. KepcoDCPwr Measure [MSR].

VI

BLOCK DIAGRAM

4.5

EXAMPLE OF SETTING THE OUTPUT

Figure 4-6 shows the use of the Kepco subvi's to initialize the driver and the device, set the out-
put on or off, establish a voltage and current setting, get a measurement and unit status, and
close the session to release the memory. The file is KepcoDCPwr Voltage Application Exam-
ple.vi It is located in program files\national Instruments\labview\drivers\kepco. The subvi’s used
to implement this example are described in the following paragraphs. Although the LabView G
driver provides a variety of functions (see Table 4-1), only the ones shown in Figure 4-6, needed
for this example.

4.5.1

INITIALIZATION FUNCTION

The initialization function use three subvi’s:

KepcoDCPWR initialize - Initializes the driver.
KepcoDCPWR Query Voltage Limit - Verifies the virtual model voltage setting.
KepcoDCPWR Configure Voltage Mode - Sets Mode to fixed, thereby stopping list exe-

cution.

The initialization function uses five inputs:

• Recognize device - T-F (True-false) input. If true, IDN string is parsed, looking for proper

model (KLP). If false, model is automatically set to KLP for simulation mode.

• Resource string - The VISA resource string, e.g., GPIB::6::INSTR
• ID Query - T-F input. If true, allows the unit to be identified by sending *IDN query. If

false, program enters simulation mode and no commands are actually sent to the power
supply.

• Error in - Described in Table 4-2.
• Reset device - T-F input. If true, sends *RST to unit which turns the output off, sets volt-

age to zero and current to minimum, and disables execution of a programmed list.

Advertising