neMESYS SDK  20150729
Valve Control

Functions for control of integrated two-way-valve. More...

Functions

NCS_Func long __stdcall NCS_IsInvertedValveSwitchingOn (ncs_hdl hDevice, unsigned char DosingUnit)
 Checks if inverted valve switching is on or off. More...
 
NCS_Func long __stdcall NCS_IsValveAutomaticOn (ncs_hdl hDevice, unsigned char DosingUnit)
 Checks if valve automatic is switched on or off. More...
 
NCS_Func long __stdcall NCS_IsValveInstalled (ncs_hdl hDevice, unsigned char DosingUnit)
 Checks if a valve is installed. More...
 
NCS_Func long __stdcall NCS_IsValveSwitchedToOutput (ncs_hdl hDevice, unsigned char DosingUnit)
 Check status of valve. More...
 
NCS_Func long __stdcall NCS_SetInvertedValveSwitching (ncs_hdl hDevice, unsigned char DosingUnit, unsigned char Invert)
 Activate / deactivate inverted valve switching. More...
 
NCS_Func long __stdcall NCS_SetValveAutomatic (ncs_hdl hDevice, unsigned char DosingUnit, unsigned char ValveAutomaticOn)
 Turn valve automatic on / off. More...
 
NCS_Func long __stdcall NCS_SwitchValve (ncs_hdl hDevice, unsigned char DosingUnit, unsigned char SwitchToOutput)
 Switch valve to input or output. More...
 

Detailed Description

Functions for control of integrated two-way-valve.

This group defines all required functions for valve control, configuration and reading of valve states (if a valve is installed).

Function Documentation

NCS_Func long __stdcall NCS_IsInvertedValveSwitchingOn ( ncs_hdl  hDevice,
unsigned char  DosingUnit 
)

Checks if inverted valve switching is on or off.

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
Return values
0Valve switching is direct (not inverted)
1Valve switching is inverted
<0Error code
NCS_Func long __stdcall NCS_IsValveAutomaticOn ( ncs_hdl  hDevice,
unsigned char  DosingUnit 
)

Checks if valve automatic is switched on or off.

If valve automatic is on the valve will be switched as soon as the dosing changes

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
Return values
0Valve automatic switching is turned off
1Valve automatic switching is turned on
<0Error code
NCS_Func long __stdcall NCS_IsValveInstalled ( ncs_hdl  hDevice,
unsigned char  DosingUnit 
)

Checks if a valve is installed.

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
Return values
0No valve instaled on this dosing unit
1Valve is installed
<0Error code
NCS_Func long __stdcall NCS_IsValveSwitchedToOutput ( ncs_hdl  hDevice,
unsigned char  DosingUnit 
)

Check status of valve.

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
Return values
0Valve is switched to input (taking up reagent)
1Valve is switched to output (delivering reagent)
<0Error code
NCS_Func long __stdcall NCS_SetInvertedValveSwitching ( ncs_hdl  hDevice,
unsigned char  DosingUnit,
unsigned char  Invert 
)

Activate / deactivate inverted valve switching.

Inverted valve switching swithes the valve into the opposite direction of the normal valve switching.

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
[in]Invert0 - Inverted valve switching actived 1 - Inverted valve switching deactivated
Returns
Error code - ERR_NOERR indicates success
NCS_Func long __stdcall NCS_SetValveAutomatic ( ncs_hdl  hDevice,
unsigned char  DosingUnit,
unsigned char  ValveAutomaticOn 
)

Turn valve automatic on / off.

If valve automatic is on the valve will be switched as soon as the dosing changes

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
[in]ValveAutomaticOn0 - Valve automatic off 1 - Valve automatic on
Returns
Error code - ERR_NOERR indicates success
NCS_Func long __stdcall NCS_SwitchValve ( ncs_hdl  hDevice,
unsigned char  DosingUnit,
unsigned char  SwitchToOutput 
)

Switch valve to input or output.

Switch valve to input for taking up reagent and to output for delivering of reagent. After switching on power supply the valve is always switched to output.

Parameters
[in]hDeviceValid device handle
[in]DosingUnitIndex of neMESYS pump from 0 to number of pumps - 1
[in]SwitchToOutput0 - valves switches to input 1 - valve switches to output
Returns
Error code - ERR_NOERR indicates success