Walkthrough: Creating a Measurement Studio NI-DAQmx Application

Similar documents
DAQ Getting Started Guide

Coupling Microsoft Excel with NI Requirements Gateway

Coupling Microsoft Visio with NI Requirements Gateway

Measurement Studio. Contents RELEASE NOTES

LabVIEW DSP Test Integration Toolkit for TI DSP

Getting Started with the LabVIEW Mobile Module Version 2009

Getting Started with the LabVIEW Mobile Module

Three Levels of Data-Logging Software from National Instruments

LabVIEW Report Generation Toolkit for Microsoft Office

System Overview and Terms

NI Real-Time Hypervisor for Windows

NI InsightCM Server Version 1.0

NI 6601/6602. Contents CALIBRATION PROCEDURE. ni.com/manuals

LABVIEW DSP TEST TOOLKIT FOR TI DSP

Getting Started Manual

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

Microsoft Office 2010

NI PXI Installing Your PXI Board INSTALLATION GUIDE

Using the NI 17xx Smart Camera Direct Drive Lighting Controller

How To Write A Librao Low Voltage Differential (Lvds) Module On An Nio 6585 Fuserio (Flexrio) Power Supply (Femaleseo) And Power Supply On An Iphone Or Ip

Introduction to Data Acquisition

Deploying the Workspace Application for Microsoft SharePoint Online

NI-XNET Hardware and Software

How To Use Vision Builder Ai With An Inspection System

Cloud Attached Storage

DEPLOYING A VISUAL BASIC.NET APPLICATION

Microsoft Office Access 2007 Basics

Avery Wizard: Using the wizard with Microsoft Word. This is a simple step-by-step guide showing how to use the Avery wizard in word

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

EventTracker: Support to Non English Systems

NI-DAQ mx Base 3.x. Contents GETTING STARTED GUIDE

Lab 3: Introduction to Data Acquisition Cards

Data Acquisition in LabVIEW

Online Backup and Recovery Manager Setup for Microsoft Windows.

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

Cloud Attached Storage

CRM Knowledge Base. Contents

The service note describes the basic steps to install a ip camera for the DVR670

StarWind iscsi SAN Software: Tape Drives Using StarWind and Symantec Backup Exec

Unpack and Install the Devices, Accessories, and Cables

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Configuring Network Load Balancing with Cerberus FTP Server

Cloud Attached Storage

What is a Mail Merge?

Siemens and National Instruments Deliver Integrated Automation and Measurement Solutions

Microsoft Access 2007 Advanced Queries

for Sage 100 ERP Business Insights Overview Document

Defender EAP Agent Installation and Configuration Guide

About SharePoint Server 2007 My Sites

Adobe Acrobat: Creating Interactive Forms

Installing LearningBay Enterprise Part 2

Managing Software Updates with System Center 2012 R2 Configuration Manager

Mail Merge Creating Mailing Labels 3/23/2011

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Backing Up and Restoring Microsoft Hyper-V Server Virtual Machines. Cloud Attached Storage. February 2014 Version 4.0

About Measurement Studio

Measurement Studio. Contents RELEASE NOTES

StarWind iscsi SAN Software: Using an existing SAN for configuring High Availability storage with Windows Server 2003 and 2008

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers 1.0 For the Keil MCB2300

EET 310 Programming Tools

Use the below instructions to configure your wireless settings to connect to the secure wireless network using Microsoft Windows Vista/7.

Scripting with CAMMaster And Visual Basic.NET

Beginning PowerPoint: Hands-On Exercise (Windows XP) Regent University

How to install and use the File Sharing Outlook Plugin

Table of Contents. 1. Content Approval...1 EVALUATION COPY

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

LOAD BALANCING 2X APPLICATIONSERVER XG SECURE CLIENT GATEWAYS THROUGH MICROSOFT NETWORK LOAD BALANCING

Product Development. Using Critical Path EVM for the Microsoft Project Desktop Application Readme

Importing Custom Reports and Dashboard In OnCommand Report

Set Up Your MXI -Express x1 System

Crystal Reports Installation Guide

Distance-Learning Remote Laboratories using LabVIEW

Oracle Sales Cloud Reporting and Analytics Overview. Release 13.2 Part Number E January 2014

Working with SQL Server Integration Services

Guide to PDF Publishing

Setting Up a New Project

Windows Server Update Services 3.0 SP2 Step By Step Guide

Autodesk Inventory Advisor Quick Start Guide

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

Tutorial Build a simple IBM Rational Publishing Engine (RPE) template for IBM Rational DOORS

NI USB-6008/6009 OEM USER GUIDE

Composite C1 Load Balancing - Setup Guide

Business Portal for Microsoft Dynamics GP Field Service Suite

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

StarWind iscsi SAN Software: Using StarWind with MS Cluster on Windows Server 2008

DAQ in MATLAB HANS-PETTER HALVORSEN,

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

NETWRIX CHANGE NOTIFIER

Monitoring ESX/ESXi servers with Verax NMS & APM

SignalExpress. Getting Started with SignalExpress. Getting Started with SignalExpress. August 2004 Edition Part Number A-01

Desktop, Web and Mobile Testing Tutorials

Producing Standards Based Content with ToolBook

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

Creating Dashboards for Microsoft Project Server 2010

FTP Server Configuration

When you publish data to a SharePoint site, you first

Knowledgebase Article

PCI Express Clock Specifications and Effect on NI PXIe-PCIe8375 Interoperability. White Paper

Transcription:

Walkthrough: Creating a Measurement Studio NI-DAQmx Application Note To complete this walkthrough, you must have either the Measurement Studio Professional or Measurement Studio Enterprise package installed. This walkthrough requires the DAQ Assistant, which is not included in the Measurement Studio Standard package. Before You Begin This walkthrough is designed to help you learn how to create an NI-DAQmx applicationby taking you through the following steps: Setting up the project Using the Measurement Studio DAQ Application Wizard, you will create a new project that references the NI-DAQmx assembly and launches the DAQ Assistant to create an NI-DAQmx task. Configuring your task Using the DAQ Assistant, you will interactively configure and save your task. The wizard then generates code to reflect your configuration settings. The wizard also generates a component that provides common operations for your task and integration with the Windows Forms designer. Creating a custom user interface for the task Using the DAQ Component UI generation wizard, you will create a custom user interface that uses the DAQ component you created to automatically plot the DAQ signal. The following components are required to complete this walkthrough: Visual Studio 2005 or Visual Studio 2008 Measurement Studio 8.0.1 or later (Professional or Enterprise package) for Visual Studio 2005 or Measurement Studio 8.5 or later (Professional or Enterprise package) for Visual Studio 2008 NI-DAQmx 8.1 or later for Visual Studio 2005 or NI-DAQmx 8.7.1 or later for Visual Studio 2008 NI-DAQmx-supported DAQ device or simulated device

To Set Up the Project For information about installing and configuring your DAQ device, refer to the DAQ Getting Started Guide. You can also use a simulated device to complete this walkthrough. For information on how to create an NI-DAQmx simulated device, refer to Creating NI-DAQmx Simulated Devices in the Measurement & Automation Explorer Help for NI-DAQmx. To open this help, select Start»All Programs»National Instruments» Measurement & Automation. In Measurement & Automation Explorer (MAX), select Help»Help Topics»NI-DAQmx»MAX Help for NI-DAQmx. For the purposes of this walkthrough, the NI PCI-6280 device of the M Series DAQ family is recommended. 1. Open Visual Studio from Start»All Programs»Microsoft Visual Studio 2005»Microsoft Visual Studio 2005 or Start»All Programs» Microsoft Visual Studio 2008»Microsoft Visual Studio 2008. 2. Select File»New»Project. The New Project dialog box launches. In the Project types pane, expand the Visual C# or Visual Basic node, depending on which language you want to create the project in, and select Measurement Studio. Code generation works in both languages. 3. 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. Measurement Studio Walkthrough 2 ni.com

National Instruments Corporation 3 Measurement Studio Walkthrough

4. In the Add DAQ Component dialog box, 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. Measurement Studio Walkthrough 4 ni.com

To Configure Your Task 1. In the Create New dialog box of the DAQ Assistant, you can begin to interactively define your DAQ task. Select Acquire Signals, and then Analog Input as the measurement type for your task. 2. Next, select Voltage. National Instruments Corporation 5 Measurement Studio Walkthrough

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 a simulated device in this walkthrough. For more information, refer to Creating NI-DAQmx Simulated Devices in the Measurement & Automation Explorer Help for NI-DAQmx. Measurement Studio Walkthrough 6 ni.com

4. In the Edit DAQ Task dialog box, 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. National Instruments Corporation 7 Measurement Studio Walkthrough

5. To complete the DAQ configuration, select the N Samples Acquisition Mode in the Timing Settings section. 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 test in the DAQ Assistant to test the task and 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 box to complete the configuration of your DAQ task and to launch the Configure DAQ Component UI wizard. Measurement Studio Walkthrough 8 ni.com

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. National Instruments Corporation 9 Measurement Studio Walkthrough

The wizard also generates event handlers and code to acquire data and present it on your generated user interface. 3. Press <F5> to run the application. Measurement Studio Walkthrough 10 ni.com

4. After you have started the application, click the Read button to begin acquiring data from your DAQ device. What s Next 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. For more information about creating and using tasks in Measurement Studio, refer to Using the Measurement Studio NI-DAQmx.NET Library. You can also look at examples that ship with NI-DAQmx. Refer to Measurement Studio NI-DAQmx.NET Examples for the locations of these examples. National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on ni.com/legal for more information about National Instruments trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or ni.com/patents. 2007 2008 National Instruments Corporation. All rights reserved. 351524B-01 Apr08