Using the DAQ Assistant in Measurement Studio

Publish Date: Jun 03, 2014 | 13 Ratings | 3.00 out of 5 | Print | 1 Customer Review | Submit your review

Table of Contents

  1. Overview
  2. Before You Begin
  3. Creating a Measurement Studio Visual C# Project
  4. Additional Documentation

The National Instruments Getting Started with NI-DAQmx Series is aimed at helping you learn NI-DAQmx programming fundamentals. Through video and text tutorials, this series will take you from verifying your device's operation in Measurement & Automation Explorer (MAX) to programming data acquisition applications using LabVIEW. It is intended for both the beginner who wants to learn how to use the DAQ Assistant, as well as the experienced user who wishes to take advantage of advanced NI-DAQmx functionality.

1. Overview

This tutorial explains how to use the DAQ Assistant to quickly develop and deploy a Visual Studio application that uses data acquisition and Measurement Studio. The DAQ Assistant is an easy-to-use graphical interface for configuring measurement tasks and channels and for customizing timing, triggering, and scales without programming. Using the DAQ Assistant, you can configure a measurement task for all of your data acquisition applications and then generate code to configure and use the task in your application program. 

 

Back to Top

2. Before You Begin

To use this tutorial, you must have the following software and hardware installed on your system:

  • Visual Studio 2005, 2008, 2010, or 2012
  • Measurement Studio 8.0.1 or later (Professional or Enterprise package). Refer to the Measurement Studio Readme for information about supported versions of Visual Studio. The Measurement Studio Readme files are available in the root folder of the installation CD and are linked from the Autorun menu.
  • NI-DAQmx 8.1 or later
  • A DAQ device that is supported by NI-DAQmx. Refer to the NI-DAQ Readme file for a list of devices supported by NI-DAQmx. You may also create a simulated device in Measurement & Automation Explorer (MAX) in place of an actual data acquisition device. 


Refer to the DAQ Quick Start Guide and the device documentation for information about installing and configuring the software and hardware.

Back to Top

3. Creating a Measurement Studio Visual C# Project

To set up the project:

  1. Open Visual Studio from Start»All Programs»Microsoft Visual Studio Version»Microsoft Visual Studio Version.
  2. Select File»New»Project. The New Project dialog box launches.
  3. In the Project types pane, expand the Visual C# or Visual Basic node, depending on which language you want to use to create your project, and select Measurement Studio. Code generation works in both languages.
  4. In the Templates pane, select NI DAQ Windows Application. Specify MyDAQmxProject for Name and specify a Location of your choice. Click OK. The Measurement Studio DAQ Application Wizard launches.

    Visual Studio 2010 or 2012:


    Visual Studio 2005 or 2008:

  5. In the Add DAQ Component dialog, you can choose to create a new project task, create a new MAX task, create a reference to a MAX task, copy a MAX task to a project task, or copy an existing .mxb. For this walkthrough, select Create a new project task and click Finish.

    The Measurement Studio DAQ Application Wizard automatically sets up your data acquisition project and launches the DAQ Assistant.

To configure your task:

  1. In the Create New CVI/MS Project-Based Task dialog of the DAQ Assistant, you can begin to interactively define your DAQ task. Select Acquire Signals as the measurement type for your task.
  2. Next, select Analog Input»Voltage.


  3. From the Supported Physical Channels tree in the Physical tab, select the physical channel, such as ai1, on the DAQ device to which you connected the voltage signal. Click Finish.
    Note    You can also use simulation in this walkthrough. For more information, refer to Creating NI-DAQmx Simulated Devices in the Measurement & Automation Explorer Help for NI-DAQmx.


  4. Using the DAQ Assistant, you can edit the configuration of your DAQ task. If the embedded DAQ Assistant help is not open by default, click the Show Help button in the upper-right corner of the window to display the help.
  5. To complete the DAQ configuration, select the N Samples Acquisition Mode in the Timing Settings section of the Configuration tab. For more information on timing, refer to Timing in the NI-DAQmx Help.

  6. Next, click the Run button in the toolbar near the top of the Edit DAQ Task dialog box. The test runs automatically. You can run the project task test in the DAQ Assistant to make sure you connected the signal properly. If necessary, you can modify the settings before any code is generated.

  7. Click the Finish button in the Edit DAQ Task dialog to complete the configuration of your DAQ task and to launch the Configure DAQ Component UI wizard.

To create a custom user interface for the task

  1. In the Configure DAQ Component UI wizard, you can customize and preview a user interface and code for your task.

  2. Click Finish to generate the task user interface in your project form.



    The wizard also generates event handlers and code to acquire data and present it on your generated user interface.

    Visual Studio 2010 or 2012:



    Visual Studio 2005 or 2008:

  3. Press <F5> to run the application.
  4. After you have started the application, click the Read button to begin acquiring data from your DAQ device.

Back to Top

4. Additional Documentation

To learn more about tasks, channels, and other NI-DAQmx concepts, refer to the NI-DAQmx Help located at Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help.

Back to Top

Customer Reviews
1 Review | Submit your review

Focus on making things simple ,avoid clutter and complexity  - Jun 11, 2016

totally confusing .!! . Trying to talk to simmple Digital I/O car. PCI6503 with VB.NET 2013 Here is my experience so far - 1. Overly complicate user manual . 2. All kinds of software and terms that are totally confusing and it is not clear how they work together or what is frre and what you have to purchase See text below NI-DAQmx programming fundamentals. Through video and text tutorials, this series will take you from verifying your device's operation in Measurement & Automation Explorer (MAX) to programming data acquisition applications using LabVIEW. It is intended for both the beginner who wants to learn how to use the DAQ Assistant, as well as the experienced user who wishes to take advantage of advanced NI-DAQmx functionality. The first question is - What is Ni-DAQmx , What is Measurement and Automation Explorer (MAX) What is DAQ Assistant ? Why are they all needed ? Why confuse the user with all these terms . It is overly complicated . See the User manual for the PCI 6503 manual . It is AWFUL !! I don't have the time for this -life it too short . - IT IS TOO COMPLICATED . MAKE IT SIMPLE!! My impression : NI is a company that has made the simple complicated and the complex even more complicated . It needs to focus on keeping simple thinks simple and making complex things simple . This is not achieved on my quick research on how to integrate a PCI 6503 card into VB.NET . All I want to do is control 3 digital I/O lines , turn them on and off . Does this have to be so complicated ?

Bookmark & Share


Ratings

Rate this document

Answered Your Question?
Yes No

Submit