National Instruments 374318A-01 用户手册

下载
页码 109
Chapter 4
Getting Started with Measurement Studio
4-2
ni.com
Walkthrough: Creating a Measurement Studio 
Application with Windows Forms Controls and Analysis 
in Visual Studio .NET 2003
Measurement Studio includes user interface controls, such as a waveform 
graph control and a gauge control, and analysis functionality such as signal 
generation and mathematical functions. This walkthrough is designed to 
help you learn how to add analysis and presentation functionality to a 
Windows Forms application by taking you through the following steps:
Setting up the project—Using the Measurement Studio Application 
Wizard, you will create a new project that references the Measurement 
Studio Analysis class library and Windows Forms controls.
Adding user interface controls to the project—Using the Toolbox 
and the Properties window, you will add and configure user interface 
controls, including a button, waveform graph, legend, gauge, and 
numeric edit.
Generating, plotting, and analyzing the data—Using 
NationalInstruments.Analysis.SignalGeneration.White
NoiseSignal
 and 
NationalInstruments.Analysis.Math.Statistics.Mean
you will generate data, plot the generated data on a waveform graph, 
and calculate the mean of the data.
Customizing the user interface—Using the Collection Editor and 
Auto Format dialog boxes, you will display the mean value on the 
gauge and the numeric edit, as well as customize your user interface.
Before You Begin
The following components are required to complete this walkthrough:
Microsoft Visual Studio .NET 2003
Measurement Studio Measurement Computing Edition
Setting up the project
1.
Select Start»All Programs»Microsoft Visual Studio .NET 2003»
Microsoft Visual Studio .NET 2003
.
2.
Select File»New»Project. The New Project dialog box launches.
3.
In the Project Types pane, expand the Measurement Studio Projects 
folder. Select Visual Basic Projects or Visual C# Projects, depending 
on which language you want to create the project in.