Valve Control
  Overview
This group defines all required functions for valve control, configuration and reading of valve states.
 Collaboration diagram for Valve Control:
 Collaboration diagram for Valve Control:| Functions | |
| uint8_t | NemIsValveInstalled (TNemesys *Nemesys) | 
| Checks the device configuration if a valve is installed.  More... | |
| uint32_t | NemIsValveStateDispense (TNemesys *Nemesys) | 
| Check if valve is switched to dispense state (output).  More... | |
| long | NemSwitchValve (TNemesys *Nemesys, uint8_t SwitchToDispense) | 
| Switch the integrated three way valve (if one is installed).  More... | |
Function Documentation
| uint8_t NemIsValveInstalled | ( | TNemesys * | Nemesys | ) | 
Checks the device configuration if a valve is installed.
- Parameters
- 
  [in] Nemesys Device to query 
- Return values
- 
  1 valve is installed 0 no valve is installed 
uint32_t DevCfg
contains configuration for gear, spindle slope, encoder and valve 
Definition: nem_rs232_api.h:44
#define CFGBIT_VALVE_INSTALLED_NEW
test bit for valve for new configuration word 
Definition: nem_rs232_api.c:28
#define CFGBIT_NEW_CONFIG
if bit 31 is set, then this device contains a new configuration 
Definition: nem_rs232_api.c:26
#define CFGBIT_VALVE_INSTALLED
test bit for valve for old configuration word 
Definition: nem_rs232_api.c:27
| uint32_t NemIsValveStateDispense | ( | TNemesys * | Nemesys | ) | 
Check if valve is switched to dispense state (output).
- Parameters
- 
  [in] Nemesys Device to query 
- Return values
- 
  1 Valve state is dispense (output) 0 Valve state is aspirate (input) <0 Error code (function call failed with error code) 
int8_t ValveStateDisp
valve state: 1 = dispense, 0 = aspirate 
Definition: nem_rs232_api.h:47
| long NemSwitchValve | ( | TNemesys * | Nemesys, | 
| uint8_t | SwitchToDispense | ||
| ) | 
Switch the integrated three way valve (if one is installed).
- Parameters
- 
  [in] Nemesys Device to switch valve [in] SwitchToDispense 1 - switch valve to output for dispensing 0 - switch valve to input for aspiration 
- Returns
- Error code - ERR_NOERR indicates success
int8_t ValveStateDisp
valve state: 1 = dispense, 0 = aspirate 
Definition: nem_rs232_api.h:47
long CsiDevWriteObject(struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, uint32_t TxDWord)
This function writes up to 4 bytes of data into device object dictionary. 
Definition: csi_dev.c:188
 Here is the call graph for this function:
 Here is the call graph for this function: 
          
          
 
