15 setprocessname – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 43
1 - 29
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.15 setProcessName
int setProcessName (XTC3String *val, int index , char* ErrMsg, BOOL TCP);
Description
setProcessName sets the process name (up to 15 characters + Null
Terminator) in the XTC/3 instrument.
Arguments
XTC3String *val:
A structure that contains the name of the process (16 characters max)
int index:
The process index (1 to NUM_OF_PROCESSES)
char* ErrMsg
BOOL TCP
Example
//This example renames Process 1 to Process_ONE
#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);
XTC3String val;
strcpy((char*)(val.m_Data),"Process_ONE");
unsigned short len = 0;
setProcessName (&val, 1, ErrStr, TRUE);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
CloseSocket();
}