How to Use Measurement Studio 2019 v19.0.0d for Engineering Applications
If you are looking for a powerful and easy-to-use .NET toolkit for creating test and measurement applications in Microsoft Visual Studio, you should check out Measurement Studio 2019 v19.0.0d. This software is an extension of Visual Studio that provides engineering UI controls, data analysis libraries, hardware communication APIs, and more.
In this article, we will show you how to use Measurement Studio 2019 v19.0.0d to build a simple application that acquires, analyzes, and displays measurement data from a NI data acquisition device. You will learn how to:
Configure your hardware and software environment
Create a new Measurement Studio project in Visual Studio
Add UI controls and data binding to your application
Perform real-time analysis on the acquired signals
Save and load data in TDMS format
By the end of this article, you will have a basic understanding of how to use Measurement Studio 2019 v19.0.0d for engineering applications.
Configure Your Hardware and Software Environment
Before you start coding, you need to make sure that you have the following hardware and software components:
A NI data acquisition device (such as NI USB-6008) and its corresponding driver (such as NI-DAQmx)
A sensor or signal source (such as a thermocouple or a function generator) connected to your device
Microsoft Visual Studio 2019 or later
Measurement Studio 2019 v19.0.0d
You can download and install Measurement Studio 2019 v19.0.0d from the NI website. This software includes a free evaluation license that allows you to use all the features for 30 days.
After installing Measurement Studio 2019 v19.0.0d, you need to activate it using the NI License Manager. You can also purchase a full license from the NI website or contact your local NI representative.
Once you have activated Measurement Studio 2019 v19.0.0d, you can launch Visual Studio and verify that the Measurement Studio menu is available in the toolbar.
Create a New Measurement Studio Project in Visual Studio
To create a new Measurement Studio project in Visual Studio, follow these steps:
In Visual Studio, select File > New > Project.
In the New Project dialog box, select Visual C# > Windows Forms App (.NET Framework) as the project type.
Enter a name for your project (such as MyMeasurementApp) and click OK.
In the Solution Explorer window, right-click on your project name and select Add > New Item.
In the Add New Item dialog box, select Measurement Studio > Windows Forms > Windows Forms Application Configuration File as the item type.
Enter a name for your configuration file (such as App.config) and click Add.
In the App.config file, you can specify various settings for your application, such as hardware configuration, data logging options, analysis parameters, etc.
For this example, we will use the default settings provided by Measurement Studio 2019 v19.0.0d.
Add UI Controls and Data Binding to Your Application
To add UI controls and data binding to your application, follow these steps:
In the Solution Explorer window, double-click on Form1.cs to open the form designer.
In the Toolbox window, expand the Measurement Studio category and drag and drop a WaveformGraph control onto your form.
Resize and position the WaveformGraph control as desired.
In the Properties window, select the WaveformGraph control and change its Name property to waveformGraph1.
In the Toolbox window, expand the Common Controls category and drag and drop a Button control onto your form.
Resize and position the Button control as desired.
In the Properties window, select the Button control and change its Name property to startButton and a474f39169