beautypg.com

24 getinall – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual

Page 52

background image

1 - 38

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.24 getInAll

int getInAll (InAllData *val, char* ErrMsg, unsigned short *len, BOOL TCP);

Description

There are XTC3_NUM_OF_INPUTS Inputs in the XTC/3 instrument. Each
Input can be programmed to react to a certain event. This function will fill the
InAllData structure with this event from the XTC/3 instrument. See the User’s
Guide document for event numbers and descriptions.

Arguments

InAllData * val:

This structure will contain each Input event (XTC3_NUM_OF_INPUTS
bytes).

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];
memset(ErrStr,0,256);
InAllData val;
unsigned short len = 0;
getInAll(&val, ErrStr, &len, TRUE);
if(*ErrStr == 0)
{

printf("Data Transfer successful\n");
printf("Input Events are:\n");
for(int i = 0; i < XTC3_NUM_OF_INPUTS ; i++)

printf("%d\n",val.m_Data[i]);

}
else

printf(ErrStr);

CloseSocket();

}