User`s guide
Building a VISA Application in Windows 2
Agilent VISA User’s Guide 15
• Select Tools > Options from the menu.
• Click the Directories tab to set the include file path.
• Select Include Files from the Show Directories For list box.
• Click at the bottom of the list box and type:
C:\Program Files\VISA\winnt\include
(This assumes that you used the default installation
location for VISA.)
• Select Library Files from the Show Directories For list box.
• Click at the bottom of the list box and type:
C:\Program Files\VISA\winnt\lib\msc
(This assumes that you used the default installation
location for VISA.)
6 Add or create your C or C++ source files. For example, to
build the sample described below, select Project > Add to
Project > Files... and type or browse to C:\
Program
Files\Agilent\IO Libraries Suite\
ProgrammingSamples\C\VISA\idn.c.
7 Click Build > Rebuild All to build the VISA program.
Microsoft Visual Studio .NET
For information on building a VISA application in Visual
Studio .NET, see the VISA Online Help.
Sample VISA Program (C/C++)
This section lists a sample program called idn that queries a
GPIB instrument for its identification string. This sample
assumes a Win32 console application using Microsoft Visual
Studio® on Windows.
The idn sample files are in the ProgrammingSamples
directory under the Agilent IO Libraries Suite installation
directory. By default, the sample files are in
C:\Program Files\Agilent\IO Libraries Suite\
ProgrammingSamples\C\VISA.