VXI VT1433B manual C-LanguageHost Interface Library example programs, Demo Programs

Models: VT1433B

1 203
Download 203 pages 12.71 Kb
Page 35
Image 35
C-Language Host Interface Library example programs

VT1433B User's Guide

Getting Started With the VT1433B

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.”

2-17

Page 35
Image 35
VXI VT1433B manual C-LanguageHost Interface Library example programs, Demo Programs