beautypg.com

13 setprocesslayerlist – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual

Page 41

background image

1 - 27

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.13 setProcessLayerList

i

nt setProcessLayerList (LayerData *val, int index , char* ErrMsg, BOOL TCP);

Description

setProcessLayerList fills a process with layers.

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 = 3;
memcpy(val.m_Data,&NumOfLayers,2);
val.m_Data[2] = 12; // add a Film12 layer to process 1
val.m_Data[3] = 31; // add a Film31 layer to process 1
val.m_Data[4] = 4; // add a Film4 layer to process 1
setProcessLayerList (&val, 1 , ErrStr, TRUE);

if(*ErrStr == 0)

printf("Data Transfer successful\n");

else

printf(ErrStr);

CloseSocket();

}