Walkthrough: Creating a
Measurement Studio NI-DAQmx
Application
This walkthrough is designed to help you learn how to create an
NI-DAQmx application by taking you through the following steps:
Setting up the projectUsing 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 taskUsing 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 taskUsing 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.
Before You Begin
The following components are required to complete this walkthrough:
Visual Studio 2005
Measurement Studio 8.0.1 or later (Professional or Enterprise
package)
NI-DAQmx 8.1 or later
NI-DAQmx-supported DAQ device or simulated device
For information about installing and configuring your DAQ device, refer to
the DAQ Getting Started Guide. You can also use simulation 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 Studio Walkthrough
2
ni.com
Measurement & Automation Explorer Help for NI-DAQmx. To open this
help, select StartAll ProgramsNational InstrumentsMeasurement
& Automation. In Measurement & Automation Explorer (MAX), select
HelpHelp TopicsNI-DAQmxMAX Help for NI-DAQmx. For the
purposes of this walkthrough, the NI PCI-6280 device of the M Series DAQ
family is recommended.
To Set Up the Project
1. Open Visual Studio from StartAll ProgramsMicrosoft Visual
Studio 2005Microsoft Visual Studio 2005.
2.
Select FileNewProject. The New Project dialog box launches.
3.
In the Proj