©
National Instruments Corporation
29
NI USB-6008/6009 User Guide and Specifications
Measurement Studio
If you program your NI-DAQmx-supported device in Measurement Studio using Visual C# or Visual
Basic .NET, you can interactively create channels and tasks by launching the DAQ Assistant from MAX
or from within Visual Studio. You can use Measurement Studio to generate the configuration code based
on your task or channel. Refer to the
DAQ Assistant Help
for additional information about generating
code.
The
NI Measurement Studio Help
is fully integrated with the Microsoft Visual Studio help. To view this
help file in Visual Studio, select
Measurement Studio»NI Measurement Studio Help
. For
information related to developing with NI-DAQmx, refer to the following topics within the
NI Measurement Studio Help
:
•
For step-by-step instructions on how to create an NI-DAQmx application using the Measurement
Studio Application Wizard and the DAQ Assistant, refer to
Walkthrough: Creating a Measurement
Studio NI-DAQmx Application
.
•
For help with NI-DAQmx methods and properties, refer to
NationalInstruments.DAQmx
Namespace
and
NationalInstruments.DAQmx.ComponentModel Namespace
.
•
For conceptual help with NI-DAQmx, refer to
Using the Measurement Studio NI-DAQmx .NET
Library
and
Developing with Measurement Studio NI-DAQmx
.
•
For general help with programming in Measurement Studio, refer to
Getting Started with the
Measurement Studio Class Libraries
.
To create an application in Visual Basic .NET or Visual C#, follow these general steps:
1.
In Visual Studio, select
File»New»Project
to launch the New Project dialog box.
2.
In the Project types pane, expand the
Visual Basic
or
Visual C#
node, depending on which
language you want to create the project in, and select
Measurement Studio
.
3.
Choose a project type. You add DAQ tasks as a part of this step.
ANSI C without NI Application Software
The
NI-DAQmx Help
contains API overviews and general information about measurement concepts.
Select
Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help
.
The
NI-DAQmx C Reference Help
describes the NI-DAQmx Library functions, which you can use with
National Instruments data acquisition devices to develop instrumentation, acquisition, and control
applications. Select
Start»All Programs»National Instruments»NI-DAQ» Text-Based Code
Support»NI-DAQmx C Reference Help
.
.NET Languages without NI Application Software
With the Microsoft .NET Framework version 2.0 or later, you can use NI-DAQmx to create applications
using Visual C# and Visual Basic .NET without Measurement Studio. You need Microsoft Visual Studio
.NET 2005 or later for the API documentation to be installed.
The installed documentation contains the NI-DAQmx API overview, measurement tasks and concepts,
and function reference. This help is fully integrated into the Visual Studio documentation. To view the
NI-DAQmx .NET documentation, go to
Start»All Programs»National Instruments»NI-DAQ»
Text-Based Code Support
. For function reference, refer to the
NationalInstruments.DAQmx
Namespace
and
NationalInstruments.DAQmx.ComponentModel Namespace
topics. For conceptual
help, refer to the
Using the Measurement Studio NI-DAQmx .NET Library
and
Developing with
Measurement Studio NI-DAQmx
sections.
To get to the same help topics from within Visual Studio 2005 or 2008, go to
Help»Contents
and select
Measurement Studio
from the
Filtered By
drop-down list. To get to the same help topics from within