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

Page 50

Advertising
background image

1 - 36

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.22 getOutParameter

int getOutParameter (unsigned char *val, int index, char* ErrMsg, unsigned short
*len, BOOL TCP);

Description

There are NUM_OF_RELAYS relays and NUM_OF_TTLs TTLs in the XTC/3
instrument. Each relay and TTL can be programmed to react to a certain event.
This function will get a Relay or TTL event. See User’s Guide document for
event numbers and description.

Arguments

unsigned char *val:

This byte will be filled with the value of the event at a relay or TTL from the
XTC/3 instrument. See User’s Guide document for event number.

int index:

The relay or TTL number (1 byte, 1 to XTC3_NUM_OF_OUTPUTS)

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);
unsigned char val = 0;
unsigned short len = 0;
getOutParameter (&val, 5, ErrStr, &len, TRUE);
if(*ErrStr == 0)
{

printf(“The value of Output %d is %d\n”,5,val);
printf("Data Transfer successful\n");

}
else

printf(ErrStr);

CloseSocket();

}

Advertising