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
GPIB
GPIB
GPIB
GPIB
GPIB
GPIB
Summary of Contents for 34420A
Page 1: ......
Page 2: ......
Page 13: ...1 Quick Start ...
Page 31: ...2 Front Panel Operation ...
Page 55: ...3 Features and Functions ...
Page 117: ...4 Remote Interface Reference ...
Page 200: ...5 Error Messages ...
Page 213: ...6 Application Programs ...
Page 245: ...6 Chapter 6 Application Programs Microsoft Excel Macro Example 245 ...
Page 246: ...Chapter 6 Application Programs Microsoft Excel Macro Example 246 ...
Page 247: ...7 Measurement Tutorial ...
Page 274: ...8 Specifications ...
Page 279: ...Dimensions Chapter 8 Specifications 34420A Nano Volt Micro Ohm Meter 280 ...
Page 294: ......