17 setprocessspeclayer – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 45
1 - 31
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.17 setProcessSpecLayer
int setProcessSpecLayer (SpecLayerData *val, int index , char* ErrMsg, BOOL
TCP);
Description
setProcessSpecLayer updates a Layer in a Process (e.g. changes its film
number).
Arguments
SpecLayerData* val:
This is a 3 byte structure that contains the layer number (first 2 bytes, 1 to
NUM_OF_LAYERS) and the film number with which the layer is to be
updated (last byte).
int index:
The process index (1 to NUM_OF_PROCESSES)
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);
SpecLayerData val;
unsigned short layerNumber = 3;
memcpy(val.m_Data, &layerNumber,2);
val.m_Data[2] =13;
unsigned short len = 0;
setProcessSpecLayer (&val, 1, ErrStr, TRUE);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
CloseSocket();
}