19 setoutall – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 47
1 - 33
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.19 setOutAll
int setOutAll (OutAllData *val, 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 do that via OutAllData.
Arguments
OutAllData * val:
This structure should be filled with events for each relay and TTL
(XTC3_NUM_OF_OUTPUTS bytes). See User’s Guide document for event
numbers and description.
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);
OutAllData val;
for(int i = 0; i < XTC3_NUM_OF_OUTPUTS; i++)
val.m_Data[i] = i + 1;
setOutAll (&val, ErrStr, TRUE);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
CloseSocket();
}