2 gethello – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual

Page 24

Advertising
background image

1 - 10

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.2 getHello

int getHello (XTC3HelloVersion *val, char* ErrMsg, unsigned short *len, BOOL
TCP);

Description

This function gets the name and version of the XTC/3 instrument.

Arguments

XTC3HelloVersion *val

This structure is filled with the response, specifically the name and version
of the XTC/3 instrument.

char* ErrMsg

unsigned short *len

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];
unsigned short length = 0;
memset(ErrStr,0,256);
XTC3HelloVersion str;
BOOL TCP = TRUE; // TCP/IP comm
getHello (&str, ErrStr, &length, TCP);
if(*ErrStr == 0)

printf("Data Transfer successful/n");
printf("Version and Name: %s/n", str.m_Data);

else

printf(ErrStr);

CloseSocket();

}

Advertising