12 film functions – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 34
1 - 20
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
// a couple of parameters are changed and sent through.
#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);
char ErrStr[256];
memset(ErrStr,0,256);
unsigned short len = 0;
BOOL TCP = TRUE; // TCP/IP comm
getFilmAll (&val, 1, ErrStr, &len, TCP);
if(*ErrStr == 0)
{
float finalThickness = 86.24F;
memcpy((unsigned char*)val.m_Data + 10*4,&finalThickness,4);
setFilmAll (&val, 1 , ErrStr, TCP);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
}
else
printf(ErrStr);
CloseSocket();
}
1.3.2.12 Film Functions
All the Set and Get film functions described in
Table 1-1
have the same
arguments - except for the first argument - which can be an unsigned long or a
float, as shown below:
Description
setFilmxxxx sets a Film Parameter in the XTC/3 instrument.
getFilmxxxx gets a Film Parameter from the XTC/3 instrument.
Arguments
unsigned long *val or (float *val):
a 4 byte value that represents the film parameter sent to or received from
the instrument.
int index:
The film index (1 to NUM_OF_FILMS for XTC/3M and 1 to
NUM_OF_FILMS_FOR_SINGLE for XTC/3S)