//OptionsCompilerCodeGenerationModel: Set to Large

//OptionsDirectoriesInclude Directories: Add C:\EPCONNEC\INCLUDE

//OptionsDirectoriesLibrary Directories: Add C:\EPCONNEC\LIB

//Project Items: INST.CPP, E1429.CPP, SEGTST32.CPP, BSICL.LIB, EPCMSC.LIB

#include <stdlib.h> #include <stdio.h> #include "e1429.h"

#define BUFLEN 200

extern int ierrno;

int Measure(E1429 *Dig); int ReadData(E1429 *Dig);

/* *********************** Main *********************** */

void main(void) { int Errors; E1429 *Dig;

Errors = 0; ierrno = 0;

Dig = new E1429; if (!Dig->IsValid()) {

printf("Digitizer could not be opened (%s).\n", igeterrstr(igeterrno()));

if (Dig != NULL) delete Dig;

Dig = NULL; exit(1);

}

Errors += Measure(Dig); if (!Errors)

Errors += ReadData(Dig);

delete Dig; exit(0);

}

Continued on Next Page

Chapter 2

Using the Digitizer 75

Page 75
Image 75
HP E1429A manual On Next