Hi Guys,
I hope the following information will help someone in configuring VISA to work with Microsoft Visual Studio 2008 (MVS 2008).
The following steps pertaining to page 14-15 on "Agilent VISA
User’s Guide for IO Libraries Suite 15"
-Linking to VISA Libraries
Right-click on the project, Properties, Configuration Properties, Linker, Input, Additional Dependencies.
- For include directories:
Configuration Properties, C/C++, General, Additional Include Directories
- For Library directories:
Configuration Properties, Linker, Additional Library Directories
Regards,
Designer
I hope the following information will help someone in configuring VISA to work with Microsoft Visual Studio 2008 (MVS 2008).
The following steps pertaining to page 14-15 on "Agilent VISA
User’s Guide for IO Libraries Suite 15"
-Linking to VISA Libraries
Right-click on the project, Properties, Configuration Properties, Linker, Input, Additional Dependencies.
- For include directories:
Configuration Properties, C/C++, General, Additional Include Directories
- For Library directories:
Configuration Properties, Linker, Additional Library Directories
Regards,
Designer
The following is provided for reference:
Agilent VISA User's Guide for IO Libraries Suite 15
CHAPTER 2 PAGE 14-15
SECTION: Compiling and Linking VISA Programs (C/C++)
Microsoft Visual Studio 2008 Version 9.0 Development Environment::
1 Use the File menu to create a new project or open an existing project.
2 Select Project > Properties
- Click Configuration Properties > C/C++ > Code Generation. Verify Runtime Library is set to Multi-threaded DLL
- Click Configuration Properties > C/C++ > General. Ensure Additional Include Directories includes C:\Program Files\IVI Foundation\VISA\WinNT\include
(This assumes that you used the default installation location for VISA.)
- Click Configuration Properties > Linker > General. Ensure Additional Library Directories includes C:\Program Files\IVI Foundation\VISA\WinNT\lib\msc
(This assumes that you used the default installation location for VISA.)
- Click Configuration Properties > Linker > Input. Verify Additional Dependencies includes visa32.lib
3 Add or create your C or C++ source files. For example, to build the sample described below select Project > Add Existing Item... and type or browse to C:\Program Files\Agilent\IO Libraries Suite\ProgrammingSamples\C\VISA\idn.c
4 Select Build > Rebuild to build the VISA program.
wlf