Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Load the NIDAQmx I/O Controls Library in LabWindows/CVI to Use the Functions in My Project?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 9.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I want to use the DAQmx custom control functions to programmatically create and configure DAQmx controls on my UIR. I know that I need the NIDAQmx I/O Controls library to gain access to these functions but it is not available. Where can I find the NIDAQmx I/O Controls library to add to my project?

Solution:
The NIDAQmx I/O Controls library contains functions such as NIDAQmx_NewTaskCtrl() and NIDAQmx_SetTaskCtrlAttribute(), for programmatically creating and configuring DAQmx custom controls on the UIR. You can see an example of these functions in use by looking at the shipping example located in:

[Documents and Settings]\All Users\Documents\National Instruments\CVI\samples\DAQmx\Analog In\Measure Voltage\Acq-Int Clk

LabWindows/CVI does not automatically load the NIDAQmx I/O Controls into the default Libraries so it is best to add it to your project. The daqmxioctrl.fp file for the NIDAQmx I/O Controls library is located in the [National Instruments]\Shared\CVI\toolslib\custctrl directory. In LabWindows/CVI, right-click your project and select Add Existing File... In the Add Files to Project window, browse to the daqmxioctrl.fp file, then add it to the project.

You can now use the NIDAQmx I/O Controls functions in your project.

Related Links:
KnowledgeBase 4U1BQJ5F: An Instrument Library is Not Showing Up Under the LabWindows/CVI Library Menu
KnowledgeBase 3UQG62A4: NI-DAQmx Library Not Appearing in LabWindows/CVI 8 After Installation

Attachments:





Report Date: 05/07/2009
Last Updated: 05/07/2009
Document ID: 4X69DPXU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit