16 getprocessname – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 44
1 - 30
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.16 getProcessName
int getProcessName (XTC3String *val, int index, char* ErrMsg, unsigned short
*len, BOOL TCP);
Description
getProcessName gets the process name (up to 15 characters + Null
Terminator) from 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
#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;
getProcessName (&val,1, ErrStr, &len, TRUE);
if(*ErrStr == 0)
printf("%s\n",(char*)(val.m_Data));
else
printf(ErrStr);
CloseSocket();
}