Pump Valve Control

Overview

Functions to access the optional valve that may be assigned to a certain pump device.

+ Collaboration diagram for Pump Valve Control:

Functions

long LCP_GetValveHandle (dev_hdl hPump, dev_hdl *ValveHandle)
 Returns the valve handle of a pump valve for the pump given in hPump parameter. More...
 
long LCP_HasValve (dev_hdl hPump)
 Returns 1 if this pump has an valve assigned. More...
 

Function Documentation

long LCP_GetValveHandle ( dev_hdl  hPump,
dev_hdl ValveHandle 
)

Returns the valve handle of a pump valve for the pump given in hPump parameter.

Parameters
[in]hPumpA valid pump handle
[out]ValveHandleHandle to valve device or 0 if no valve with given name exists
Return values
-ERR_NODEVNo device with the given name found
ERR_NOERRindicates success
Examples:
capi_nemesys4_test.cpp, capi_nemesys_test.cpp, and capi_nemesys_valve_test.cpp.
long LCP_HasValve ( dev_hdl  hPump)

Returns 1 if this pump has an valve assigned.

Parameters
[in]hPumpA valid pump handle
Return values
0- No valve assigned to this pump
1- Valve assigned to this pump
<0- Error code
Examples:
capi_nemesys4_test.cpp, capi_nemesys_test.cpp, and capi_nemesys_valve_test.cpp.