National Instruments NI-IMAQdx Automobile Accessories User Manual


 
© National Instruments Corporation 5-1 NI-IMAQdx User Manual
5
Using NI-IMAQdx in C and .NET
This chapter briefly describes how to use NI-IMAQdx functions in
Microsoft Visual C and Microsoft Visual Studio .NET.
Using NI-IMAQdx for C
This section outlines the process for developing NI-IMAQdx applications
using C. Detailed instructions about creating project and source files are not
included. For information about creating and managing project files, refer
to the documentation included with your particular development
environment.
Note The generic and high-level functions appear within each function class in the logical
order you might need to use them. The low-level functions appear within each function
class in alphabetical order.
When programming, use the following guidelines:
Include the
niimaqdx.h header file in all C source files that use
NI-IMAQdx functions. Add this file to the top of your source files.
•Add the
niimaqdx.lib import library to your project. In some
environments, you can add import libraries simply by inserting them
into your list of project files. In other environments, you can specify
import libraries under the linker settings portion of the project file.
When compiling, indicate where the compiler can find the NI-IMAQ
header files and shared libraries. You can find most of the files you
need for development under the NI-IMAQ target installation directory.
If you choose the default directory during installation, the target
installation directory is
C:\Program Files\National
Instruments\NI-IMAQdx
. You can find the include files under the
include subdirectory. The import libraries for Microsoft Visual C++
are located under the
lib\msvc subdirectory.