1 programming interface definitions – Metrohm 846 Driver Toolbox User Manual
Page 30
3.1 Programming interface definitions
26
Dosing Interface USB Toolbox, Annex
*/
public static final int getInterfaceId(int ifNo) throws DosIntFace846Exception{
interfaceId = 0;
int nReturnstate = DosIntFace846.callInterfaceId(ifNo);
if (nReturnstate == 0)
return interfaceId;
else
throw new DosInt-
Face846Exception(DosIntFace846Exception.getErrorString(nReturnstate), nReturnstate);
}
/**
* Get the program version of the 846 Dosing Interface
*
* @param ifNo Dosing Interface [1... ?]
* @return string with the program version
* @throws DosIntFace846Exception
*/
public static final String getProgramVersion(int ifNo) throws DosIntFace846Exception{
programVersion = "";
int nReturnstate = DosIntFace846.callProgramVersion(ifNo);
if (nReturnstate == 0)
return programVersion;
else
throw new DosInt-
Face846Exception(DosIntFace846Exception.getErrorString(nReturnstate), nReturnstate);
}
//--------------------------------------------------------------------------------------
//-------------------------- only for JNI, don't use it ------------------------------
/** only for JNI, don't use it */
public static final native int callCylVolume(int ifNo, int msbNo);
/** only for JNI, don't use it */
public static final void setCylVolume(int iDosinoVolume) {dosinoVolume = iDosinoVolume;}
/** only for JNI, don't use it */
public static final native int callCock(int ifNo, int msbNo, int port, int move, int
notOver);
/** only for JNI, don't use it */
public static final native int callZeroAdjust(int ifNo, int msbNo, float revRate);
/** only for JNI, don't use it */
public static final native int callAdjust (int ifNo, int msbNo, int direction);
/** only for JNI, don't use it */
public static final native int callGoPos(int ifNo, int msbNo, int position, float rate);
/** only for JNI, don't use it */
public static final native int callToEnd(int ifNo, int msbNo, float fwdRate);
/** only for JNI, don't use it */
public static final native int callMakeStep(int ifNo, int msbNo, int fillPort, float
volume, int direction, float fwdRate, float revRate);
/** only for JNI, don't use it */
public static final native int callFill(int ifNo, int msbNo, int port, float revRate);
/** only for JNI, don't use it */
public static final native int callExchange(int ifNo, int msbNo, int port, float revRate);
/** only for JNI, don't use it */
public static final native int callStop(int ifNo, int msbNo);
/** only for JNI, don't use it */
public static final native int callHold(int ifNo, int msbNo);
/** only for JNI, don't use it */
public static final native int callCont(int ifNo, int msbNo);
/** only for JNI, don't use it */
public static final native int callPrep(int ifNo, int msbNo, int inPort, float inVolume,
float inRate,
int outPort, float outVolume, float outRate,
int specPort, float specVolume, float specRate);
/** only for JNI, don't use it */
public static final native int callEmpty(int ifNo, int msbNo, int inPort, float inVolume,
float inRate,
int outPort, float outVolume, float outRate,
int specPort, float specVolume, float specRate);