Valve API Initialization

Overview

This groups defines all functions to retrieve valid valve device handles from the labbCAN valve library.

+ Collaboration diagram for Valve API Initialization:

Functions

long LCV_GetNoOfValves ()
 Query number of detected valve devices. More...
 
long LCV_GetValveHandle (unsigned char Index, dev_hdl *ValveHandle)
 Get valve handle by its index. More...
 
long LCV_LookupValveByName (const char *pValveName, dev_hdl *ValveHandle)
 Lookup for a valve device by its name. More...
 

Function Documentation

long LCV_GetNoOfValves ( )

Query number of detected valve devices.

Return values
>=0 Number of detected valve devices
<0 Error code
long LCV_GetValveHandle ( unsigned char  Index,
dev_hdl ValveHandle 
)

Get valve handle by its index.

Parameters
[in]IndexIndex into list of available valve devices
[out]ValveHandleHandle to valve device or 0 if the given index is out of range
Return values
-ERR_PARAM_RANGEIf the given device index is out of range
ERR_NOERRindicates success
Examples:
capi_nemesys_valve_test.cpp.
long LCV_LookupValveByName ( const char *  pValveName,
dev_hdl ValveHandle 
)

Lookup for a valve device by its name.

Parameters
[in]pValveNameThe name of the device to lookup for
[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_contiflow_test.cpp, and capi_nemesys_valve_test.cpp.