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

Using NI-DAQmx Task and the DAQ Assistant With Microsoft Visual Studio .NET 2003

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: Measurement Studio>>Enterprise Edition (Full Development System), Measurement Studio>>Professional Edition (Base Package)

Problem:
How can I use the DAQ Assistant with Visual Studio .NET 2003 to setup my NI-DAQmx Task?

Solution:
You can use the DAQ Assistant to create NI-DAQmx Tasks in Visual Studio .NET with MAX by following the steps below.
  1. Launch Visual Studio .NET and open your project.

  2. Select File » Add New Item
  3. .
  4. In the "Add New Item" dialog box, select Measurement Studio under Categories and then DAQmx Task.

  5. Click Open. You now have two options, either New Item or Copy Global Task. If you have already set up your NI-DAQmx Task in MAX, select Copy Global Task, select your task, and skip to step 6 of these instructions. If you do not already have a task, select New Item, which will invoke the DAQ Assistant.

  6. If you invoke the DAQ Assistant, select the type of measurement you want to perform and follow the series of menus to configure the channels.

  7. Once you have selected your channels, a new tab will appear in your Visual Studio project. If you have already set up your task in MAX and selected Copy Global Task this new tab will also appear. This tab is identical to the one you would set up in MAX. Here you can configure voltage ranges, scaling, timing, and triggering, along with adding channels.

In the Solution Explorer window you will see your task, such as DAQmxTask1.mxb. Right-click on the .mxb file and select View Code. This is the autogenerated task configuration code. You can now use this task in your program for data I/O.

Related Links:
Developer Zone Tutorial: Using the DAQ Assistant in Measurement Studio
Developer Zone Tutorial: What is Measurement Studio?


Attachments:





Report Date: 09/28/2004
Last Updated: 08/22/2007
Document ID: 3DRCDETY

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