3 get measurement and status, 4 close connection, Get measurement and status -9 – KEPCO KLP Series Developers Guide, Rev 3 User Manual
Page 51: Close connection -9

KLP-DEV 041213
4-9
4.5.3
GET MEASUREMENT AND STATUS
Three functions are needed to retrieve a measurement (either voltage or current), determine the
output state and determine if there have been any errors.
• KepcoDCPWR Measure [MSR] - Measures the output (voltage in voltage mode, current
in current mode). This function is explained in detail in paragraph 4.4.2.
• KepcoDCPWR Query Output State - Queries the output state and returns 1 for output
on, 0 for output off.
• KepcoDCPWR Error-Query - Retrieves the first error from the error queue. The internal
logic of this subvi changes the “0- no error” response to a null string, so no error returns
nothing, but if an error is detected returns an error string is returned.
4.5.4
CLOSE CONNECTION
The last section is the close function, KepcoDCPWR close. This function is required to remove
the connection to the instrument and clean up RAM usage in LabView. It is very important to
release the connections in E-Series models as there are only four connections possible over
VXI-11 (Port 1024) and only two connections possible over SCPI Raw (Port 5025). The Kep-
coDCPWR close function releases the connection for other programs to utilize the device.
When the LabView program completes, it must close the driver, however the output is not auto-
matically turned off. Therefore it is recommended that the KepcoDCPWR Configure Output
State function precede the KepcoDCPWR close function. This is not shown in the simplified
example (Figure 4-6), however it is illustrated in the full block diagram showing implementation
of the ramp function, Figure 4-12.