14 getprocesslayerlist – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 42
1 - 28
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.14 getProcessLayerList
int getProcessLayerList (LayerData *val, int index, char* ErrMsg, unsigned short
*len, BOOL TCP);
Description
getProcessLayerList gets all the layers from a process at index from the XTC/3
instrument and puts them in a LayerData structure.
Arguments
LayerData *val:
A structure that contains the number of layers (first 2 bytes) followed with
the layers (1 byte per, max of NUM_OF_LAYERS bytes) represented each
with a film number (1 to NUM_OF_FILMS);
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);
LayerData val;
unsigned short NumOfLayers = 0;
unsigned short len = 0;
getProcessLayerList (&val, 1, ErrStr, &len, TRUE);
if(*ErrStr == 0)
{
memcpy(&NumOfLayers,val.m_Data,2);
ASSERT(NumOfLayers <= NUM_OF_LAYERS);
printf("The Layers of Process 1 are:\n");
for(int i = 2; i < NumOfLayers + 2; i++)
printf("%d\n",val.m_Data[i]);
}
else
printf(ErrStr);
CloseSocket();
}