3 annex, 1 programming interface definitions, 1 java interface class – Metrohm 846 Driver Toolbox User Manual
Page 24: Annex, Programming interface definitions, Java interface class
3.1 Programming interface definitions
20
Dosing Interface USB Toolbox, Annex
3 Annex
3.1 Programming interface definitions
3.1.1 Java interface class
/*
* Copyright(c) 2004 Metrohm AG
*
* $Archive: /tools/846_usb_dll/src/java_wrapper_846/src/metr/DosIntFace846.java $
* $Date: 13.06.05 9:16 $
* $Author: Km $
* $Revision: 5 $
*/
package metr;
/**
*
* @author Michael Keller
* @version 1.2.5.0, 09/06/05
*/
/**
* DosIntFace846 class which contains all static methods to communicate with 846 Dosing
Interfaces.
* Befor communicating, the init method init846 has to be called.
* 846 Dosing Interfaces and Dosinos can't be hot pluged.
*
* If the cock move int parameter is described as eCockMove, the following description will be
used:
* 0: ascending order (Port 1 --> 4)
* 1: descending order (Port 4 --> 1)
* 2: automatic mode, shortest path
* 3: protected mode, cock will not move over specified port
*
* If the direction int parameter is described as eDirection, the following description will
be used:
* 0: forward, dosing (0 --> 10000 pulses)
* 1: reverse, filling (10000 --> 0 pulses)
*
*/
public class DosIntFace846 {
// load the 846 DLL for native conaction to dosing interfaces
static{
System.loadLibrary("DosIntFace846");
}
public DosIntFace846() {}
/**
* Initializes all Metrohm 846 Dosing Interfaces found in the USB chain and sorts them
according to the serial number.
* All Dosino drives are recognized and the Dosing Units are reset.
* Running processes are stopped.
*
* @return boolean, method returns true if successful
*/
public static final native boolean init846();
/**
* Returns the cylinder volume of the Dosing Unit.
* This function can be used for the detection of a mounted Dosing Unit.