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

Page 77

Advertising
background image

1 - 63

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.35.3 getCurrentState

int getCurrentState (long *val, char* ErrMsg, unsigned short *len, BOOL TCP);

Arguments

long *val:

This 4 byte float will contain the Current State return by 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];
memset(ErrStr,0,256);
long currentState = 0;
unsigned short len = 0;
getCurrentState (&currentState, ErrStr, &len, TRUE);
if(*ErrStr == 0)
{

printf("Data Transfer successful\n");
printf("The Current State is: %d\n", currentState);

}
else

printf(ErrStr);

CloseSocket();

}

Advertising