21 setoutparameter – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 49
1 - 35
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.21 setOutParameter
int setOutParameter (unsigned char *val, int index , char* ErrMsg, 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 update a Relay or TTL to a certain event. See User’s Guide
document for event numbers and description.
Arguments
unsigned char *val:
The value of the event. 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 = 31;
setOutParameter (&val, 5, ErrStr, TRUE);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
CloseSocket();
}