6 setgenparameter – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual
Page 28
1 - 14
IP
N 07
4-
45
4-
P1
B
XTC/3 Communications Library Operating Manual
1.3.2.6 setGenParameter
int setGenParameter (unsigned long *val, int index , char* ErrMsg, BOOL TCP);
Description
SetGenParameter sets the value of a General Parameter in the instrument.
Arguments
unsigned long *val:
a 4 byte value of a General Parameter.
int index:
The index of the General Parameter as described in the User’s Guide
document.
char* ErrMsg
unsigned short *len
BOOL TCP
Example
// This example will change the "Audio Feedback" to Yes.
// The index of this parameter is 12.
#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 long val = 1; // 1 for YES and 0 for NO
BOOL TCP = TRUE; // TCP/IP comm
setGenParameter(&val, 12, ErrStr, TCP);
if(*ErrStr == 0)
printf("Data Transfer successful\n");
else
printf(ErrStr);
CloseSocket();
}