Programming instructions

Programming Examples
Using the Programming Examples
Chapter 2 33
C/C++ programming language with the Microsoft Visual C++ 6.0 IDE
National Instruments PCI- GPIB interface card or Agilent GPIB interface card
National Instruments VISA Library or Agilent VISA library
COM1 or COM2 serial port available
LAN interface card
The Agilent BASIC examples were run on a UNIX 700 Series workstation.
Running C/C++ Programming Examples
To run the example programs written in C/C++ you must include the required files in the
Microsoft Visual C++ 6.0 project.
If you are using the VISA library do the following:
add the visa32.lib file to the Resource Files
add the visa.h file to the Header Files
If you are using the NI-488.2 library do the following:
add the GPIB-32.OBJ file to the Resource Files
add the windows.h file to the Header Files
add the Deci-32.h file to the Header Files
Refer to the National Instrument website for information on the NI-488.2 library and file
requirements. For information on the VISA library see the Agilent website or National
Instrument’s website.