beautypg.com

7 getgenparameter – INFICON XTC/3 Thin Film Deposition Controller Communications Library Operating Manual User Manual

Page 29

background image

1 - 15

IP

N 07

4-

45

4-

P1

B

XTC/3 Communications Library Operating Manual

1.3.2.7 getGenParameter

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

Description

GetGenParameter gets the value of a General Parameter from the instrument.

Arguments:

unsigned long *val:

A 4 byte long that will contain the value of a General Parameter from the
instrument.

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 gets the "Recorder Mode".
// The index of this parameter is 9.
#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 = 0;

// 0 = Rate 1 = Thickness
// 2 = Power 3 = Rate Deviation

unsigned short len = 0;
char* Response[] =
{

"Rate",
"Thickness",
"Power",
"Rate Deviation"

};

BOOL TCP = TRUE; // TCP/IP comm
getGenParameter(&val, 9, ErrStr, &len, TCP);