beautypg.com

C-language host interface library example programs – HP VXI E1432A User Manual

Page 36

background image

C-Language Host Interface Library example programs

The HP E1432A C-Language Host Interface Library comes with several
example programs, which help demonstrate how to use the library. These
example programs are found in the “/opt/e1432/examples” directory or the
\Hpe1432\demo\ directory. The programs in this directory are all very
small, so that they will be easily understood and easy to copy into a real
application.

The files in the examples directory are:

Makefile

A unix Makefile which can be used to compile all of the programs in the examples
directory.

README

A file containing the information given here.

detect.c

Shows how to use SICL calls to find the logical addresses of the HP E1432A modules
in a system.

example.c

Shows the basics of setting up an E1432A, starting a measurement, and reading a
block of data.

intr.c

Shows how to set up SICL and an HP E1432A to use interrupts for data collection.

src_intr.c

Shows how to set up SICL and an HP E1432A to use interrupts with a 1D4 Source
board, for overload shutdown and overread.

tachmon.c

Shows how to monitor a tach channel signal using the other inputs in the HP E1432A
module.

throughput

A directory containing example programs for throughput to and post-processing from
an HP E1562A disk module.

Demo Programs

In addition to example programs, the HP E1432A Host Interface library also
comes with demo programs. These programs are found in the
“/opt/e1432/demo” directory.

One of these demo programs, called “semascope”, demonstrates that the HP
E1432A hardware and software are working properly. When run, it
identifies the HP E1432A modules in the VXI system, runs a measurement
using the HP E1432A modules that it finds, and plots the results in X11
windows. This program is not meant to be an example of how to use the
HP E1432A library, although we do provide the source code.

Other demo programs include “rpmtrig” and “rpmtrig2”.

HP E1432A User's Guide

Getting Started With the HP E1432A

2-17

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com