![]() |
CETONI SDK
20220623
The software libraries for integration of all CETONI devices.
|
This groups defines all functions for control of valves and for reading valve status.
Functions | |
LCV_Func long LCV_CALL | LCV_ActualValvePosition (dev_hdl hValve) |
Returns the actual logical valve position. More... | |
LCV_Func long LCV_CALL | LCV_NumberOfValvePositions (dev_hdl hValve) |
Returns the number of valve positions. More... | |
LCV_Func long LCV_CALL | LCV_SwitchValveToPosition (dev_hdl hValve, int LogicalValvePosition) |
Switches the valve to a certain logical valve position. More... | |
LCV_Func long LCV_CALL LCV_ActualValvePosition | ( | dev_hdl | hValve | ) |
Returns the actual logical valve position.
Each valve position is identified by a logical valve position identifier from 0 - number of valve positions - 1. This function returns the logical valve position identifier for the current valve position.
[in] | hValve | Valid valve handle |
>=0 | Actual valve position index. |
<0 | Error code |
LCV_Func long LCV_CALL LCV_NumberOfValvePositions | ( | dev_hdl | hValve | ) |
Returns the number of valve positions.
Each valve has a number of available valve positions. I.e. a switching valve has two positions or a rotation valve can have 4 or even more positions.
[in] | hValve | Valid valve handle |
>0 | Number of valve positions |
<=0 | Error code |
LCV_Func long LCV_CALL LCV_SwitchValveToPosition | ( | dev_hdl | hValve, |
int | LogicalValvePosition | ||
) |
Switches the valve to a certain logical valve position.
[in] | hValve | Valid valve handle |
[in] | LogicalValvePosition | Logical valve target position index. |
ERR_NOERR | indicates success |