Chapter 5 Getting Started with Measurement Studio
Measurement Studio User Manual 5-2 ni.com
Walkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Analysis
Note To complete this walkthrough, you must have either the Measurement Studio
Professional or Measurement Studio Enterprise package installed for Visual Studio 2005
or later. This walkthrough will not work with the Measurement Studio Standard package.
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,
smart tags, and the Properties window, you will add and configure a
button, waveform graph, legend, gauge, and numeric edit user
interface control.
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 smart tags and 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 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