26 getinparameter – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 54
1 - 40
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.26 getInParameter
int getInParameter (unsigned char *val, int index, char* ErrMsg, unsigned short
*len, BOOL TCP);
Description
There are XTC3_NUM_OF_INPUTS Inputs in the XTC/3 instrument. Each
relay and TTL can be programmed to react to a certain event. This function will
get an Input event. See the User’s Guide document for event numbers and
descriptions.
Arguments
unsigned char *val:
This byte will be filled with the value of the event at an Input from the XTC/3
instrument.
int index:
The Input number (1 byte, 1 to XTC3_NUM_OF_INPUTS)
char* ErrMsg
BOOL TCP
Example
#include "XTC3Lib.h"
void main()
{
if(StartSocket()==0)
printf("Socket could not be initialized.");
if(!ConnectSocket("10.211.70.209"))
printf("Socket could not be connected!");
char ErrStr[256];
memset(ErrStr,0,256);
unsigned char val = 0;
unsigned short len = 0;
getInParameter (&val, 5, ErrStr, &len, TRUE);
if(*ErrStr == 0)
{
printf("The value of Input %d is %d\n",5,val);
printf("Data Transfer successful\n");
}
else
printf(ErrStr);
CloseSocket();
}