Demo programs 2-17, C-language host interface library example programs – VXI VT1433B User Manual

Page 35

Advertising
background image

C-Language Host Interface Library example programs

The VT1432A 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 the VXIPNP\Hpe1432\examples\ 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 VT1433B
modules in a system.

example.c

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

intr.c

Shows how to set up SICL and a VT1433B to use interrupts for data collection.

src_intr.c

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

tachmon.c

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

throughput

A directory containing example programs for throughput to and post-processing
from a VT2216A disk module.

Demo Programs

In addition to example programs, the VT1432A Host Interface library also comes
with demo programs. These programs are found in the
VXIPNP\Hpe1432\examples\ directory.

One of these demo programs, called “semascope”, demonstrates that the VT1433B
hardware and software are working properly. When run, it identifies the
VT1433B modules in the VXI system, runs a measurement using the VT1433B
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 VT1432A library, although the source
code is not provided.

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

VT1433B User's Guide

Getting Started With the VT1433B

2-17

Advertising