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 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 ...
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: <>...
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.
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.
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...
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 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.
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 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 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 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 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 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...
• • 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.
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.
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...
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.
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 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 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 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: •...
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...
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: •...
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 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...
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.
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...
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.
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 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: •...
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.
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.
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 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 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 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 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...
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.
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.
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.
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.
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 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.
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++.
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.
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 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.
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.
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 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 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 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 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 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 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 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 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 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.
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 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 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 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 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 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 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 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 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 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.
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 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 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 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.
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 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 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 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 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 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 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 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 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...
Need help?
Do you have a question about the none and is the answer not in the manual?
Questions and answers