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

Page 31

Advertising
background image

1 - 17

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

for(int i = 0; i < len/4; i++)

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

}
else

printf(ErrStr);

CloseSocket();

}

1.3.2.9 setGenAll

int setGenAll (XTC3GenAllData *val, char* ErrMsg, BOOL TCP);

Description

setGenAll sets all XTC3_MAX_GEN_PARAM General Parameters in the
XTC/3 instrument.

Arguments:

XTC3GenAllData *val:

An XTC3_MAX_GEN_PARAM x 4 bytes structure that will contain
XTC3_MAX_GEN_PARAM General Parameters sent to the instrument.

char* ErrMsg

BOOL TCP

Example

// This example sends all the General Parameters to the XTC/3
// instrument
#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);
XTC3GenAllData val;
int i = 0;
val.m_Data[i++] = 63; // This is an XTC/3M -> Process to run = 63
val.m_Data[i++] = 0; // Do NOT Start Layer Without Backup Xtal
val.m_Data[i++] = 1; // Stop on Alarms
val.m_Data[i++] = 0; // Do NOT Stop On Max Power
val.m_Data[i++] = 0; // Deposit Mode
val.m_Data[i++] = 1; // Test ON
val.m_Data[i++] = 0; // Sensor 1 Type: SINGLE
val.m_Data[i++] = 0; // Sensor 2 Type: SINGLE
val.m_Data[i++] = 1; // Source Control Voltage: 0 to -10
val.m_Data[i++] = 0; // Recorder Mode : RATE
val.m_Data[i++] = 1; // Recorder Range: 1000

Advertising