Chapter 5 Getting Started with Measurement Studio
Measurement Studio User Manual 5-22 ni.com
Walkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Network Variable 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 network variable functionality to transfer live
measurement data between applications over the network. This
walkthrough is designed to help you learn how to add network variable
functionality to a Windows Forms application by taking you through the
following steps:
•Writing an array of data to the server—Using
NationalInstruments.NetworkVariable.NetworkVariable
BufferedWriter<TValue>, you will create and run a console
application that writes an array of values to the server.
•Setting up a Windows Forms project—Using the Measurement
Studio Application Wizard, you will create a new project that
references the Measurement Studio Network Variable class library and
Windows Forms controls.
•Configuring the network variable data source control—Using the
Toolbox and the NationalInstruments.NetworkVariable.
WindowsForms.NetworkVariableDataSource smart tag, you
will add and configure a data source control to your application.
•Displaying the array of data on a Windows Forms page—Using the
Toolbox, you will add and configure a NationalInstruments.
WaveformGraph control to display the data.
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