EasyManua.ls Logo

Keysight 34420A - C Language Programs; Compiling and Linking a C Program

Keysight 34420A
307 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 Application Programs
254 Keysight 34420A User’s Guide
C Language Programs
All of the C language example programs in this chapter are written for the 82335
GPIB Interface Card using the GPIB 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 GPIB C library file for your compiler (the file is located on
the GPIB Command Library disk that came with the GPIB Interface Card). Use
the appropriate library file:
clgpib.lib for Microsoft® QuickC®
tchgpib.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 GPIB
Command Library disk that came with your GPIB Interface Card).

Table of Contents

Related product manuals