11 setfilmall – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 33

1 - 19
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
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)
{
printf("Data Transfer successful\n");
printf("Film Parameters shown in Hex Format:\n");
ASSERT(len == MAX_FILM_PARAM*4);
for(int i = 0; i < MAX_FILM_PARAM*4; i++)
{
if(!(i%4))
printf("\n %d: ",i/4);
if(val.m_Data[i] < 0x0f)
printf("0%X ",val.m_Data[i]);
else
printf("%X ",val.m_Data[i]);
}
}
else
printf(ErrStr);
CloseSocket();
}
1.3.2.11 setFilmAll
int setFilmAll (FilmAllData *val, int index , char* ErrMsg, BOOL TCP);
Description
setFilmAll sets all MAX_FILM_PARAM Film Parameters in the XTC/3
instrument.
Arguments
FilmAllData *val:
a MAX_FILM_PARAM x 4 bytes structure that will contain
MAX_FILM_PARAM Film Parameters sent to the instrument.
int index:
The film index (1 to NUM_OF_FILMS for XTC/3M and 1to
NUM_OF_FILMS_FOR_SINGLE for XTC/3S)
char* ErrMsg
BOOL TCP
Example
// This example sends all the Film Parameters to the XTC/3
// instrument. For simplicity, the example first uses
// getFilmAll (see above). Once the structure is filled,