User's Manual
Table Of Contents
- NI-IMAQdx User Manual
- Support
- Important Information
- Contents
- Chapter 1 Introduction to NI-IMAQdx
- Chapter 2 Basic Acquisition with NI-IMAQdx
- Chapter 3 Advanced Programming with NI-IMAQdx
- Camera Attributes
- Broadcasting
- Scalable Image Size
- Trigger Modes
- Trigger Modes for IIDC Cameras
- Trigger Mode 0
- Figure 3-3. Timing Diagram for Trigger Mode 0
- Trigger Mode 1
- Figure 3-4. Timing Diagram for Trigger Mode 1
- Trigger Mode 2
- Figure 3-5. Timing Diagram for Trigger Mode 2
- Trigger Mode 3
- Figure 3-6. Timing Diagram for Trigger Mode 3
- Trigger Mode 4
- Figure 3-7. Timing Diagram for Trigger Mode 4
- Trigger Mode 5
- Figure 3-8. Timing Diagram for Trigger Mode 5
- Trigger Modes for GigE Vision Cameras
- Trigger Modes for IIDC Cameras
- Chapter 4 Using NI-IMAQdx in LabVIEW
- Chapter 5 Using NI-IMAQdx in C and .NET
- Appendix A Register-Level Programming
- Appendix B Technical Support and Professional Services
- Glossary
- Index

Chapter 5 Using NI-IMAQdx in C and .NET
© National Instruments Corporation 5-2 NI-IMAQdx User Manual
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.
Using NI-IMAQdx for Microsoft Visual Studio .NET
NI-IMAQdx installs the following assemblies that enable .NET languages
to interact with the driver software:
•
NationalInstruments.CWNIIMAQDX.Interop.dll
• NationalInstruments.AxCWNIIMAQDXControlsLib.Interop.dll
Uses NI Vision to display images with the included Viewer control
The
CWIMAQdx assembly is installed in the <NI-IMAQdx>\dotNET\
Assemblies\Current
directory. The AxCWIMAQControlsLib
assembly is installed in the
<Vision>\dotNET\Assemblies\Current
directory. Refer to the NI-IMAQdx 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-IMAQdx assembly in your project
when creating a new application. Complete the following steps to add a
reference to the
NI-IMAQdx assembly in Microsoft Visual Studio .NET
2003 or later:
1. Create a new application, or open an existing one.
2. Select Project»Add Reference.
3. Under the .NET Framework Components tab, select NI-IMAQdx.
If you need to display acquired images, you also must add an NI Vision
Viewer control to your toolbox and to your form. Complete the following
steps to add the NI Vision Viewer control to the Microsoft Visual
Studio .NET toolbox.
1. With your project open, open a form in Design View.
2. Open the Toolbox (View»Toolbox).
3. Select the category in which you want the NI Vision controls to appear
(General, Components, and so on).