Creating an ni-daqmx user control, Creating an ni-daqmx user control -6, Creating a measurement studio ni-488.2 – National Instruments Measurement Studio User Manual

Page 47: Or ni-visa application, Creating a measurement studio, Ni-488.2 or ni-visa application, Secti

Advertising
background image

Chapter 4

Developing with Measurement Studio

Measurement Studio User Manual

4-6

ni.com

Creating an NI-DAQmx User Control

You can create an NI-DAQmx .NET user control with Measurement Studio
that provides a default graphical user interface to an NI-DAQmx task. The
NI-DAQmx User Control wizard wraps a configured NI-DAQmx task class
in a user-friendly control. You can drop the generated user control from the
Visual Studio .NET Toolbox onto a form and use it just as you use any
Windows Forms control.

Tip

For more information on how to create a user control, refer to the Using a DAQmx

Task Class in a Project topic of the NI Measurement Studio Help.

Creating a Measurement Studio NI-488.2 or NI-VISA
Application

To create a Measurement Studio NI-488.2 or NI-VISA application, use the
Instrument I/O Assistant. The Instrument I/O Assistant, as shown in
Figure 4-3, integrates into Visual Studio .NET as a code designer. Use the
Add New Item wizard to add an instrumentation task to your project, and
use the Instrument I/O Assistant user interface to create and configure the
instrumentation task. The Instrument I/O Assistant generates a Visual
Basic .NET, Visual C#, or Visual C++ .NET class that includes the
functionality you configure in the user interface. Use this assistant to help
you write code that communicates with devices such as serial, Ethernet, or
GPIB instruments.

Advertising