C Language Programs
All of the C language example programs in this chapter are written for
the 82335 HP-IB Interface Card using the HP-IB Command Library
for C. Unless otherwise noted, the library functions used in the example
programs are compatible with the ANSI C standard.
All of the C programs were compiled and tested used the following
compilers:
• Microsoft® QuickC® Version 2.0
• Borland® Turbo C®++ Version 1.0
Compiling and Linking a C Program
To run a program, first compile and link the program to make an
executable file. To compile and link a program:
• Make sure the necessary PATH statements have been added to your
AUTOEXEC.BAT file to enable the compiler to find the library and
header files (see your C language manual to specify the proper paths).
• Link the appropriate HP-IB C library file for your compiler (the file is
located on the HP-IB Command Library disk that came with the
HP-IB Interface Card). Use the appropriate library file:
clhpib.lib
for Microsoft® QuickC®
tchhpib.lib
for Borland® Turbo C®++
• If you are not compiling in the "large" or "huge" memory model,
include the "CFUNC.H" header file in your program (the file is located
on the HP-IB Command Library disk that came with your HP-IB
Interface Card).
6
Chapter 6 Application Programs
C Language Programs
231