National Instruments IEEE 1394 Automobile Accessories User Manual


 
Chapter 5 Using NI-IMAQ for IEEE 1394 Cameras in C and .NET
NI-IMAQ for IEEE 1394 Cameras User Manual 5-2 ni.com
include files under the include subdirectory. The import libraries for
Microsoft Visual C++ are located under the
lib\msvc subdirectory.
If you have IMAQ Vision for LabWindows/CVI installed on your
computer, you can use the additional Image functions installed with
NI-IMAQ for IEEE 1394 Cameras. These functions use the IMAQ 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.
If you are using LabWindows/CVI but do not have IMAQ Vision installed,
you must manually allocate the memory for your image. Use the
ImageWidth, ImageHeight, and BytesPerPixel attributes to determine
how much memory to allocate.
Using NI-IMAQ for IEEE 1394 Cameras for Microsoft
Visual Studio .NET 2003
NI-IMAQ for IEEE 1394 Cameras installs the following assemblies that
enable .NET languages to interact with the driver software:
NationalInstruments.CWIMAQ1394.Interop.dll
NationalInstruments.AxCWIMAQControlsLib.Interop.dll
Uses IMAQ Vision to display images with the included Viewer control
The
CWIMAQ1394 assembly is installed in the
<NI-IMAQ 1394>\dotNET\Assemblies\Current directory. The
AxCWIMAQControlsLib assembly is installed in the
<Vision>\dotNET\Assemblies\Current directory. Refer to the
NI-IMAQ for IEEE 1394 Cameras Function Reference Help for
information about the properties, methods, and events available with these
assemblies.
Creating a New .NET Application
You first must add a reference to the NI-IMAQ 1394 assembly in your
project when creating a new application. Complete the following steps to
add a reference to the
NI-IMAQ 1394 assembly in Microsoft Visual
Studio .NET 2003:
1. Create a new application, or open an existing one.
2. Select Project»Add Reference.
3. Under the .NET Framework Components tab, select
NI-IMAQ 1394.