National Instruments none User Manual
National Instruments none User Manual

National Instruments none User Manual

National instruments home theater system user's manual
Table of Contents

Advertisement

Quick Links

Measurement Studio
TM
User Manual
Subtitle
Measurement Studio User Manual
April 2008
373392C-01

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the none and is the answer not in the manual?

Questions and answers

Summary of Contents for National Instruments none

  • Page 1 Measurement Studio User Manual Subtitle Measurement Studio User Manual April 2008 373392C-01...
  • Page 2 Thailand 662 278 6777, Turkey 90 212 279 3031, United Kingdom 44 (0) 1635 523545 For further support information, refer to the Technical Support and Professional Services appendix. To comment on National Instruments documentation, refer to the National Instruments Web site at and enter ni.com/info the info code feedback ©...
  • Page 3: Important Information

    Instruments Corporation. National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.
  • Page 4: Table Of Contents

    Network Variable ...2-14 DataSocket...2-15 NI-488.2 ...2-16 NI-DAQmx ...2-16 NI-SCOPE ...2-17 NI-VISA...2-17 User Interface...2-18 Windows Forms Controls ...2-19 Waveform Graph and Scatter Graph Controls ...2-20 Digital Waveform Graph Control...2-23 Complex Graph Control ...2-25 Legend Control...2-27 © National Instruments Corporation Measurement Studio User Manual...
  • Page 5 Contents Numeric Controls ... 2-27 Numeric Edit Control... 2-29 Switch and LED Controls ... 2-30 Property Editor Control... 2-32 Windows Forms Array Controls ... 2-33 Switch and LED Array Controls ... 2-33 Numeric Edit Array Control ... 2-34 InstrumentControlStrip Control ... 2-35 ASP.NET Web Forms Controls ...
  • Page 6 Web Forms Controls and Network Variable ...5-31 Walkthrough: Creating a Measurement Studio NI-DAQmx Application ...5-42 Walkthrough: Creating a Measurement Studio Instrument I/O Application ...5-52 Appendix A Technical Support and Professional Services Glossary Index © National Instruments Corporation Measurement Studio User Manual Contents...
  • Page 7: About This Manual

    Measurement Studio features. Note Refer to the Measurement Studio Release Notes for updates or changes to the Measurement Studio User Manual. © National Instruments Corporation Introduction to Measurement Measurement Studio .NET Class Measurement Studio Visual C++ Class Features, includes information on using the Measurement Studio tools...
  • Page 8: Conventions

    About This Manual Use this manual as a starting point to learn about Measurement Studio. Refer to the NI Measurement Studio Help within the Visual Studio environment for function reference and detailed information about the Measurement Studio class libraries, wizards, assistants, and other features. Conventions The following conventions appear in this manual: <>...
  • Page 9: Introduction To Measurement Studio

    Visual C++ in Visual Studio 2008. Measurement Studio 8.5 support for Visual Studio .NET 2003 includes updates to Note the ActiveX controls; however, no new features for Visual Studio .NET 2003 are included in Measurement Studio 8.5. © National Instruments Corporation Measurement Studio User Manual...
  • Page 10: Installation Requirements

    Studio .NET 2003 Readme located on the CD for Measurement Studio for Visual Studio .NET 2003. After installing Visual Studio .NET 2003 support, you can refer to the Measurement Studio User Manual by selecting Start»All Programs»National Instruments»<Measurement Studio for .NET 2003>»User Manual. Note Refer to the Measurement Studio Release Notes for updates or changes to the Measurement Studio User Manual.
  • Page 11: Driver Support

    Microsoft .NET Framework SDK 2.0 or Microsoft .NET Framework SDK 3.5. Driver Support To use .NET class libraries that interface to National Instruments device drivers, NI-DAQmx, NI-VISA and NI-488.2, and the MAX (Measurement & Automation Explorer) configuration utility, you must install the underlying device drivers in addition to the .NET class libraries.
  • Page 12: Installing Hardware Drivers For Visual Studio 2008 Support

    Installing Hardware Drivers for Visual Studio 2008 Support Visual Studio 2008 .NET class library support for National Instruments hardware drivers is included on the Measurement Studio 8.5 CD, under the VS2008 Driver Support feature in the feature tree. To install support for NI-DAQmx, NI-VISA, NI-488.2, or MAX, you must install the appropriate...
  • Page 13: Installing Hardware Drivers For Visual Studio 2005 Support

    To install support for MAX: Installing Hardware Drivers for Visual Studio 2005 Support The .NET and C++ class libraries for Visual Studio 2005 support for National Instruments hardware drivers are included in the Driver CD installer. © National Instruments Corporation Chapter 1 In the NI Measurement Studio 8.5 installer, enable the VS2008 Driver...
  • Page 14: Installing The Current Version Of Measurement Studio Over Previous Versions Of Measurement Studio

    Chapter 1 Introduction to Measurement Studio Installing the Current Version of Measurement Studio over Previous Versions of Measurement Studio You can have only one version of Measurement Studio installed on a system for each Note version of Visual Studio or the .NET Framework installed on the system. For example, you can have Measurement Studio 8.1.2 for Visual Studio 2005 installed on the same system as Measurement Studio 8.5 for Visual Studio 2008, but you cannot have Measurement Studio 8.1.2 for Visual Studio 2005 installed on the same system as...
  • Page 15 Visual C++ 6.0 Professional Analysis Libraries 3D Graph ActiveX Control User Interface Network Variable Binding Network Variable Class Library Network Variable Data Source © National Instruments Corporation Chapter 1 Professional Edition ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔...
  • Page 16 Chapter 1 Introduction to Measurement Studio Table 1-1. Measurement Studio Package Comparison Chart for Visual C# and Visual Basic .NET (Continued) Feature Standard Edition DataSocket Server DataSocket Library Parameter Assistant Instrument I/O Assistant DAQ Assistant Enterprise Analysis Libraries NI TestStand Integration ™...
  • Page 17: Learning Measurement Studio

    The following resources also are available to provide you with information about Measurement Studio. • • © National Instruments Corporation Chapter 1 From the Windows Start menu, select Start»All Programs»National Instruments»<Measurement Studio>»Measurement Studio Documentation. The help launches in a stand-alone help viewer.
  • Page 18 Chapter 1 Introduction to Measurement Studio • • • • • Measurement Studio User Manual For more information on example locations, refer to Where To Find Examples. NI Technical Support—Refer to Appendix A, Professional Services, for more information. Measurement Studio Web site, Measurement Studio news, support, downloads, white papers, product tutorials, and evaluation software.
  • Page 19: Measurement Studio .Net Class Libraries

    • • • • • • • Refer to the following sections for information about each Measurement Studio .NET class library. © National Instruments Corporation Studio, for step-by-step instructions on developing Analysis Common DataSocket Network Variable NI-488.2 NI-DAQmx NI-SCOPE NI-VISA...
  • Page 20: Analysis

    Chapter 2 Measurement Studio .NET Class Libraries Analysis The Measurement Studio Analysis .NET class library is in the NationalInstruments.Analysis library includes a set of classes that provides digital signal processing, signal filtering, signal generation, peak detection, and other general mathematical functionality. Use this library to analyze acquired data or to generate data.
  • Page 21: Enterprise Analysis

    Cycle RMS Average Harmonic Analyzer Harmonic Analyzer Using Signal Impulse Response Function Network Functions (avg) © National Instruments Corporation Chapter 2 EquiRipple filters Linear algebra functions such as forward and back substitution, LU factorization, Cholesky factorization, Schur decomposition, and Hessenberg decomposition...
  • Page 22 Chapter 2 Measurement Studio .NET Class Libraries Table 2-1. Analysis .NET Library Measurement Types included in the Professional and Enterprise Packages (Continued) Analysis .NET Library Power and Frequency Estimate Pulse Measurements Scaled Time Domain Window Single Tone Information Spectrum Unit Conversion State Levels Transfer Function Transition Measurements...
  • Page 23 Kaiser-Bessel Window Scaled Time Domain Windows Symmetric Time Domain Windows Triangle Window Bessel Butterworth Cascade Chebyshev Elliptic Equiripple FIR Windowed © National Instruments Corporation Chapter 2 Measurement Studio .NET Class Libraries Professional Package ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔...
  • Page 24 Chapter 2 Measurement Studio .NET Class Libraries Table 2-1. Analysis .NET Library Measurement Types included in the Professional and Enterprise Packages (Continued) Analysis .NET Library IIR Cascade Inverse Chebyshev Kaiser Autocorrelation Convolution Cross Power Cross Correlation Decimate Deconvolution Derivative x(t) Discrete Cosine Transform Discrete Sine Transform Fast Hilbert Transform...
  • Page 25 Complex Linear Equations Complex LU Factorization Complex Matrix Balance Complex Matrix Condition Number Complex Matrix Norm Complex Matrix Rank Complex Outer Product © National Instruments Corporation Chapter 2 Measurement Studio .NET Class Libraries Professional Package ✔ ✔ Linear Algebra ✔...
  • Page 26 Chapter 2 Measurement Studio .NET Class Libraries Table 2-1. Analysis .NET Library Measurement Types included in the Professional and Enterprise Packages (Continued) Analysis .NET Library Complex Pseudo Inverse Matrix Complex QR Factorization Complex QR Factorization with Pivot Matrix Complex QR Factorization with Pivot Vector Complex QZ Decomposition Complex Schur...
  • Page 27 Test Positive Definite Matrix Trace Transpose 1D and 2D Array Arithmetic 1D and 2D Linear Evaluation 1D and 2D Polynomial Evaluation 1D Polar to Rectangular 1D Rectangular to Polar © National Instruments Corporation Chapter 2 Professional Package ✔ ✔ ✔ ✔ ✔ ✔...
  • Page 28 Chapter 2 Measurement Studio .NET Class Libraries Table 2-1. Analysis .NET Library Measurement Types included in the Professional and Enterprise Packages (Continued) Analysis .NET Library Complex Number Arithmetic Find Polynomial Roots Scale 1D and 2D Cubic Spline Fit Exponential Fit Exponential Fit Interval Gauss Fit Gauss Fit Interval...
  • Page 29 Spline Interpolant Spline Interpolation Standard Deviation T-Distribution Variance Airy Bessel 1st Bessel 2nd Beta Complimentary Gamma Cosine Integral © National Instruments Corporation Chapter 2 Measurement Studio .NET Class Libraries Professional Package ✔ ✔ ✔ ✔ ✔ ✔ Special Functions 2-11 Enterprise Package ✔...
  • Page 30 Chapter 2 Measurement Studio .NET Class Libraries Table 2-1. Analysis .NET Library Measurement Types included in the Professional and Enterprise Packages (Continued) Analysis .NET Library Dawson’s Integral Dilogarithm Elliptic 1st Elliptic 2nd Exponential Integral Factorial Fresnel Integrals Gamma Gauss Hypergeometric Hyperbolic Cosine Integral Hyperbolic Sine Integral Incomplete Beta...
  • Page 31: Common

    • • • • • © National Instruments Corporation Chapter 2 Professional Package and select Visual Basic, Visual Basic ni.com/analysis namespace. The Common class library provides data type. This data type represents a complex...
  • Page 32: Data Transfer

    • • For more detailed information about the Common class library, refer to the National Instruments section in the NI Measurement Studio Help. Data Transfer You can use the NetworkVariable class library or the DataSocket class library to transfer live measurement data between applications over a network.
  • Page 33: Datasocket

    Use the classes in the DataSocket class library to perform the following operations: • • © National Instruments Corporation Chapter 2 Exchange different types of data between Measurement Studio, LabVIEW, LabWindows/CVI, and other applications that support NI-Publish Subscribe Protocol ( ) servers.
  • Page 34: Ni-488.2

    Chapter 2 Measurement Studio .NET Class Libraries • • • • For more detailed information about the DataSocket class library, refer to the Using the Measurement Studio DataSocket .NET Library section in the NI Measurement Studio Help. NI-488.2 The Measurement Studio NI-488.2 .NET class library is in the NationalInstruments.NI4882 included when you install the NI-488.2 driver.
  • Page 35: Ni-Scope

    With this class library you can access the functionality available in NI-VISA for communicating with message-based and register-based instruments using the following interfaces: • • © National Instruments Corporation Chapter 2 Analog signal measurement Analog signal generation Digital I/O Counting and timing...
  • Page 36: User Interface

    Chapter 2 Measurement Studio .NET Class Libraries • • • • • For information about creating a Measurement Studio NI-VISA application using the Instrument I/O Assistant, refer to the in Chapter 4, Measurement Studio Integrated Tools and Features Creating a Measurement Studio Instrument I/O Application with Measurement User Interface The Measurement Studio user interface controls are in the Windows Forms...
  • Page 37: Windows Forms Controls

    • • • • • • • • • • • • • • • © National Instruments Corporation Chapter 2 Windows Forms ✔ ✔ ✔ ✔ ✔ ✔ Waveform graph Scatter graph Digital waveform graph Complex graph Legend Knob...
  • Page 38: Waveform Graph And Scatter Graph Controls

    Chapter 2 Measurement Studio .NET Class Libraries Use this class library to add measurement-specific user interface controls to your application. You can configure the controls programmatically at design time, through the Properties window in the Windows Forms Designer, or at run time with the property editor control. The following sections describe each of the Measurement Studio Windows Forms user interface controls.
  • Page 39: Plot Operations

    • • • • • © National Instruments Corporation Chapter 2 Plot and chart arrays of double-precision floating point values, analog waveforms, and complex waveforms. Configure a graph to contain multiple plots to show separate but related data on the same graph.
  • Page 40: Additional Operations

    Chapter 2 Measurement Studio .NET Class Libraries Cursor Operations • • • • • • Annotation Operations • • • Additional Operations • • • • For more information about using the waveform and scatter graph controls, refer to the Using the Measurement Studio Windows Forms Scatter and Waveform Graph .NET Controls section in the NI Measurement Studio Help.
  • Page 41: Digital Waveform Graph Control

    • • • • • • © National Instruments Corporation Chapter 2 DigitalWaveform Figure 2-2. Digital Graph Windows Forms Control Plot digital waveform data. Data values can represent up to eight different digital states. Configure plot labels on the y-axis.
  • Page 42 Chapter 2 Measurement Studio .NET Class Libraries Waveform Sample and Signal State Operations • • • • Axis Operations • • • • • • Additional Operations • • • • • • • For more information about using the digital waveform graph control, refer to the Using the Measurement Studio Windows Forms Digital Waveform Graph .NET Control section in the NI Measurement Studio Help.
  • Page 43: Complex Graph Control

    • • • • • • • • © National Instruments Corporation Chapter 2 ComplexDouble consists of a real part and an imaginary part. ComplexDouble Figure 2-3. Complex Graph Windows Forms Control Plot and chart ComplexDouble Configure a graph to contain multiple plots to show separate but related data on the same graph.
  • Page 44 Chapter 2 Measurement Studio .NET Class Libraries Axis Operations • • • • • • • Cursor Operations • • • • • Annotation Operations • • • • Measurement Studio User Manual Configure a graph to include multiple axes or independent ranges so that plot data fits the graph plot area.
  • Page 45: Legend Control

    • • • • © National Instruments Corporation Chapter 2 Pan and zoom interactively. Copy the graph as a BMP, GIF, JPEG, or PNG image to the clipboard or a file. Configure the scale to be linear or logarithmic and toggle the visibility of the scale.
  • Page 46 Chapter 2 Measurement Studio .NET Class Libraries • • • • • • • Use the Measurement Studio knob, gauge, and meter controls, as shown in Figure 2-4, to input and display numeric data on your user interface. With the knob, gauge, and meter controls and the classes that interface with the controls, you can perform the following operations: •...
  • Page 47: Numeric Edit Control

    Typically, you use a numeric edit control to input or display double numerical data instead of using a Windows Forms TextBox or NumericUpDown control. © National Instruments Corporation Chapter 2 Figure 2-5. .NET Slide, Tank, and Thermometer Controls Fill to the minimum or maximum value of the scale.
  • Page 48: Switch And Led Controls

    Set the interaction mode to keyboard and mouse, keyboard only, mouse only, or none. Figure 2-7. Switch Windows Forms Control in Vertical Toggle 3D Style 2-30...
  • Page 49 For more information about using the switch and LED controls, refer to the Using the Measurement Studio Windows Forms Switch and LED .NET Controls section in the NI Measurement Studio Help. © National Instruments Corporation Chapter 2 Figure 2-8. LED Windows Forms Control in Square 3D Style Receive notification before or after the state of the control changes.
  • Page 50: Property Editor Control

    Chapter 2 Measurement Studio .NET Class Libraries Property Editor Control Use the Measurement Studio property editor control, as shown in Figure 2-9, to configure properties for Windows Forms controls at run time. With the property editor control and the classes that interface with the control, you can perform the following operations: •...
  • Page 51: Windows Forms Array Controls

    • • • • • © National Instruments Corporation Chapter 2 TControl Figure 2-10. Switch and LED Array Controls Set values by passing an array of data. Modify the number of controls displayed based on the length of the specified values.
  • Page 52: Numeric Edit Array Control

    Chapter 2 Measurement Studio .NET Class Libraries • • • • • For more information about using the switch and LED array controls, refer to the Using the Measurement Studio Control Array .NET Controls topic in the NI Measurement Studio Help. Numeric Edit Array Control Use the Measurement Studio numeric edit array control, as shown in Figure 2-11 to control and visualize values of an array of...
  • Page 53: Instrumentcontrolstrip Control

    © National Instruments Corporation Chapter 2 Set the interaction mode to keyboard and mouse, keyboard only, mouse only, or none. Use the edit box to select text programmatically and to validate text values. Configure the layout of the control to be horizontal or vertical.
  • Page 54 Chapter 2 Measurement Studio .NET Class Libraries For more information about the InstrumentControlStrip control, refer to Using the Measurement Studio Windows Forms Instrument Control Strip .NET Control topic in the NI Measurement Studio Help. Measurement Studio User Manual Figure 2-12. InstrumentControlStrip Control 2-36 ni.com...
  • Page 55: Asp.net Web Forms Controls

    Web application. You can configure the controls programmatically at design time or through the Properties window in the Web Forms Designer. The following sections describe each of the Measurement Studio Web Forms user interface controls. © National Instruments Corporation Chapter 2 Waveform graph Scatter graph...
  • Page 56: Waveform Graph And Scatter Graph Controls

    Chapter 2 Measurement Studio .NET Class Libraries Waveform Graph and Scatter Graph Controls Use the Measurement Studio waveform graph and scatter graph controls, as shown in Figure 2-13, to display two-dimensional data on a Web-based user interface. Use the waveform graph to display two-dimensional linear data.
  • Page 57 Annotation Operations • • © National Instruments Corporation Chapter 2 Draw lines or fills from a plot to an X value, Y value, or another plot. Specify plots in the scatter graph control as X and Y data. Specify plots in the waveform graph control as X or Y data and optionally with date and time scaling.
  • Page 58: Additional Operations

    Chapter 2 Measurement Studio .NET Class Libraries Additional Operations • • For more information about using the waveform and scatter graph controls, refer to the Using the Measurement Studio Web Forms Scatter and Waveform Graph .NET Controls section in the NI Measurement Studio Help. Digital Waveform Graph Control Use the Measurement Studio digital waveform graph control, as shown in Figure 2-14, to display...
  • Page 59 Additional Operations • • • • • © National Instruments Corporation Chapter 2 Plot digital waveform data, including digital signal state data and timing information. Configure plot labels on the y-axis. Configure plot templates to customize plots that are implicitly created from plotted data.
  • Page 60: Complex Graph Control

    Chapter 2 Measurement Studio .NET Class Libraries For more information about using the digital waveform graph control, refer to the Using the Measurement Studio Web Forms Digital Waveform Graph .NET Control section in the NI Measurement Studio Help. Complex Graph Control Use the Measurement Studio complex graph control, as shown in Figure 2-15, to display application.
  • Page 61 • • Annotation Operations • • © National Instruments Corporation Chapter 2 Create custom point and line styles for plots. Specify anti-aliased plots for plot lines. Calculate and display error bands. Configure plot to specify how data is saved and restored across HTTP requests.
  • Page 62: Legend Control

    Chapter 2 Measurement Studio .NET Class Libraries • • Additional Operations • • For more information about using the complex graph control, refer to the Using the Measurement Studio Web Forms Complex Graph .NET Control section in the NI Measurement Studio Help. Legend Control Use the Measurement Studio legend control, as shown in Figure 2-13, to display symbols and descriptions for a specific set of elements of another...
  • Page 63 • • © National Instruments Corporation Chapter 2 Customize the appearance of the control using 3D lab styles or classic 2D styles and change the color and length of ticks and labels.
  • Page 64 Chapter 2 Measurement Studio .NET Class Libraries Use the Measurement Studio slide, tank, and thermometer controls, as shown in Figure 2-17, to input and display numeric data on your interface. With the slide, tank, and thermometer controls and the classes that interface with them, you can perform the following operations: •...
  • Page 65: Numeric Edit Control

    • For more information about using the Web Forms numeric edit control, refer to the NumericEdit Class section in the NI Measurement Studio Help. © National Instruments Corporation Chapter 2 Figure 2-18. Numeric Edit Web Forms Control Perform range checking.
  • Page 66: Switch And Led Controls

    Chapter 2 Measurement Studio .NET Class Libraries Switch and LED Controls Use the Measurement Studio switch and LED controls as Boolean controls in an ASP.NET Web application. You typically use a switch control to receive and control Boolean input in an ASP.NET Web application. You typically use an LED control to indicate a Boolean value on an ASP.NET Web application.
  • Page 67: Autorefresh Control

    This feature provides a mechanism for updating the RefreshManager.Enabled allowing you to turn off the AutoRefresh or change the Interval during an asynchronous HTTP request without causing a postback. © National Instruments Corporation Chapter 2 from within the AutoRefresh 2-49 Measurement Studio .NET Class Libraries...
  • Page 68: Measurement Studio Visual C++ Class Libraries

    Measurement Studio includes the following Visual C++ class libraries: • • • • • • • • • • • • © National Instruments Corporation 3D Graph Analysis Common DataSocket Microsoft Excel Interface Microsoft Word Interface NI-488.2 NI-DAQmx NI-Reports NI-VISA User Interface Utility...
  • Page 69: Activex Controls In Visual C

    Chapter 3 Refer to the following sections for information about each Measurement Studio Visual C++ class library. ActiveX Controls in Visual C++ ActiveX controls are specialized COM servers that implement a specific set of interfaces. The Measurement Studio Visual C++ button, graph, knob, numeric edit, slide, and 3D graph are ActiveX controls.
  • Page 70: Plot Operations

    Measurement Studio package you purchased. Refer to the following sections for information about the Standard, Professional, and Enterprise Analysis class libraries. © National Instruments Corporation Plot three-dimensional data, including curves and surfaces. Use multiple plot styles—point-line, line-point, hidden-line, contour, surface, surface-line, surface-contour, and surface-normal.
  • Page 71: Standard Analysis

    Chapter 3 Standard Analysis The Standard Analysis class library, which ships with Measurement Studio Standard Edition, includes the sawtooth, sine, square, triangle, and basic function wave generators. Professional Analysis The Professional Analysis class library, which ships with Measurement Studio Professional Edition, includes the Standard Analysis functionality as well as the following functionality: •...
  • Page 72 Arbitrary Wave Chirp Wave Gaussian White Noise Impulse Pattern Pulse Pattern Ramp Pattern Sawtooth Wave Sinc Pattern Sine Pattern Sine Wave © National Instruments Corporation Professional and Enterprise Packages Professional Package Measurements ✔ ✔ Signal Generation ✔ ✔ ✔ Chapter Enterprise Package ✔...
  • Page 73 Chapter 3 Table 3-1. Analysis Visual C++ Library Measurement Types Included in the Professional and Enterprise Packages (Continued) Analysis Visual C++ Library Square Wave Triangle Wave Uniform White Noise Blackman Window Blackman-Harris Window Blackman-Nuttall Window Cosine Tapered Window Dolph-Chebyshev Window Exact Blackman Window Exponential Window Flat Top Window...
  • Page 74 Decimate Deconvolution Derivative x(t) Discrete Cosine Transform Discrete Sine Transform Fast Hilbert Transform Fast Hartley Transform Integral x(t) Inverse Real and Complex Fast Fourier Transform (FFT) © National Instruments Corporation Professional Package ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔...
  • Page 75 Chapter 3 Table 3-1. Analysis Visual C++ Library Measurement Types Included in the Professional and Enterprise Packages (Continued) Analysis Visual C++ Library Inverse Fast Hilbert Transform Inverse Fast Hartley Transform Peak Detection Power Spectrum Pulse Parameters Real and Complex FFT Threshold Peak Detector Unwrap Phase Back Transform Eigen Vectors...
  • Page 76 Complex Solve Linear Equations (Single Right Hand) Complex SVD Factorization Complex Vector Norm Determinant Dot Product Forward Substitution General Eigen AB Hessenberg Decomposition Inverse Matrix © National Instruments Corporation Professional Package ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔ Chapter Enterprise Package ✔...
  • Page 77 Chapter 3 Table 3-1. Analysis Visual C++ Library Measurement Types Included in the Professional and Enterprise Packages (Continued) Analysis Visual C++ Library Linear Equations LU Factorization Matrix Balance Matrix Condition Number Matrix Multiplication Matrix Norm Matrix Rank Outer Product Pseudo Inverse Matrix QR Factorization QR Factorization with Pivot Matrix...
  • Page 78 General Polynomial Fit Goodness of Fit Linear Fit Linear Fit Interval Logarithm Fit Logarithm Fit Interval Nonlinear Fit Polynomial Fit Power Fit Power Fit Interval © National Instruments Corporation Professional Package ✔ ✔ ✔ ✔ ✔ ✔ ✔ Curve Fitting ✔...
  • Page 79 Chapter 3 Table 3-1. Analysis Visual C++ Library Measurement Types Included in the Professional and Enterprise Packages (Continued) Analysis Visual C++ Library Remove Outliers 1D, 2D, and 3D ANOVA Chi-Square Distribution erf(x) and erfc(x) F-Distribution Histogram Inverse Chi-Square Distribution Inverse F-Distribution Inverse Normal Distribution Inverse T-Distribution Mean...
  • Page 80 Hyperbolic Sine Integral Incomplete Beta Incomplete Elliptic 1st Incomplete Elliptic 2nd Incomplete Gamma Jacobian Elliptic Function Kelvin 1st Kelvin 2nd Kummer Logarithm of Factorial © National Instruments Corporation Professional Package 3-13 Chapter Enterprise Package ✔ ✔ ✔ ✔ ✔ ✔...
  • Page 81 Chapter 3 Table 3-1. Analysis Visual C++ Library Measurement Types Included in the Professional and Enterprise Packages (Continued) Analysis Visual C++ Library Modified Bessel 1st Modified Bessel 2nd Parabolic Cylinder Sine Integral Spherical Bessel 1st Spherical Bessel 2nd Stirling Struve Tricomi Zeta For more information about analyzing or generating data with the Analysis class...
  • Page 82: Common

    Use the classes in the DataSocket Visual C++ class library to perform the following operations: • • © National Instruments Corporation classes. CNiMatrix —Implements a vector object that contains scalar CNiScalarVector numbers.
  • Page 83: Microsoft Excel Interface

    Chapter 3 • • • For more information about using DataSocket, refer to the DataSocket Visual C++ Class Library Overview topic in the NI Measurement Studio Help. Microsoft Excel Interface Use the Measurement Studio Excel Visual C++ class library to automatically create Excel spreadsheets and charts from within measurement and automation applications.
  • Page 84: Ni-488.2

    Assistant, refer to the Chapter 4, Measurement Studio Integrated Tools and Creating a Measurement Studio NI-DAQmx Application Started with Measurement © National Instruments Corporation CNi4882Board Creating an Instrument Control Application Measurement Studio Integrated Tools and Analog signal measurement Analog signal generation...
  • Page 85: Ni-Reports

    Chapter 3 NI-Reports Use the Measurement Studio NI-Reports Visual C++ class library to generate printed reports from Measurement Studio Visual C++ applications. This class library is included only in the Measurement Studio Enterprise package. For information about generating printed reports using the NI-Reports class library, refer to the NI-Reports Visual C++ Class Library Overview topic in the NI Measurement Studio Help.
  • Page 86: User Interface

    C++ interface to the ActiveX button control. With the button control and the classes that interface with the control, you can perform the following operations: • • • © National Instruments Corporation Button Graph Knob Numeric edit Slide Figure 3-2. ActiveX Button Control Configure how the control behaves when you click it with the mouse or press the spacebar when the control has focus.
  • Page 87: Graph Control

    Chapter 3 For more information about using the button control, refer to the Using the Measurement Studio Button Visual C++ Control section in the NI Measurement Studio Help. Graph Control Use the Measurement Studio ActiveX graph control, as shown in Figure 3-3, to plot and chart two-dimensional data.
  • Page 88: Axis Operations

    Use the Measurement Studio ActiveX knob control, as shown in Figure 3-4, to display numerical information. The provides the Visual C++ interface to the ActiveX knob control. © National Instruments Corporation Use the class to interface to a single axis of a graph control.
  • Page 89: Numeric Edit Control

    Chapter 3 With the knob control and the classes that interface with the control, you can perform the following operations: • • • • • • For more information about easily using the knob control, refer to the Using the Measurement Studio Knob Visual C++ Control section in the NI Measurement Studio Help.
  • Page 90: Slide Control

    For more information about easily using the slide control, refer to the Using the Measurement Studio Slide Visual C++ Control section in the NI Measurement Studio Help. © National Instruments Corporation Figure 3-6. ActiveX Slide Control Use different display styles—vertical, horizontal, tank, and thermometer.
  • Page 91: Utility

    Chapter 3 Utility Use the Measurement Studio Utility Visual C++ class library to easily access Windows operating system functionality. Table 3-2 lists classes in the Utility class library and their functionality. Table 3-2. Utility Class Names and Functionalities Utility Class CNiFile CNiSound CNiSystem...
  • Page 92 CNiTempFile CNiTimer For more information about using the Utility class library, refer to the Utility Visual C++ Class Library Overview section in the NI Measurement Studio Help. © National Instruments Corporation Functionality extends the functionality of CNiTempFile temporary file creation and manipulation.
  • Page 93: Measurement Studio Integrated Tools And Features

    NI Measurement Studio Help for more information about the functionality of these tools and features. Measurement Studio Menu The Measurement Studio Menu provides an easy way to access the following National Instruments resources and tools: • © National Instruments Corporation Measurement Studio Menu Creating a Measurement Studio Project Adding or Removing Measurement Studio .NET Class Libraries...
  • Page 94 NI Tools»NI Spy—Use NI Spy to monitor, record, and display National Instruments API calls made by instrument connectivity applications. Use NI Spy to quickly locate and analyze any erroneous National Instruments API calls that an application makes and verify file in a Measurement Studio project to licenses.licx file, the current Measurement file.
  • Page 95 • • • • • © National Instruments Corporation Chapter 4 Measurement Studio Integrated Tools and Features that the communication with an instrument is correct. Select NI Tools»NI Spy to access this menu item. The NI Spy menu item is available only if you have NI Spy installed.
  • Page 96: Creating A Measurement Studio Project

    Chapter 4 Measurement Studio Integrated Tools and Features • • • • • For more information about the resources included in the Measurement Studio Menu, refer to the Measurement Studio Menu topic in the NI Measurement Studio Help. Creating a Measurement Studio Project Measurement Studio includes class library and application templates that you can use to quickly create measurement applications with Visual Basic .NET, Visual C#, ASP.NET, and Visual C++.
  • Page 97: Adding Or Removing Measurement Studio .Net Class Libraries

    Measurement Studio menu. This wizard provides an interface, as shown in Figure 4-2, that you can use to select the Measurement Studio .NET class libraries you want to add to or remove from a project. © National Instruments Corporation Chapter 4 Measurement Studio Integrated Tools and Features Figure 4-1.
  • Page 98: Creating A Measurement Studio Ni-Daqmx Application

    Chapter 4 Measurement Studio Integrated Tools and Features When you exit the wizard, the wizard adds or removes the appropriate references to or from the project, thus adding or removing the functionality associated with the class library. For more information about using the Add/Remove .NET Class Libraries wizard to add or remove Measurement Studio .NET class libraries, refer to the Adding or Removing Measurement Studio .NET Class Libraries section in the NI Measurement Studio Help.
  • Page 99 Measurement Studio Professional or Measurement Studio Enterprise package. Refer to Chapter 5, the NI-DAQmx Application create DAQ applications. © National Instruments Corporation Chapter 4 Measurement Studio Integrated Tools and Features Walkthrough: Creating a Measurement Studio section, for step-by-step instructions on how to Figure 4-3.
  • Page 100: Creating An Ni-Daqmx User Interface

    Chapter 4 Measurement Studio Integrated Tools and Features The DAQ Assistant interactively assists you in performing the following operations: • • • • • • For more information about using the DAQ Assistant to create a Measurement Studio NI-DAQmx application, refer to the Creating a Measurement Studio NI-DAQmx Application section in the NI Measurement Studio Help.
  • Page 101: Creating Ni-Daqmx User Code In Visual C

    Note The Instrument I/O Assistant is available only if you have installed either the Measurement Studio Professional or Measurement Studio Enterprise package. © National Instruments Corporation Chapter 4 Measurement Studio Integrated Tools and Features file for the user-friendly Measurement Studio User Manual...
  • Page 102 Chapter 4 Measurement Studio Integrated Tools and Features Refer to Chapter 5, the Instrument I/O Application use the Instrument I/O Assistant. The Instrument I/O Assistant aids you in performing the following operations: • • For more information about using the Instrument I/O Assistant to create a Measurement Studio instrument control application, refer to the Creating a Measurement Studio Instrument Control Application section of the NI Measurement Studio Help.
  • Page 103: Selecting A Measurement Studio Parameter Value

    For information about using the Measurement Studio Parameter Assistant to select a parameter value, refer to the Selecting a Measurement Studio Parameter Value section in the NI Measurement Studio Help. © National Instruments Corporation Chapter 4 Measurement Studio Integrated Tools and Features Figure 4-6.
  • Page 104: Using The Instrument Driver Wizard

    Chapter 4 Measurement Studio Integrated Tools and Features Using the Instrument Driver Wizard To use an IVI or VXI plug&play instrument driver with a C DLL in a Measurement Studio .NET application, use the Measurement Studio .NET Instrument Driver wizard to create .NET entry points to the C DLL functions you need to call from your application.
  • Page 105: Getting Started With Measurement Studio

    • • • • • © National Instruments Corporation Walkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Analysis Walkthrough: Creating a Measurement Studio Application with Web Forms Controls and Analysis Walkthrough: Creating a Measurement Studio Application with...
  • Page 106: Walkthrough: Creating A Measurement Studio Application With Windows Forms Controls And Analysis

    Chapter 5 Getting Started with Measurement Studio 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.
  • Page 107 Setting up the project © National Instruments Corporation Chapter 5 Select Start»All Programs»Microsoft Visual Studio 2005» Microsoft Visual Studio 2005 or Start»All Programs»Microsoft Visual Studio 2008»Microsoft Visual Studio 2008. Select File»New»Project. The New Project dialog box launches. In the Project Types pane, select Measurement Studio under Visual C# or Visual Basic, depending on which language you want to create the project in.
  • Page 108 Chapter 5 Getting Started with Measurement Studio If you are working with an existing project, you can access the Add/Remove Class Libraries dialog box by selecting Measurement Studio»View .NET Class Library Wizard. Adding user interface controls to the project Measurement Studio User Manual Click Finish to display Form1 Select View»Toolbox to display the Toolbox.
  • Page 109 © National Instruments Corporation Chapter 5 Expand the Measurement Studio group in the Toolbox. Select the WaveformGraph control and drag and drop it onto the form. Right-click the waveform graph and select Edit Plots to display the WaveformPlot Collection Editor dialog box. You use the WaveformPlot Collection Editor dialog box to add or remove plots and to configure plot properties.
  • Page 110 Chapter 5 Getting Started with Measurement Studio Note You can also access the WaveformPlot Collection Editor dialog box by clicking the waveform graph smart tag. To access the smart tag, left click on the control to select it and then left click on the arrow button in the upper right corner of the control. 10.
  • Page 111 Chapter 5 Getting Started with Measurement Studio 15. Type for the name of the gauge. gauge The following screenshot shows with the user controls. Form1 © National Instruments Corporation Measurement Studio User Manual...
  • Page 112 Chapter 5 Getting Started with Measurement Studio Generating, plotting, and analyzing the data [VB.NET] ' Declare and initialize an instance of WhiteNoiseSignal. Dim whiteNoise As New WhiteNoiseSignal() ' Store the generated data in a double array named data. Dim data As Double() = whiteNoise.Generate(1000.0, 256) ' Use the PlotY method to plot the data.
  • Page 113 Customizing your user interface © National Instruments Corporation Chapter 5 Right-click the legend and select Edit Items to display the LegendItem Collection Editor dialog box. You use the LegendItem Collection Editor dialog box to add or remove legend items and to configure legend item properties.
  • Page 114 Chapter 5 Getting Started with Measurement Studio 10. Click the numeric edit smart tag to display the Numeric Edit Tasks. 11. Select Gauge in the Source drop-down list. Setting the Source 12. Deselect ArrowKeys, Buttons, and Text for the InteractionMode 13.
  • Page 115: Walkthrough: Creating A Measurement Studio Application With Web Forms Controls And Analysis

    Web Forms application by taking you through the following steps: • • © National Instruments Corporation Chapter 5 data plot, and the gauge and the numeric edit display the mean of the data. 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 Web Forms controls.
  • Page 116 Chapter 5 Getting Started with Measurement Studio • • Before you begin The following components are required to complete this walkthrough: • • Setting up the project Measurement Studio User Manual Generating, plotting, and analyzing the data—Using NationalInstruments.Analysis.SignalGeneration.White NoiseSignal NationalInstruments.Analysis.Math. , you will generate data, plot the generated data on Statistics.Mean a waveform graph, and calculate the mean of the data.
  • Page 117 © National Instruments Corporation Chapter 5 In the Templates pane, select NI ASP.NET Web Site. Select and specify a file path of your choice. System Use the drop-down box to select Visual C# or Visual Basic, depending on which language you want to create the project in.
  • Page 118 Chapter 5 Getting Started with Measurement Studio If you are working with an existing project, you can access the Add/Remove Class Libraries dialog box by selecting Measurement Studio»Add/Remove .NET Class Libraries Wizard. Measurement Studio User Manual Click Finish to display Default.aspx You can change the title of your Web page.
  • Page 119 Adding user interface controls to the project In this section, you will build a Web page that looks like the following screenshot. © National Instruments Corporation Chapter 5 Click Design in the lower left corner to switch from Source View to Design View.
  • Page 120 Chapter 5 Getting Started with Measurement Studio 10. Expand the Measurement Studio group on the Toolbox. 11. Select the WaveformGraph control and drag and drop it into the top 12. On the waveform graph smart tag, type To access the smart tag, left click on a control to select it and then left click on the arrow button in the upper right corner of the control.
  • Page 121 15. On the numeric edit smart tag, type 16. Select the Gauge control and drag and drop it into the top table cell, to 17. On the gauge smart tag, type © National Instruments Corporation Chapter 5 table cell. center table cell.
  • Page 122 Chapter 5 Getting Started with Measurement Studio The following screenshot shows Generating, plotting, and analyzing the data [VB.NET] ' Declare and initialize an instance of WhiteNoiseSignal. Dim whiteNoise As New WhiteNoiseSignal() ' Store the generated data in a double array named data. Dim data As Double() = whiteNoise.Generate(1000.0, 256) ' Use the PlotY method to plot the data.
  • Page 123 // Display the mean on the gauge. gauge.Value = mean; Customizing your user interface © National Instruments Corporation Chapter 5 Select the Default.aspx tab to return to the Web Forms Designer. Right-click the legend and select Edit Items to display the LegendItem Collection Editor dialog box.
  • Page 124 Chapter 5 Getting Started with Measurement Studio 10. On the numeric edit smart tag, select Format Mode and in the Numeric Measurement Studio User Manual Select Plots[0] in the Source drop-down list and enter Text box. Click OK. Now that you have specified a legend item for the plot, changes you make to the plot will be reflected on the legend.
  • Page 125 12. Select Debug»Start Without Debugging to run the application. 13. After your program builds, click Start. Notice the graph shows the © National Instruments Corporation Chapter 5 data plot, and the gauge and the numeric edit display the mean of the data.
  • Page 126: Walkthrough: Creating A Measurement Studio Application With Windows Forms Controls And Network Variable

    Chapter 5 Getting Started with Measurement Studio 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.
  • Page 127 Writing an array of data to the server © National Instruments Corporation Chapter 5 Select Start»All Programs»Microsoft Visual Studio 2005» Microsoft Visual Studio 2005 or Start»All Programs»Microsoft Visual Studio 2008»Microsoft Visual Studio 2008. Select File»New»Project. The New Project dialog box launches.
  • Page 128 Chapter 5 Getting Started with Measurement Studio Note You should choose the appropriate code depending on whether you created a VB or C# project. [VB.NET] Imports System Imports System.Collections.Generic Imports System.Text Imports System.Threading Imports NationalInstruments.NetworkVariable Module Module1 Private Function GenerateDoubleArray(ByVal phase As Double) As Double() Dim values(999) As Double Dim x As Integer For x = 0 To 999...
  • Page 129 Main(string[] args) const string Location = @"\\localhost\system\double"; NetworkVariableBufferedWriter<double[]> bufferedWrite = new NetworkVariableBufferedWriter<double[]>(Location); bufferedWrite.Connect(); int phase = 0; while (true) double[] value = GenerateDoubleArray(phase); Console.WriteLine("Writing array"); © National Instruments Corporation Chapter 5 Getting Started with Measurement Studio 5-25 Measurement Studio User Manual...
  • Page 130 Chapter 5 Getting Started with Measurement Studio bufferedWrite.WriteValue(value); Thread.Sleep(500); phase++; 10. Minimize the console, but keep the application running. Measurement Studio User Manual Select Debug»Start Without Debugging to run the application. 5-26 ni.com...
  • Page 131 Setting up a Windows Forms project © National Instruments Corporation Chapter 5 Select Start»All Programs»Microsoft Visual Studio 2005» Microsoft Visual Studio 2005. Select File»New»Project. The New Project dialog box launches. In the Project types pane, select Measurement Studio under Visual C# or Visual Basic, depending on which language you want to create the project in.
  • Page 132 Chapter 5 Getting Started with Measurement Studio If you are working with an existing project, you can access the Add/Remove Class Libraries dialog box by selecting Measurement Studio»Add/Remove Class Libraries Wizard. Measurement Studio User Manual Select Network Variable Communication Library and Windows Forms User Interface Control Library.
  • Page 133 Configuring the network variable data source control © National Instruments Corporation Chapter 5 Select View»Toolbox to display the Toolbox. The toolbox contains components and controls that you can add to your project. Expand the Measurement Studio group on the Toolbox.
  • Page 134 Chapter 5 Getting Started with Measurement Studio Displaying the array of data on a Windows form Measurement Studio User Manual For the Location, browse to the location in the Select Network Item dialog box. Click OK to return to the NetworkVariableBinding Collection Editor dialog box.
  • Page 135: Walkthrough: Creating A Measurement Studio Application With Web Forms Controls And Network Variable

    Web Forms application by taking you through the following steps: • • • © National Instruments Corporation Chapter 5 Writing an array of data to the server—Using NationalInstruments.NetworkVariable.NetworkVariable , you will create and run a console BufferedWriter<TValue>...
  • Page 136 Chapter 5 Getting Started with Measurement Studio • Before you begin The following components are required to complete this walkthrough: • • Writing an array of data to the server Measurement Studio User Manual Displaying the array of data on a Web page—Using the Toolbox, you will add and configure an control and a WebForms.AutoRefresh...
  • Page 137 © National Instruments Corporation Chapter 5 In the Project Types pane, select Visual C# or Visual Basic, depending on which language you want to create the project in. In the Templates pane, select Console Application. Specify for Name and specify a Location of your NetworkVariableWriter choice.
  • Page 138 Chapter 5 Getting Started with Measurement Studio [VB.NET] Imports NationalInstruments.NetworkVariable Imports System.Threading Imports System Module Module1 Private Function GenerateDoubleArray(ByVal phase As Double) As Double() Dim values(999) As Double Dim x As Integer For x = 0 To 999 values(x) = Math.Sin(((2 * Math.PI * x) / 1000) + phase) * 2 Next x Return values End Function...
  • Page 139 = GenerateDoubleArray(phase); Console.WriteLine("Writing array"); bufferedWriter.WriteValue(value); Thread.Sleep(500); phase++; 10. Minimize the console application, but keep the application running. © National Instruments Corporation Chapter 5 Select Debug»Start Without Debugging to run the application. 5-35 Getting Started with Measurement Studio Measurement Studio User Manual...
  • Page 140 Chapter 5 Getting Started with Measurement Studio Setting up a Web Forms project Measurement Studio User Manual Select Start»All Programs»Microsoft Visual Studio 2005» Microsoft Visual Studio 2005 or Start»All Programs»Microsoft Visual Studio 2008»Microsoft Visual Studio 2008. Select File»New»Web Site. The New Web Site dialog box launches. In the Templates pane, select NI ASP.NET Web Site.
  • Page 141 If you are working with an existing project, you can access the Add/Remove Class Libraries dialog box by selecting Measurement Studio»Add/Remove Class Libraries Wizard. © National Instruments Corporation Chapter 5 Select Network Variable Communication Library and Web Forms User Interface Control Library.
  • Page 142 Chapter 5 Getting Started with Measurement Studio Configuring the network variable data source control Measurement Studio User Manual Click Design in the lower left corner to switch from Source View to Design View. Select View»Toolbox to display the Toolbox. The toolbox contains components and controls that you can add to your project.
  • Page 143 © National Instruments Corporation Chapter 5 Select Add. You add a binding to create a connection with the underlying network variable, and you use the NetworkVariableBinding Collection Editor to configure the binding properties. Select Object for the BindingType. You select Object because this walkthrough binds to NationalInstruments.UI.WebForms.
  • Page 144 Chapter 5 Getting Started with Measurement Studio Displaying the array of data on a Web page Measurement Studio User Manual Click OK to return to the NetworkVariableBinding Collection Editor dialog box. After you configure the binding properties, click OK to return to the ASP.NET Designer.
  • Page 145 NetworkVariableDataSource1.Bindings(0).GetValue() [C#] WaveformGraph1.BindingData = NetworkVariableDataSource1.Bindings[0].GetValue(); © National Instruments Corporation Chapter 5 Select Add. Select WaveformGraph1 for the ItemID and click OK. Double-click the AutoRefresh control. Add the following code to the AutoRefresh event handler to bind the waveform graph control to the...
  • Page 146: Walkthrough: Creating A Measurement Studio Ni-Daqmx Application

    Chapter 5 Getting Started with Measurement Studio You can also use the Note to bind to NationalInstruments.NetworkVariable.WebForms. NetworkVariableDataSource Variable Data Source in Web Forms for more information. Walkthrough: Creating a Measurement Studio NI-DAQmx Application Note To complete this walkthrough, you must have either the Measurement Studio Professional or Measurement Studio Enterprise package installed.
  • Page 147 NI-DAQmx simulated device, refer to Creating NI-DAQmx Simulated Devices in the Measurement & Automation Explorer Help for NI-DAQmx. To open this help, select Start»All Programs»National Instruments» Measurement & Automation. In Measurement & Automation Explorer (MAX), select Help»Help Topics»NI-DAQmx»MAX Help for NI-DAQmx.
  • Page 148 Chapter 5 Getting Started with Measurement Studio Measurement Studio User Manual In the Project types pane, expand the Visual C# or Visual Basic node, depending on which language you want to create the project in, and select Measurement Studio. Code generation works in both languages.
  • Page 149 The Measurement Studio DAQ Application Wizard automatically sets up your data acquisition project and launches the DAQ Assistant. © National Instruments Corporation Chapter 5 In the Add DAQ Component dialog box, you can choose to create a new project task, create a new MAX task, create a reference to a MAX task, copy a MAX task to a project task, or copy an existing this walkthrough, select Create a new project task and click Finish.
  • Page 150 Chapter 5 Getting Started with Measurement Studio To configure your task Measurement Studio User Manual In the Create New dialog box of the DAQ Assistant, you can begin to interactively define your DAQ task. Select Acquire Signals, and then Analog Input as the measurement type for your task. Next, select Voltage.
  • Page 151 You can also use a simulated device in this walkthrough. For more information, refer to Creating NI-DAQmx Simulated Devices in the Measurement & Automation Explorer Help for NI-DAQmx. © National Instruments Corporation Chapter 5 From the Supported Physical Channels tree in the Physical tab, select the physical channel, such as ai1, on the DAQ device to which you connected the voltage signal.
  • Page 152 Chapter 5 Getting Started with Measurement Studio Measurement Studio User Manual In the Edit DAQ Task dialog box, you can edit the configuration of your DAQ task. If the embedded DAQ Assistant help is not open by default, click the Show Help button in the upper-right corner of the window to display the help.
  • Page 153 © National Instruments Corporation Chapter 5 To complete the DAQ configuration, select the N Samples Acquisition Mode in the Timing Settings section. For more information on timing, refer to Timing in the NI-DAQmx Help. Next, click the Run button in the toolbar near the top of the Edit DAQ Task dialog box.
  • Page 154 Chapter 5 Getting Started with Measurement Studio To create a custom user interface for the task Measurement Studio User Manual In the Configure DAQ Component UI wizard, you can customize and preview a user interface and code for your task. Click Finish to generate the task user interface in your project form.
  • Page 155 Chapter 5 Getting Started with Measurement Studio The wizard also generates event handlers and code to acquire data and present it on your generated user interface. © National Instruments Corporation 5-51 Measurement Studio User Manual...
  • Page 156: Walkthrough: Creating A Measurement Studio Instrument I/O Application

    Chapter 5 Getting Started with Measurement Studio What’s next To learn more about tasks, channels, and other NI-DAQmx concepts, refer to the NI-DAQmx Help located at Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help. For more information about creating and using tasks in Measurement Studio, refer to Using the Measurement Studio NI-DAQmx .NET Library.
  • Page 157 The National Instruments Instrument I/O Assistant organizes instrument communication for a serial, Ethernet, or GPIB instrument into ordered steps. This walkthrough is designed to help you learn how to build an instrument I/O application by taking you through the following steps: •...
  • Page 158 Chapter 5 Getting Started with Measurement Studio Measurement Studio User Manual In the Project Types pane, select Measurement Studio under Visual C# or Visual Basic, depending on which language you want to create the project in. This walkthrough refers to Visual C#, but you can follow the same process if you use Visual Basic .NET.
  • Page 159 Note information or sample code generated for this device will be different depending on the instrument actually used. © National Instruments Corporation Chapter 5 The Select Instrument step automatically appears in the Step Sequence window when you launch the Instrument I/O Assistant.
  • Page 160 Chapter 5 Getting Started with Measurement Studio Measurement Studio User Manual If there are more than two tokens in the token list, remove them for this example. To remove a token, right-click on it in the response window and select Remove. The response window displays data in binary form, ASCII form, or binary form and ASCII form together.
  • Page 161 10. Click the Show All Files icon and expand the 11. Double-click the Displaying Instrument I/O Assistant data on your user interface © National Instruments Corporation Chapter 5 VisaNSTask1 Instrument I/O Assistant generated for you. Double-click the file in the Solution Explorer to open your Form1 main application form.
  • Page 162 Chapter 5 Getting Started with Measurement Studio [VB.NET] ' Declare an instance of VisaTask Dim myTask As New VisaTask() Dim results As VisaTaskResults 'Display the data in the text boxes results = myTask.Run() textBox1.Text = results.Vendor textBox2.Text = results.Device [C#] //Declare an instance of VisaTask VisaTask myTask = new VisaTask();...
  • Page 163: Technical Support And Professional Services

    Technical Support and Professional Services Visit the following sections of the award-winning National Instruments Web site at • • • © National Instruments Corporation for technical support and professional services: ni.com Support—Technical support resources at the following: – Self-Help Technical Resources—For answers and solutions,...
  • Page 164 Appendix A Technical Support and Professional Services If you searched your local office or NI corporate headquarters. Phone numbers for our worldwide offices are listed at the front of this manual. You also can visit the Worldwide Offices section of office Web sites, which provide up-to-date contact information, support phone numbers, email addresses, and current events.
  • Page 165 Function that begins an operation and returns control to the program prior to the completion or termination of the operation. © National Instruments Corporation Measurement Studio User Manual...
  • Page 166 Glossary button A control used to input or display Boolean information or to initiate an action in a program. channel 1. Physical—a terminal or pin at which you can measure or generate an analog or digital signal. A single physical channel can include more than one terminal, as in the case of a differential analog input channel or a digital port of eight lines.
  • Page 167 A device that acquires or generates data and can contain multiple channels and conversion devices. DAQ devices include plug-in devices, PCMCIA cards, and DAQPad devices, which connect to a computer USB or 1394 (FireWire © National Instruments Corporation ComplexDouble ActiveX control.
  • Page 168 Glossary DataSocket Technology that simplifies live data exchange between applications and HTTP, FTP, OPC, logos (Lookout objects) and file servers over the Internet. It provides one common API to a number of different communication protocols. device An instrument or controller you can access as a single entity that controls or monitors real-world I/O points.
  • Page 169 HTTP HyperText Transfer Protocol. Protocol based on TCP/IP, which is used to download Web pages from an HTTP server to a Web browser. © National Instruments Corporation extension that you can run independently of the .exe Measurement Studio User Manual...
  • Page 170 Shortened notation for ANSI/IEEE Standards 488-1978, 488.1-1987, and 488.2-1987. See also GPIB. IMAQ Vision National Instruments image acquisition and analysis software that you can use to acquire images from National Instruments image acquisition (IMAQ) boards, display them in your program, perform interactive viewer operations, and analyze the images to extract information.
  • Page 171 DAQ devices such as the E Series multifunction I/O (MIO) devices, SCXI signal conditioning modules, and switch modules. Measurement Studio National Instruments software that includes tools to build measurement applications in Visual Basic .NET, Visual C#, and Visual C++. meter A control used to input or display numerical data.
  • Page 172 Glossary NI-488.2 Driver-level software to control and communicate with National Instruments GPIB hardware. NI-DAQ Driver-level software to control and communicate with DAQ hardware. NI-DAQ is an extensive library of VIs and functions you can call from an application development environment (ADE) to program all the features of an NI measurement device, such as configuring, acquiring and generating data from, and sending data to the device.
  • Page 173 Window or dialog box that displays current configuration information and allows users to modify the configuration. PCI eXtensions for Instrumentation. Rugged, open platform for modular instrumentation with specialized mechanical, electrical, and software features. Refer to © National Instruments Corporation for more information. www.pxisa.org Measurement Studio User Manual Glossary...
  • Page 174 Glossary range Region between the limits within which a quantity is measured, received, or transmitted. The range is expressed by stating the lower and upper range values. scalar Number that a point on a scale can represent. The number is a single value as opposed to an array.
  • Page 175 TCP/IP are TCP, which deals with the construction of data pockets, and IP, which routes them from computer to computer. TestStand Ready-to-run test executive from National Instruments for organizing, controlling, and executing your automated prototype, validation, or manufacturing test systems.
  • Page 176 Signal Generation (table), 3-5 Signal Processing (table), 3-7 Standard Analysis, 3-4 Statistics (table), 3-12 Windowing (table), 3-6 AutoRefresh control, 2-49 © National Instruments Corporation button control, 3-19 Common .NET class library, 2-13 Visual C++ class library, 3-15 complex graph control, 2-25, 2-42...
  • Page 177 1-7 Preferences, 4-4 resources, 1-9 meter control, 2-28, 2-45 Microsoft Excel Interface Visual C++ class library, 3-16 Microsoft Word Interface Visual C++ class library, 3-16 National Instruments support and services, A-1 .NET class libraries Analysis, 2-2 ni.com...
  • Page 178 Visual C++ control, 3-22 overview Measurement Studio, 1-1 .NET class libraries, 2-1 Visual C++ class libraries, 3-1 © National Instruments Corporation Parameter Assistant, 4-11 programming examples (NI resources), A-1 project conversion wizard, 4-2 project templates, 4-4 property editor control, 2-32...
  • Page 179 Index gauge, 2-27, 2-44 knob, 2-27, 2-44 LED, 2-30, 2-48 legend, 2-27, 2-44 meter, 2-27, 2-44 numeric edit, 2-29, 2-47 property editor, 2-32 scatter graph, 2-20, 2-38 slide, 2-29, 2-46 switch, 2-30, 2-48 tank, 2-29, 2-46 thermometer, 2-29, 2-46 waveform graph, 2-20, 2-38 Visual C++ class library, 3-19 button, 3-19 graph, 3-20...

Table of Contents