25 setinparameter – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 53

1 - 39
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.25 setInParameter
int setInParameter (unsigned char *val, int index , char* ErrMsg, BOOL TCP);
Description
There are XTC3_NUM_OF_INPUTS Inputs in the XTC/3 instrument. Each
Input can be programmed to react to a certain event. This function will update
an Input to a certain event. See the User’s Guide document for event numbers
and descriptions.
Arguments
unsigned char *val:
The value of the event.
int index:
The Input number (1 byte, 1 - 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 = 11;
setInParameter (&val, 5, ErrStr, TRUE);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
CloseSocket();
}