Using NI-IMAQdx for C

NI-IMAQdx

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 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.

You can use the additional Image functions installed with NI-IMAQdx. These functions use the NI Vision memory management feature, which automatically allocates the memory for your image. To use these Image functions, first create an image using imaqCreate, and then pass that image to an acquisition function.