National Instrumentsメーカーnoneの使用説明書/サービス説明書
ページ先へ移動 of 179
Measurement Studio TM User Manual Subtitle Measurement Studio User Manual April 2008 3 7 3392 C -01.
Support Worldwide Technical Support and Product Info rmation ni.com National Instruments Corporate Headquarters 11500 North Mopac Expressway Aust in, Texas 78759-3504 USA Tel: 512 683 0100 Worldwide O.
Important Information Warranty The media on which you receive National In struments software are warranted not to fail to execute p rogramming instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as eviden ced by receipt s or other documentation.
© National Instruments Corporatio n v Measurement Studio User Manual Contents About This Manual How To Use This Manual ................... .............. ........... ............... .............. ........... .......... ix Conventions ............ ..
Contents Measurement Studio User Manual vi ni.com Numeric Controls ....... .............. .............. ........... ............... .............. ........... ...... 2-27 Numeric Edit Control ..................... ........... .............. .........
Contents © National Instruments Corporation v ii Measurement Studio User Manual Additional Operations ................... .............. .............. ........... ............. 3-21 Knob Control ................ ........... .............. ..........
© National Instruments Corporation i x Measurement Studio User Manual About This Manual The Measur ement Studio User Manual introduces the co ncepts associated with the Measurement Studio class li braries and de velopment tools. This manual assumes that you hav e a general working knowledge of Microsoft V isual Studio and the .
About This Manual Measurement Studio User Manual x ni.com Use this manual as a starting point to learn about M easurement Studio. Refer to the NI Measur ement Studio Help within the V isu al Studio en vironment for function reference and detailed informat ion about the Measurement Studio class libraries, wi zards, assistants, and other features.
© National Instruments Corporation 1 -1 Measurement Studio User Manual 1 Introduction to Measurement Studio Measurement Studio is an integrated su ite of tools and class libraries that are designed for developers using Microsoft V isual Basic .NET , V isual C#, ASP .
Chapter 1 Introduction to M easurement Studio Measurement Studio User Manual 1-2 ni.com This manual documents Measurement Studio for V i sual Studio 2005 and V isual Studio 2008. For help with V isual Studio 6.0 suppo rt, refer to the Measur ement Studio Support for V isual Studio 6.
Chapter 1 Introduction to Measurement Studio © National Instruments Corporation 1 -3 Measurement Studio User Manual • Microsoft-compatible mouse • Microsoft Internet Explorer 6.0 or later Optional Installation —In order for links from Measurem ent Studio help topics to .
Chapter 1 Introduction to M easurement Studio Measurement Studio User Manual 1-4 ni.com Note There are separate installers for Measurem ent Studio suppo rt for V isu al Studio 2005 and Measurement Studio support for V isual Studio 200 8. Repeat the installation instructions to install supp ort for both.
Chapter 1 Introduction to Measurement Studio © National Instruments Corporation 1 -5 Measurement Studio User Manual T o install support for NI-D A Q mx: 1. In the NI Measurement Studi o 8.5 installer , enable the VS2008 Driver Support».NET Framework 3.
Chapter 1 Introduction to M easurement Studio Measurement Studio User Manual 1-6 ni.com Installing the Current V ersion of M easurement Studio over Previous V ersions of Measurement Studio Note Y ou can hav e only one version of Measurem ent Studio installed on a system for each versi on of V isual Studio or the .
Chapter 1 Introduction to Measurement Studio © National Instruments Corporation 1 -7 Measurement Studio User Manual Table 1-1. Measurement Studio P ackage Comparison Chart for Visual C# and Visual Basi c .
Chapter 1 Introduction to M easurement Studio Measurement Studio User Manual 1-8 ni.com DataSocket Serv er ✔ ✔ DataSocket Library ✔ ✔ Paramete r Assistant ✔ ✔ Instrument I/O Assistant 2 .
Chapter 1 Introduction to Measurement Studio © National Instruments Corporation 1 -9 Measurement Studio User Manual Learning Measurement Studio As you work with Measurement Studio, you might need to con sult additional resources.
Chapter 1 Introduction to M easurement Studio Measurement Studio User Manual 1-10 ni.com For more information on example locations, refer to Wher e T o F ind Examples . • NI T echnical Support—Refer to Appendix A, Technical Support and Professional Services , for more infor mation.
© National Instruments Corporation 2 -1 Measurement Studio User Manual 2 Measurement Studio .NET Class Libraries This chapter provides o vervie w inform ation about the .NET class libraries included with Measurement Studio support for V isual Studio 2005 and V isual Stu dio 2008.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-2 ni.com Analysis The Measurement Studio Analysis .NET class library is in the NationalInstruments.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -3 Measurement Studio User Manual Enterprise Analysis The Enterprise Analysis class library, which ships with Me.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-4 ni.com Po wer and Frequency Estimate ✔ Pulse Measurements ✔ Scaled T ime Domain W indow ✔ Single T one Info.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -5 Measurement Studio User Manual Blackman-Nut tall W indow ✔ ✔ Cosine T apered W indo w ✔ ✔ Dolph-Cheb .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-6 ni.com IIR Cascade ✔ ✔ IIR ✔ ✔ In v erse Chebyshe v ✔ ✔ Kaiser ✔ ✔ Signal Processing Autocorrelat.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -7 Measurement Studio User Manual Threshold Peak Detector ✔ ✔ Unwrap Phase ✔ ✔ Linear Algebra Back T ran.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-8 ni.com Complex Pseudo In v erse Matrix ✔ ✔ Complex QR F actorization ✔ Complex QR F actorization with Piv o.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -9 Measurement Studio User Manual Matrix Norm ✔ ✔ Matrix Rank ✔ ✔ Outer Product ✔ ✔ Pseudo In verse .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-10 ni.com Complex Number Arithmetic ✔ ✔ Find Polynomial Ro ots ✔ ✔ Scale 1D and 2D ✔ ✔ Curve Fitting Cu.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -11 Measurement Studio User Manual F-Distrib ution ✔ Histogram ✔ ✔ In v erse Chi-Square Distribution ✔ I.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-12 ni.com Dawson’ s Integral ✔ Dilogarithm ✔ Elliptic 1s t ✔ Elliptic 2nd ✔ Exponential Integral ✔ Fact.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -13 Measurement Studio User Manual Tip For more information about analyzing or generating data with the Analysis class library , refer t o the Using the Mea sur ement Studio Analysis .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-14 ni.com •A n EngineeringFormatInfo class that def ines a custom formatter to format numeric values as strings with engineering notation and International Syst em of Units (SI) prefixes and symbols.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -15 Measurement Studio User Manual Use the features in the Network V ari able class library to perform the follo.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-16 ni.com transfer protocol servers ( ftp: ), f ile systems ( file: ), and OLE for Process Control ( opc: ) servers. • Specify data sources and targets using a URL, the same way you access W eb pages in a W eb browser .
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -17 Measurement Studio User Manual Use the NI-D A Qmx class li brary to perform the following types of tasks: .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-18 ni.com •P X I • Serial (RS-232 and RS-485) •T C P / I P •U S B • VXI Tip For information about creatin.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -19 Measurement Studio User Manual Windows Forms Controls The Windows Forms .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-20 ni.com Use this class library to add measur ement-specif ic user interface controls to your application.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -21 Measurement Studio User Manual W ith the wa veform graph and scatter graph controls and the classes that int.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-22 ni.com Cursor Operations • Use cursors to identify key po ints in plots and the plot area. • Configure cursor snap modes to be f ixed, floating, nearest point, or to plot.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -23 Measurement Studio User Manual Digital W aveform Graph Control Use the Measurement Studio digital wav eform graph control, as shown in Figure 2-2, to displ ay DigitalWaveform data on a W indo ws F orms user interface.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-24 ni.com Waveform Sample and Signal State Operations • Simultaneously display waveforms and signals or display signals on ly . • Create custom wa veform sa mp le and signal state styles.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -25 Measurement Studio User Manual Complex Graph Control Use the Measurement Studio comple x graph control, as shown in Figure 2-3, to disp lay ComplexDouble data on a Windo ws F orms user interface.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-26 ni.com Axis Operations • Confi gure a graph to include multip le axes or independent ranges so that plot data f its the graph plot area.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -27 Measurement Studio User Manual Additional Operations • Pan and zoom interacti v ely . • Copy the graph as a BMP , GIF , JPEG, or PNG image to th e clipboard or a file.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-28 ni.com • Configure the format of value labels to engineering or date/time. • Display tooltips reflect ing the current value of the pointer . • Interacti vely change the value of th e control b y clicking or dragging and moving the pointer with the mouse.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -29 Measurement Studio User Manual Use the Measurement Studio slide, tank, and thermometer con trols, as sho wn in Figure 2-5, to input and display numeric data on your interf ace.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-30 ni.com W ith the numeric edit control and the classes that interf ace with the control you can perform t he following operations: • Use up and do wn buttons for easy incrementing and decrementing.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -31 Measurement Studio User Manual Y ou ty pically use an LED control, as shown in Figure 2-8, to indicate a Boolean v alue on an ap plication user interf ace. Figure 2-8.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-32 ni.com Property Editor Control Use the Measurement Studio propert y editor control, as shown in Figure 2-9, to configure properties for Win dows Forms controls at run time.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -33 Measurement Studio User Manual Tip For more information about using the propert y editor control, refer to the Using the Measur ement Studio Pr operty Editor Contr ol topic in the NI Measurement Studio Help .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-34 ni.com • Make the control background transparent. • Configure the LED controls to blink while they are on or of f and configure the rate at which the LED controls blink.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -35 Measurement Studio User Manual • Set the interaction mode to keyboard and mouse, ke yboard only , mouse only , or none. • Use the edit box to select text programmatically and to validate text va lu e s .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-36 ni.com Figure 2-12. InstrumentControlStrip Control Tip For more information about the Inst rumentControlStrip control, refer to Using the Measur ement Studio W in dows F orms In strument Contr ol Strip .
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -37 Measurement Studio User Manual ASP .NET W eb Forms Controls The Measurement Studio ASP.NET user interface controls are in the Web Forms .NET class library. The Web Fo rms .
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-38 ni.com W aveform Graph and Scatter Graph Controls Use the Measurement Studio waveform graph and scatter graph controls, as shown in Figure 2-13, to display two-di mensional data on a Web-based user interface.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -39 Measurement Studio User Manual • 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.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-40 ni.com Additional Operations • Zoom interacti vely as well as programatically .
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -41 Measurement Studio User Manual W ith the digital wa veform graph control and the classes that interf ace wit.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-42 ni.com Tip For more information about using the d igital wav eform graph co ntrol, refer to the Using the Measur ement Studio W eb F orms Digital W aveform Graph .
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -43 Measurement Studio User Manual • Create custom point an d line styles for plots. • Specify anti-aliased plots for plot lines. • Calculate and display error bands.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-44 ni.com • Annotate and label a magnitude value. • Annotate and label a range of magnitu de values for a particular phase. Additional Operations • Zoom interacti vely as well as programmatically .
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -45 Measurement Studio User Manual • Customize the appearance of the control using 3D lab styles or classic 2D styles and change the color and le ngth of ticks and labels.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-46 ni.com Use the Measurement Studio slide, tank, and thermometer con trols, as shown in Figure 2-17, to input an d display numeric dat a on your interface. Figure 2-17.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -47 Measurement Studio User Manual Numeric Edit Control Use the Measurement Studio numer ic edit control, as shown in Figure 2 -18, to display numeric values and to provide a way by which end users can edit numeric values.
Chapter 2 M easurement Studio .NET Class Libr aries Measurement Studio User Manual 2-48 ni.com Switch and LED Controls Use the Measurement Studio switch an d LED control s as Boolean controls in an ASP.NET Web application. You typically use a switch control to receive and control Bool ean input in an ASP.
Chapter 2 Measurement Studio .NET Class Libraries © National Instruments Corporation 2 -49 Measurement Studio User Manual AutoRefresh Control Use the AutoRefresh control to update a Web control or a group of Web controls on the cli ent at a specified interval.
© National Instruments Corporation 3 -1 Measurement Studio User Manual 3 Measurement Studio Visual C++ Class Libraries This chapter provides ov erview info rmation about the V isual C++ class libraries that are av ailable with M easurement Studio. Measurement Studio V isual C++ support for V isual Studio .
Chapter 3 Measurement Studio User Manual 3-2 ni.com Refer to the following sections for information about each Measurement Studio V isual C++ class library . ActiveX Controls in Visual C++ ActiveX controls are specialized COM servers that implement a specific set of interfaces.
Chapter 3 © National Instruments Corporation 3 -3 Measurement Studio User Manual Plot Operations • Plot three-dimensional data, including curves and surfaces. • Use multiple plot styles—poin t-line, line-point, hidden-lin e, contour , surface, surface-line, surf ace- contour , and surface-normal.
Chapter 3 Measurement Studio User Manual 3-4 ni.com Standard Analysis The Standard Analysis class library, which ships with M easurement Stud io Standard Edition, includes the sawtooth, sine, square, triangle, and basic function wave generators.
Chapter 3 © National Instruments Corporation 3 -5 Measurement Studio User Manual Refer to T able 3-1 to determine the t ype of measurements av ailable in the Professional and Enterprise Analysis V isual C++ libraries.
Chapter 3 Measurement Studio User Manual 3-6 ni.com Square W av e ✔ ✔ T riangle W av e ✔ ✔ Uniform Whit e Noise ✔ ✔ Win dow in g Blackman W indo w ✔ ✔ Blackman-Harris W indo w ✔ ✔ .
Chapter 3 © National Instruments Corporation 3 -7 Measurement Studio User Manual Cascade ✔ ✔ Cheb yshe v ✔ ✔ Elliptic ✔ ✔ Equiripple ✔ FIR ✔ ✔ FIR W indo wed ✔ ✔ IIR Cascade ✔.
Chapter 3 Measurement Studio User Manual 3-8 ni.com In v erse Fast Hilbert T ransform ✔ ✔ In v erse Fast Hartle y T ransform ✔ ✔ Peak Detection ✔ ✔ Po wer Spectrum ✔ ✔ Pulse Parameters.
Chapter 3 © National Instruments Corporation 3 -9 Measurement Studio User Manual Complex Matrix Condition Number ✔ ✔ Complex Matrix Norm ✔ ✔ Complex Matrix Rank ✔ ✔ Complex Outer Product .
Chapter 3 Measurement Studio User Manual 3-10 ni.com Linear Equations ✔ LU Factorization ✔ Matrix Balance ✔ Matrix Condition N umber ✔ ✔ Matrix Multiplicat ion ✔ ✔ Matrix Norm ✔ ✔ Ma.
Chapter 3 © National Instruments Corporation 3 -11 Measurement Studio User Manual 1D and 2D Linear Ev aluation ✔ ✔ 1D and 2D Polynomial Evaluation ✔ ✔ 1D Polar to Rectangular ✔ ✔ 1D Recta.
Chapter 3 Measurement Studio User Manual 3-12 ni.com Remov e Outliers ✔ Statistics 1D, 2D, and 3D AN O V A ✔ Chi-Square Distrib ution ✔ erf(x) and erfc(x) ✔ F-Distrib ution ✔ Histogram ✔ .
Chapter 3 © National Instruments Corporation 3 -13 Measurement Studio User Manual Bessel 1st ✔ Bessel 2nd ✔ Beta ✔ Complimentary Gamma ✔ Cosine Integral ✔ Dawson’ s Integral ✔ Dilogarit.
Chapter 3 Measurement Studio User Manual 3-14 ni.com Tip For more information about analyzing or generating data with the Analysis class library , refer to the Analysis V isual C+ + Class Library Overvie w topic in the NI Measur ement Studio Help . For more inf ormation about the functi onality included in the Analysis class library , visit ni.
Chapter 3 © National Instruments Corporation 3 -15 Measurement Studio User Manual Common The Measurement Studio Common Visual C++ class library provides data types and classes that other Measurem ent Studio Visual C++ class libraries use. The classes that are implemented natively in Visual C++ include the CNiVector and CNiMatrix classes.
Chapter 3 Measurement Studio User Manual 3-16 ni.com transfer protocol servers ( ftp: ), f ile systems ( file: ), and OLE for Process Control ( opc: ) servers. • Specify data sources and targets using a URL, the same way you access W eb pages in a W eb browser .
Chapter 3 © National Instruments Corporation 3 -17 Measurement Studio User Manual NI-488.2 Use the Measurement Studio NI-488.2 Visual C++ class library to communicate with and control instrume nts on a GPIB interface. This class library is included when you instal l the NI-488.
Chapter 3 Measurement Studio User Manual 3-18 ni.com NI-Reports Use the Measurement Studio NI-Repor ts Visual C++ class library to generate printed reports from Measurement Studio Visual C++ applications. This class li brary is included onl y in the Measurement Studio Enterprise package.
Chapter 3 © National Instruments Corporation 3 -19 Measurement Studio User Manual User Interface Use the Measurement Studio User Inte rface Visual C++ class library to add user interface controls to your app lication. You can c onfigure the user interface controls programmatically or through the property pages in the Visual C++ resource editor.
Chapter 3 Measurement Studio User Manual 3-20 ni.com Tip For more information about using the button control, refer to th e Using the Measur ement Studio Button V isual C++ Contr ol section in the NI Measurement Studio Help .
Chapter 3 © National Instruments Corporation 3 -21 Measurement Studio User Manual Axis Operations •U s e t h e CNiAxis class to interface to a single axis of a graph control. This feature allows you to modify the appearance and behavior of the axis.
Chapter 3 Measurement Studio User Manual 3-22 ni.com W ith the knob control and the classes that interf ace with the control, you can perform the foll o wing operations: • Use dif ferent display styles—knobs, dial s, and meters. • Use multiple control pointers, each representing one scalar v alue.
Chapter 3 © National Instruments Corporation 3 -23 Measurement Studio User Manual Tip For more information about easily using the numeric edit cont rol, refer to the Using the Measur ement Studio Numeric Edit V isual C++ Contr ol section in the NI Measur ement Studio Hel p .
Chapter 3 Measurement Studio User Manual 3-24 ni.com Utility Use the Measurement Stud io Utility Visual C++ class library to easily access Windows operating system function ality . Table 3-2 lists classes in the Utility class library and their functionality .
Chapter 3 © National Instruments Corporation 3 -25 Measurement Studio User Manual Tip For more information about using the U tility class lib rary , refer t o the Utility V isual C++ Class Library Overvie w section in the NI Measur ement Studio Help .
© National Instruments Corporation 4 -1 Measurement Studio User Manual 4 Measurement Studio Integrated T ools and Features When you use Measurement Studio in the V isual St udio en vironment, you hav e access to measurement and automa tion tools and features for V isual Basic .
Chapter 4 M easurement Studio Integrated T ools and Features Measurement Studio User Manual 4-2 ni.com • Add/Remove .N ET Class Libraries Wizard —Use the Measurement Studio Add/Remove Class Libraries wizard to add or remove Measurement Studio class libraries or assemblies in existing V isual Basic .
Chapter 4 Measurement Studio Integrated T ools and Features © National Instruments Corporation 4 -3 Measurement Studio User Manual that the communication with an instrument is correct. Select NI T ools»NI Spy to access this menu item. The NI Spy menu item is av ailable only if you have NI Spy installed.
Chapter 4 M easurement Studio Integrated T ools and Features Measurement Studio User Manual 4-4 ni.com • Measureme nt Studio Online Resour ces»NI Dev eloper Zone —NI Dev eloper Zone, zone.
Chapter 4 Measurement Studio Integrated T ools and Features © National Instruments Corporation 4 -5 Measurement Studio User Manual Figure 4-1. New Project Dialog Box in Visual Studio 2005 Tip For mor.
Chapter 4 M easurement Studio Integrated T ools and Features Measurement Studio User Manual 4-6 ni.com When you exit the wizard, the wizard adds or remo ves the appropriate references to or from the project, thus adding or removing the functionality associated with the class library .
Chapter 4 Measurement Studio Integrated T ools and Features © National Instruments Corporation 4 -7 Measurement Studio User Manual Note The D A Q Assistant is available only if you ha ve installed NI-D A Qmx and either the Measurement Studio Professional or M easurement Studio En terprise package.
Chapter 4 M easurement Studio Integrated T ools and Features Measurement Studio User Manual 4-8 ni.com The D A Q Assistant interactiv ely assi sts you in performing the follo wing operations: • Creating an NI-D A Qmx task class • Configuring an NI-D A Qmx task class • Generating a V isual Basic .
Chapter 4 Measurement Studio Integrated T ools and Features © National Instruments Corporation 4 -9 Measurement Studio User Manual Tip For more information on ho w to create an NI-D A Qmx user interface, refer to the Using a .NET DA Q Comp onent in a Project topic in the NI Measur ement Studio He lp .
Chapter 4 M easurement Studio Integrated T ools and Features Measurement Studio User Manual 4-10 ni.com Refer to Chapter 5, the Walkthrough: Creating a Measurem ent Studio Instrument I/O App lication section, fo r step-by-step instructions on how to use the Instrument I/O Assistant.
Chapter 4 Measurement Studio Integrated T ools and Features © National Instruments Corporation 4 -11 Measurement Studio User Manual Selecting a Measurement Studio Parameter V alue To access I/O devices or resources, y ou must specify string constants or scalar values for many method para meters and property values.
Chapter 4 M easurement Studio Integrated T ools and Features Measurement Studio User Manual 4-12 ni.com Using the Instrument Driver Wizard To use an IVI or VXI plug&play instrumen t driver with a C DLL in a Measurement Studio .NET application, use the Measurement Studio .
© National Instruments Corporation 5 -1 Measurement Studio User Manual 5 Getting Started with Measurement Studio The following sections include ov erv iew information and step-by-step instructions on dev eloping applications with Measurement Studio tools and features.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-2 ni.com W alkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Analysis Note T o c.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -3 Measurement Studio User Manual Setting up the project 1. Select Start»All Programs»Microsoft V isual Studio 2005» Microsoft V i sual Studio 2005 or Start»All Programs»Microsoft V isual Studio 2008»Microsoft V isua l Studio 2008 .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-4 ni.com Tip If you are working with an existing project, you can access the A dd/Remov e Class Libraries dialog box by selecting Measure ment Studio»V iew .NET Class Library Wizard .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -5 Measurement Studio User Manual 6. Expand the Measurement Studio group in the T oolbox. 7. Select the W av efo rmGraph control and drag and drop it onto the form.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-6 ni.com Note Y ou can also access the W av eformPlot Collec tion Editor dialog box by clicking the wa veform graph smart tag.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -7 Measurement Studio User Manual 15. T y pe gauge for the name of the gauge.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-8 ni.com Generating, plotting, and analyzing the data 1. Double-click the button contr ol to display t he Form1 code, with the cursor inside the click ev ent handler of the button control.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -9 Measurement Studio User Manual Customizing y our user interface 1. Right-click the legend and select Edit Items to display the LegendItem Collection Editor dial og box.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-10 ni.com 4. Select Po ints Only . Click OK . Notice that the legend changed automatically to match the format ting of the graph. 5. Click the gauge smart tag to display the Gauge T asks.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -11 Measurement Studio User Manual 15. Select Debug»Start Without Deb ugging to run the application. 16. After your program builds, click Start . Notice the graph sho ws the data plot, and the gauge and the numeric edit disp lay the mean of the data.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-12 ni.com • Generating, plotting, and analyzing the data —Using NationalInstruments.Analysis .SignalGeneration.White NoiseSignal and NationalInstruments.Analysis.Mat h.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -13 Measurement Studio User Manual 3. In the T emplates p ane, select NI ASP .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-14 ni.com Tip If you are working with an existing project, you can access the A dd/Remov e Class Libraries dialog box by selecting Measur ement Studio»Add/Rem ove .NET Class Libraries Wizard .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -15 Measurement Studio User Manual Adding user interface controls to the pr oject In this section, you will build a Web page that looks like the followin g screenshot.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-16 ni.com 7. Select the Button control and drag and drop it into the lower right table cell. 8. Right-click the button and select Properties to display the Properties window .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -17 Measurement Studio User Manual 13. Select the Legend control and drag and drop it into the bottom left table cell. 14. Select the NumericEdit control and drag and drop it into the bottom center table cell.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-18 ni.com The follo wing screenshot sho ws Default.aspx with the user controls. Generating, plotting, and analyzing the data 1. Double-click the button contr ol to display t he Default.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -19 Measurement Studio User Manual [C#] // Declare and initialize a n instance of WhiteNoiseSignal. WhiteNoiseSignal whiteNoise = new WhiteNoiseSignal(); // Store the generated data in a double array named data.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-20 ni.com 3. Select Plots[0] in t he Source drop-down list and enter Signal in the Te x t box. Click OK . No w that you have specified a le gend item for th e plot, changes you make to the plot will be reflected on the legend.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -21 Measurement Studio User Manual 11. Select File»Sa ve Defaul t.aspx to sa v e your application. 12. Select Debug»Start Without Deb ugging to run the application.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-22 ni.com W alkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Network V ariable .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -23 Measurement Studio User Manual Writing an array of data to the server 1. Select Start»All Programs»Microsoft V isual Studio 2005» Microsoft V i sual Studio 2005 or Start»All Programs»Microsoft V isual Studio 2008»Microsoft V isua l Studio 2008 .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-24 ni.com 7. Select NetworkV ariable Communi cation Library . Click Finish . 8. In Program.cs , add the foll o wing code to write an array of d ata to the server: Note Y ou should choose the appropriate code depending on whether you created a VB or C# project.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -25 Measurement Studio User Manual Return values End Function Sub Main() Const location As String = " loca.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-26 ni.com bufferedWrite.W riteValue(value); Thread.Sleep(50 0); phase++; } } } } 9. Select Debug»Start W ithout Debugging to run the applicati on. 10. Minimize the console, but keep the application running.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -27 Measurement Studio User Manual Setting up a Windo ws F orms project 1. Select Start»All Programs»Microsoft V isual Studio 2005» Microsoft V i sual Studio 2005 .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-28 ni.com 6. Select Network V ariable Communication Library and Windows F orms User Interface Control Library .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -29 Measurement Studio User Manual Conf iguring the network v ariable data sour ce contr ol 1. Select V iew»T oolbox to display t he T oolbox. The too lbox contains components and controls that you can add to your project.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-30 ni.com 6. For the Location , bro wse to the local hostSystemdouble location in the Select Ne twork Item d ialog box. 7. Click OK to return to the NetworkV ariableBind ing Collection Edit or dialog box.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -31 Measurement Studio User Manual W alkthrough: Creating a Measurement Studio Application with W eb Forms Cont.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-32 ni.com • Displaying the array of data on a W eb page —Using the T oolbox, you will add an d configure an NationalInstruments.UI. WebForms.AutoRefresh control and a NationalInstrume nts.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -33 Measurement Studio User Manual 3. In the Project T ypes pane, select Vi s u a l C # or V isual Basic , depending on which language you want to create the project in.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-34 ni.com 8. In Pr ogram.cs , add the following code to write an array of data to the server: [VB.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -35 Measurement Studio User Manual } static void Main(string[ ] args) { const string Locatio n = @"localho.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-36 ni.com Setting up a W eb Forms pr oject 1. Select Start»All Programs»Microsoft V isual Studio 2005» Microsoft V i sual Studio 2005 or Start»All Programs»Microsoft V isual Studio 2008»Microsoft V isua l Studio 2008 .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -37 Measurement Studio User Manual 6. Select Network V ariable Communication Library and We b F o r m s User Interface Control Library .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-38 ni.com Conf iguring the network v ariable data sour ce contr ol 1. Click Design in the lo wer left corner to switch fro m Source V i e w to Design V ie w . 2. Select V iew»T oolbox to display t he T oolbox.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -39 Measurement Studio User Manual 6. Select Add . Y ou add a bind ing to cr eate a connection with the underlying network variable, and you use the NetworkV ariableBinding Collection Editor to con figure the binding properties.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-40 ni.com 8. Click OK to return to the NetworkV ariableBind ing Collection Edit or dialog box. 9. After you configure the binding properties, click OK to return to the ASP .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -41 Measurement Studio User Manual 4. Select Add . Select Wa v e f o r m G r a p h 1 for the ItemID and click OK .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-42 ni.com 6. Select File»Sa ve Def ault.aspx to sav e your application. 7. Select Debug»Start W ithout Debugging to run the application. The wa vef orm graph displ ays the array of data .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -43 Measurement Studio User Manual • Conf iguring y our task —Using the D A Q Assistant, you will interactiv ely configure and sa v e you r task. The wizard then generates code to reflect your co nfiguration settings.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-44 ni.com 3. In the Project types p ane, expand the Vi s u a l C # or V isual Basic node, depending on which language you want to create the project in, and select Measureme nt Studio .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -45 Measurement Studio User Manual 5. In the Add D A Q Componen t dialog box, you can choose to create a new project task, crea te a ne w MAX task, create a reference to a MAX task, copy a MAX task to a project tas k, or copy an ex isting .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-46 ni.com T o configur e your task 1. In the Create New dialog box of the D A Q Assistant, you can begin to interactiv ely def ine your D A Q task. Select Acquir e Signals , and then Analog Input as the measurement type for your task.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -47 Measurement Studio User Manual 3. From the Supported Physical Channels tree in the Physical tab, select the physical channel, such as ai1 , on t he D A Q device to which you connected the voltage signal.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-48 ni.com 4. In the Edit D A Q T ask dialog box, you can edit the configuration of your D A Q task. If the embedded D A Q Assi stant help is not open by default, click the Show Help button in the upper -right corner of the windo w to displ ay the help.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -49 Measurement Studio User Manual 5. T o complete the D A Q configuration, select the N Samples Acquisition Mode in the Timing S ettings section. For more information on timing, refer t o T iming in the NI-D A Qmx Help .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-50 ni.com T o create a custom user interface f or the tas k 1. In the Configure D A Q Co mponent UI wizard, you can customize and pre view a user interf ace and code for your task.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -51 Measurement Studio User Manual The wizard also generates e v ent handlers and code to acquire data and present it on your generated user interface.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-52 ni.com 3. Press <F5> to run the application. 4. After you have started th e application, click the Read button to begin acquiring data from your D A Q device.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -53 Measurement Studio User Manual The National Instrument s Instrument I/O Assistant organizes instrum ent communication for a serial, Ethernet, or GPIB instrument into ordered steps.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-54 ni.com 3. In the Project T ypes pane, select M easurement Studio un der V isu al C# or V isual Basic, depending on which language yo u want to create the project in.
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -55 Measurement Studio User Manual Perf orming a query on the instrument Note This walkthrough was created using the NI Instrument S imulator .
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-56 ni.com 5. If there are more th an two tokens in the token list, remove them for this example. T o remove a token, right-click on it in the response w indow and select Remove .
Chapter 5 Ge tting Started with Measurement Studio © National Instruments Corporation 5 -57 Measurement Studio User Manual 10. Click the Show All Files icon and expand the VisaTask.mxb node. 11. Double-click the VisaNSTask1 file to vie w the code that the Instrument I/O Assistant generat ed for you.
Chapter 5 G etting Started with Measurement Studio Measurement Studio User Manual 5-58 ni.com 7. Add the following code to display the vendor and model nam e of your instrument in t he text boxes.
© National Instruments Corporation A -1 Measurement Studio User Manual A T echnical Support and Professional Ser vices Visit the following sections of the award-winning National Instruments Web site at ni.com for technical support and professional services: • Support —T echni cal support resources at ni.
Appendix A T echnical Support and Professional Services Measurement Studio User Manual A- 2 ni.com If you searched ni.com and could not find the answers you need, contact your local off ice or NI corporate h eadquarters. Phone numbers for our worldwide of f ices are listed at the front of this manual.
© National Instruments Corporation G -1 Measurement Studio User Manual Glossar y A Acti veX Set of Microsoft technologies for reusable software components. Formerly called OLE. Acti veX control Reusable software component that adds functionality t o any Acti veX control container through exposed properties, methods, and events.
Glossary Measurement Studio User Manual G-2 ni.com B button A control used to input or display Boolean informat ion or to initiate an action in a program. C channel 1. Physical—a terminal or pin at wh ich you can measure or generate an analog or digital signal.
Glossary © National Instruments Corporation G -3 Measurement Studio User Manual coercion Automatic con version that Measurem ent Studio controls perform to change the numeric representation of a data element. COM Component Object Model. Microsof t specification for architecting and dev eloping reusable software components.
Glossary Measurement Studio User Manual G-4 ni.com DataSocket T echnology that simplifies li ve data e xchange between applications and HTTP , FTP , OPC, logos (Lookout objects) and file serv ers o ver the Internet. It provides one common API to a number of dif ferent communication protocols.
Glossary © National Instruments Corporation G -5 Measurement Studio User Manual E Ethernet Standard connection type for netw orks, where computer s are connected by coaxial or twisted-pair cable. ev ent Object-generated respon se to some action or chan ge in state, such as a mouse click or a completed acquisition.
Glossary Measurement Studio User Manual G-6 ni.com I IEEE 488 Shortened notation for ANSI/IEEE Standards 488-1978, 488.1-1987, and 488.2-1987. See also GPIB .
Glossary © National Instruments Corporation G -7 Measurement Studio User Manual L LabVIEW Laboratory V irtual Instrument Engin eering W orkbench. Graphical dev elopment en vironment used for de v eloping test and measurement applications. LabW indo ws/CVI ANSI C dev elopment en vironm ent for building test and measurement applications.
Glossary Measurement Studio User Manual G-8 ni.com N NI-488.2 Driv er-le vel softw are to control and comm uni cate with National Instrument s GPIB hardware.
Glossary © National Instruments Corporation G -9 Measurement Studio User Manual P PCI Peripheral Component Interconnect . High-performance expansion bus architecture commonly found in PCs. PID Proportional-Integral-Deri v ati ve. A three-term control mechanism combining proportional, integral, and deriv ati ve control.
Glossary Measurement Studio User Manual G-10 ni.com R range Region between the limits within wh ich a quantity is measured, recei v ed, or transmitted. The range is expressed by stating the lo wer and upper range va lu e s . S scalar Number that a point on a scale can represent.
Glossary © National Instruments Corporation G -11 Measur ement Studio User Manual TCP/IP T ransmission Control Protocol/Internet Protocol. A standard format for transferring data in pack ets from one computer to another .
© National Instruments Corporation I -1 Measur ement Studio User Manual Index A Acti veX controls in V isual C++, 3-2 Add/Remov e Class Li braries wizard, 4-5 adding or removing Measurement Studio class libraries, 4-5 Analysis .
Index Measurement Studio User Manual I -2 ni.com D D A Q Assista nt, 4-6 data acquisition (DA Q), 2-16, 3-17 DataSocket, .NET class library, 2-15 deployment requirements, 1-3 dev eloping with Measurem.
Index © National Instruments Corporation I -3 Measur ement Studio User Manual Common, 2-13 NI-488.2, 2-16 NI-D A Qmx, 2-16 NI-SCOPE, 2-17 NI-VISA, 2-17 ov ervie w, 2-1 User Interface, 2-18, 2-37 deployment requirements, 1-3 Network V ariable .
Index Measurement Studio User Manual I -4 ni.com 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 grap h, .
デバイスNational Instruments noneの購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
National Instruments noneをまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはNational Instruments noneの技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。National Instruments noneの取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。National Instruments noneで得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
National Instruments noneを既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はNational Instruments noneの不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、National Instruments noneに関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちNational Instruments noneデバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。