
Building a VISA Application in Windows
2
Agilent VISA User’s Guide
15
•
Click at the bottom of the list box and type:
C:\Program Files\IVIfoundation\IVI\VISA\
winnt\include
(This assumes that you used the default installation location for
VISA. If VISA had been installed previously, it may be in a
different location.)
•
Select
Library Files
from the
Show Directories For
list box.
•
Click at the bottom of the list box and type:
C:\VXIPNP\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.
Sample C/C++ Program Source Code
The source file
idn.c
follows. An explanation of the various function
calls in the sample is provided directly after the program listing. If the
program runs correctly and your PC is connected to a 54622A
oscilloscope, the following is an example of the program output.
Summary of Contents for E2094S
Page 6: ...6 Agilent VISA User s Guide ...
Page 116: ...116 Agilent VISA User s Guide 4 Programming via GPIB and VXI ...
Page 126: ...126 Agilent VISA User s Guide 5 Programming via LAN ...
Page 143: ...Glossary Agilent VISA User s Guide 143 Windows notification area See notification area ...