7.2 Programming with the IVI-C Driver in various development environments
U5303A User's Manual
73
Program examples
You may build and run the example programs installed with the driver. They demonstrate driver usage
in a variety of application development environments.
Program examples can be found in
C:\Program Files\IVI Foundation\IVI\Drivers\AqMD3\Examples
7.2 Programming with the IVI-C Driver in various
development environments
IVI-C drivers are implemented using standard Windows DLL technology. Consequently, IVI-C drivers
can be used in a wide variety of development environments. The topics in this section provide detailed
instructions on how to access and use IVI-C drivers in a variety of popular development environments.
Each topic includes a complete example of IVI-C driver usage.
Using Visual C++
Explains how to use the IVI-C driver from Visual C++ .
Referencing the Driver
In order to access any of the driver functions, the proper header file (.h) must be included in the project
and the proper import library (.lib) must be referenced. This section demonstrates usage of the driver
using instrument-specific references.
All IVI-C driver programs must do the following:
#include "AqMD3.h"
Link to AqMD3.lib
Prefix function calls with "AqMD3_"
To use the AqMD3 specific driver, perform the following steps in Visual Studio.
1. In solution explorer, right-click on the project and choose
Properties
.
2. In the property pages dialog, expand the
Linker
node and select
Input
.
3. In the
Additional Dependencies
field, enter "AqMD3.lib".
4. Click
OK
.
5. In the main application source file (.cpp), add the following line to the top of the file:
#include "AqMD3.h
"
Visual Studio must know the path to your driver's library (.lib) and header (.h) files. You can enter the
following paths using the Tools, Options, Projects and Solutions, VC++ Directories dialog.
For Include Files (Win32 & x64) add: C:\Program Files (x86)\IVI Foundation\IVI\Include
For Library Files (Win32) add: C:\Program Files (x86)\IVI Foundation\IVI\Lib_\msc
For Library Files (x64) add: C:\Program Files (x86)\IVI Foundation\IVI\Lib_x64\msc
Note: For 32 bit operating systems paths start with: C:\Program Files\
Alternately, these paths may be entered in the Project Properties dialog, Configuration Properties,
C++ and Linker panes.