Manual National Instruments 374318A-01

109 pages 1.44 mb
Download

Go to site of 109

Summary
  • National Instruments 374318A-01 - page 1

    Measurement Studio TM Measurement Computing TM Edition User Manual Measurement Studio for MCC User Manual Mar ch 2006 374318A-01 ...

  • National Instruments 374318A-01 - page 2

    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 Offices Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 6555 7838, Czec ...

  • National Instruments 374318A-01 - page 3

    Important Information Warranty The media on which you receive Natio nal In struments software are warranted not t o fail to execute pr ogramming 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. N ational Instruments will , at its option, repa ...

  • National Instruments 374318A-01 - page 4

    WARNING REGARDING USE OF MEA SUREME NT COMPUTING CORPORATION PRODUCTS MEASUREMENT COMPUTING CORPORATION DOES NOT AU THORIZE ANY MEASUREM ENT COMPUTING CORPORATION PRODUCT FOR USE IN LIFE SUPPORT SYST EMS AND/OR DEVICES WITH OUT WRITTEN APPROVAL OF TH E CEO OF MEASUREMENT COMPUTING CORPORATION. LIFE SUPPORT DEVICES/SY STEMS ARE DEVICES OR SYSTEM S W ...

  • National Instruments 374318A-01 - page 5

    © National Instruments Corporation v M easurement Studio for MCC User Manual Contents About This Manual How To Use this Manual .............. ............ .............. ........... .............. ............ .............. .... ix Conventions ............ ........... .............. ............ .............. ........... .............. ......... ...

  • National Instruments 374318A-01 - page 6

    Contents Measurement Studio for MCC User Manual vi ni.com Numeric Edit Control ..................... ........... .............. .............. ............ .............. 2-17 Switch and LED Controls ........ ........... .............. ............ .............. ........... ......... 2-18 Property Editor Control .................. ........... .... ...

  • National Instruments 374318A-01 - page 7

    Contents © National Instruments Co rporation vii Measurement St udio for MCC User Manual Appendix A Contacting Measurement Computing Corp. Glossary Index ...

  • National Instruments 374318A-01 - page 8

    © National Instruments Corporation ix M easurement Studio for MCC User Manual About This Manual The Measur ement Studio Measur ement Computing Ed ition User Manual introduces the concepts associated with the Measurement Studio class libraries and development tools. This manual assumes th at you have a general working knowledge of Microsoft V isual ...

  • National Instruments 374318A-01 - page 9

    About This Manual Measurement Studio for MCC User Manual x ni.com Conventions The following con v entions appear in this manual: <> T ext enclosed in angle brackets repr esents directory names and parts of paths that may v ary on dif ferent computers , such as < WindowsSystem >. » The » symbol leads you through nested menu items and ...

  • National Instruments 374318A-01 - page 10

    © National Instruments Corporation 1-1 Measurement Studio for MCC User Manual 1 Introduction to Measurement Studio Measurement Computing Edition Measurement Studio Measurement Co mputing Edition is an integrated suite of tools and class libraries that are designed for developers using .NET W indo ws and ASP .NET to develop meas urement and automat ...

  • National Instruments 374318A-01 - page 11

    Chapter 1 Introduction to Measurement Studio Measurement Computing Edition Measurement Studio for MCC User Manual 1-2 ni.com integrated tools) or V i sual C#, V isual Basic, or V isual C++ Expre ss Editions of Microsoft V i sual Studio 2005 Measurement Studio integration tools are not supported in the V isual Studio 2005 Exp ress Editions. • Inte ...

  • National Instruments 374318A-01 - page 12

    Chapter 1 Introduction to Measurement Studio Measurement Computing Edition © National Instruments Corporation 1-3 Measurement Studio for MCC User Manual 2. Click Install NI Measurement Studio for Visual Studio .NET 2003 or click Install NI Measurement Stud io for Visual Studio 2005 . 3. Click Next to install all NI sof tware to the default install ...

  • National Instruments 374318A-01 - page 13

    Chapter 1 Introduction to Measurement Studio Measurement Computing Edition Measurement Studio for MCC User Manual 1-4 ni.com Measurement Studio Features The following list contains features included in Measurem ent Studio . Refer to mccdaq.com/mstudio for more information about the features and functionality in cluded in M easurement Studi o. • W ...

  • National Instruments 374318A-01 - page 14

    Chapter 1 Introduction to Measurement Studio Measurement Computing Edition © National Instruments Corporation 1-5 Measurement Studio for MCC User Manual The following resources also are av ailable to provide you with information about Measurement Studio. • Examples—Measurem ent Studio installs examples to the following paths: – V isual Basic ...

  • National Instruments 374318A-01 - page 15

    © National Instruments Corporation 2-1 Measurement Studio for MCC User Manual 2 Measurement Studio Measurement Computing Edition .NET Class Libraries This chapter provides overview information about the .NET class libraries included with Measurement Studio Measurement Computing Edition support for Visual Studio .NET 2003 and Visual Studio 2005. Re ...

  • National Instruments 374318A-01 - page 16

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-2 ni.com Analysis The Measurement Studio Analysis .NET class library is in the NationalInstruments.Analysis namespace. The Analysis c lass library includes a set of classes that provides vario us digital signal processing, sign ...

  • National Instruments 374318A-01 - page 17

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-3 Measurement Studio for MCC User Manual •S i n e W a v e •S q u a r e W a v e • T riangle W av e • Uniform White Noise Windowing • Blackman W indow • Blackman-Harris W indo w • Blackman-Nuttall W indo w • Cosine T ...

  • National Instruments 374318A-01 - page 18

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-4 ni.com • IIR Cascade • In v erse Chebyshe v •K a i s e r Signal Processing • Autocorrelation • Con volution •C r o s s P o w e r • Cross Correlation • Decimate • Decon v olution • Deri v ati ve x(t) • Di ...

  • National Instruments 374318A-01 - page 19

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-5 Measurement Studio for MCC User Manual • Determinant • Dot Product • In v erse Matrix • Matrix Condition Number • Matrix Multiplication •M a t r i x N o r m • Matrix Rank • Outer Product • Pseudo In verse Matrix ...

  • National Instruments 374318A-01 - page 20

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-6 ni.com Statistics • Histogram • Mean • Median and Mode • Moment about Mean Tip For more information about analyzing or generating data with the Analysis class library , refer to the Using th e Measur ement Studio Anal ...

  • National Instruments 374318A-01 - page 21

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-7 Measurement Studio for MCC User Manual MCC-488.2 The Measurement Studio MCC-488.2 .NET class library is in the MccDaq.Mcc4882 namespace. This class library is included when you install the MCC-488.2 driver . The MCC-488.2 class l ...

  • National Instruments 374318A-01 - page 22

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-8 ni.com User Interface The Measurement Studio user interface controls are in the Windo ws F orms and W eb Forms .NET class libraries. Refe r to T able 2-1 for the UI controls provided b y Measurement Studio. Table 2-1. Measure ...

  • National Instruments 374318A-01 - page 23

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-9 Measurement Studio for MCC User Manual Windows Forms Controls The Measurement Studio user interface controls are in the Windows Forms .NET class library. The Windows Forms .NET cla ss library is in the NationalInstruments.UI.Wind ...

  • National Instruments 374318A-01 - page 24

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-10 ni.com W aveform Graph and Scatter Graph Controls Use the Measurement Studio wa veform graph and scatter graph controls, as shown in Figure 2-1, to display two-dimensional data on a Windo ws F orms user interface. Use the w ...

  • National Instruments 374318A-01 - page 25

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-1 1 Measurement Studio for MCC User Manual • Specify plots in the scatter graph control as X and Y data. Specify plots in the wa veform graph control as X or Y data and optionally with date and time scaling. • Use the extensibl ...

  • National Instruments 374318A-01 - page 26

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-12 ni.com • Copy the graph as a BMP , GIF , JPEG, or PNG image to the clipboard or a file. Tip For more information about using the wa veform and scatter graph controls, refer to the Using the Measur ement Studio W i ndows F ...

  • National Instruments 374318A-01 - page 27

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-1 3 Measurement Studio for MCC User Manual • Specify anti-aliased di gital plots. • Expand and collapse signal plots interactiv ely . Waveform Sample and Signal State Operations • Simultaneously display waveforms and signals ...

  • National Instruments 374318A-01 - page 28

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-14 ni.com Figure 2-3. Windows Forms Comp lex Graph Control W ith the comple x graph control and the classes that interface with the control, you can perform the fo llo wing operations: Plot Operations • Plot and chart Complex ...

  • National Instruments 374318A-01 - page 29

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-1 5 Measurement Studio for MCC User Manual Additional Operations • Pan and zoom interacti v ely . • Configure major , minor , an d custom divisions and origin lines. • Copy the graph as a BMP , GIF , JPEG, or PNG image to the ...

  • National Instruments 374318A-01 - page 30

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-16 ni.com • Customize the appearance of the control using 3D lab styles or classic 2D styles and change the color and leng th of ticks and labels. • Configure the format of value labels to engineering or date/time. Use the ...

  • National Instruments 374318A-01 - page 31

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-1 7 Measurement Studio for MCC User Manual W ith the slide, tank, and thermometer controls and the cla sses that interface with them, you can perform the fo llo wing operations: • Fill to the minimum or maxi mum value of the scal ...

  • National Instruments 374318A-01 - page 32

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-18 ni.com Tip For more information abou t using the W indows F orms numeric edit control, refer to the NumericEdit Class section in the NI Measur ement Studio Help . Switch and LED Controls Use the Measurement Studio switch an ...

  • National Instruments 374318A-01 - page 33

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-1 9 Measurement Studio for MCC User Manual Property Editor Control Use the Measurement Studio propert y editor control, as shown in Figure 2-9, to configure properties for Windo ws Forms controls at run time. Figure 2-9. Windows Fo ...

  • National Instruments 374318A-01 - page 34

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-20 ni.com Tip For more information about using the prop erty editor control, refe r to the Using the Measur ement Studio W i ndows F orms Property Editor Contr ol topic in the NI Measur ement Studio Hel p . Measurement Studio S ...

  • National Instruments 374318A-01 - page 35

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-2 1 Measurement Studio for MCC User Manual Switch and LED Array Controls Use the Measurement Studio switch and LED array controls as an array of Boolean controls on a W indo ws F orms user interf ace. Y ou typically use a switch ar ...

  • National Instruments 374318A-01 - page 36

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-22 ni.com Numeric Edit Array Control Use the Measurement Studio numeric edit array control, as shown in Figure 2-11, to con trol and visu alize values of an array of double va lu es . Figure 2-11. Numeric Edit Array control W i ...

  • National Instruments 374318A-01 - page 37

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-2 3 Measurement Studio for MCC User Manual ASP .NET W eb Forms Controls The Measurement Studio ASP .NET user interface controls are in the W eb Forms .NET class library . The W eb Forms .NET class library is in the NationalInstrume ...

  • National Instruments 374318A-01 - page 38

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-24 ni.com W aveform Graph and Scatter Graph Controls Use the Measurement Studio wa veform graph and scatter graph controls, as shown in Figure 2-12, to display two-dimensional data on a W eb-based user interface. Use the w av e ...

  • National Instruments 374318A-01 - page 39

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-2 5 Measurement Studio for MCC User Manual • Specify plots in the scatter graph control as X and Y data. Specify plots in the wa veform graph control as X or Y data and optionally with date and time scaling. • Use the extensibl ...

  • National Instruments 374318A-01 - page 40

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-26 ni.com Tip For more information about using the wa veform and scatter graph controls, refer to the Using the Measurement Studio W eb F orms Scatter and W aveform Graph .NET Contr ols section in the NI Measurement Studio Help ...

  • National Instruments 374318A-01 - page 41

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-2 7 Measurement Studio for MCC User Manual W ith the digital wa v eform graph control and the classes that interface with the control, you can perfor m the following operations: Plot Operations • Plot digital wav eform data, incl ...

  • National Instruments 374318A-01 - page 42

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-28 ni.com Complex Graph Control Use the Measurement Studio comple x graph control, as shown in Figure 2-14, to display ComplexDouble data on a ASP .NET W eb application. A ComplexDouble consists of a real part and an imaginary ...

  • National Instruments 374318A-01 - page 43

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-2 9 Measurement Studio for MCC User Manual Axis Operations • Configure a graph to include multip le ax es or independent ranges so that plot data f its the graph plot area. • Configure the axis modes to f ixed, e xact autoscali ...

  • National Instruments 374318A-01 - page 44

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-30 ni.com W ith all of the numeric controls and the classes that interface with them, you can perform t he following operations: • Configure the scale to be linear or logarithmic and toggle the visibility of the scale. • Fi ...

  • National Instruments 374318A-01 - page 45

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-3 1 Measurement Studio for MCC User Manual W ith the knob, gauge, and meter contro ls and the cla sses that interface with the controls, you can perform the fo llowing operations: • Specify the start and sweep angle of the arc pr ...

  • National Instruments 374318A-01 - page 46

    Chapter 2 Measurement Studio Mea suremen t Computing Edition .NET Class Libraries Measurement Studio for MCC User Manual 2-32 ni.com Numeric Edit Control Use the Measurement Studio numeric edit control, as shown in Figure 2-1 7, to display numeric values and to prov ide a way b y which end users can edit numeric values. T ypically , you u se a nume ...

  • National Instruments 374318A-01 - page 47

    Chapter 2 Measurement Studio Measurement Computing Edi tion .NET Class Libraries © National Instruments Corporation 2-3 3 Measurement Studio for MCC User Manual Switch and LED Controls Use the Measurement Studio switch an d LED controls as Boolean control s in an ASP.NET Web application. You typically use a switch control to receive and control Bo ...

  • National Instruments 374318A-01 - page 48

    © National Instruments Corporation 3-1 Measurement Studio for MCC User Manual 3 Measurement Studio Integrated T ools and Features When you use Measurement Studio in the V isu al Studio en vironment, you hav e access to measurement and auto mation tools and features for . NET W indo ws and ASP .NET . These integrated tools and features are designed ...

  • National Instruments 374318A-01 - page 49

    Chapter 3 Measureme nt Studio Integrated T ools and Features Measurement Studio for MCC User Manual 3-2 ni.com • Instrument Driver Netw ork —Use the NI Instrument Dri v er Network at ni.com/i dnet as a central resource for do wnloading, dev eloping, and submitting instrument driv ers. Select Measureme nt Studio Online Resources»Instrument Dri ...

  • National Instruments 374318A-01 - page 50

    Chapter 3 Measurement Studio Integrated T ools and Features © National Instruments Corporation 3-3 Measurement Studio for MCC User Manual Figure 3-1. New Project dialog box in Visual Studio 2005 Tip For more information about using project templates to create a ne w Measurement Studio project, refer to the Cr eating a New Measur ement Studio Pr oj ...

  • National Instruments 374318A-01 - page 51

    Chapter 3 Measureme nt Studio Integrated T ools and Features Measurement Studio for MCC User Manual 3-4 ni.com Figure 3-2. Measurement Studio Add/Remo ve Class Librarie s Wizard for Visual Studio 2005 Tip For more information about using the Add/Remove Class Libraries wizard to add or remov e Measurement Studio cl ass libraries, refer to the Adding ...

  • National Instruments 374318A-01 - page 52

    © National Instruments Corporation 4-1 Measurement Studio for MCC User Manual 4 Getting Started with Measurement Studio The following sections include over view information and step-by-step instructions on developing applicat ions with Measurement Studio tools and features. Refer to the Developing with Measurement Studio section and the Getting St ...

  • National Instruments 374318A-01 - page 53

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-2 ni.com W alkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Analysis in Visual Studio .NET 2003 Measurement Studio includes user inte rface controls, such as a waveform graph control and a gauge control, and analysis func ...

  • National Instruments 374318A-01 - page 54

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-3 Measurement Studio for MCC User Manual 4. In the T empl ates pane, select Windows A p plication . Specify MyMeasurementStudioProject for Name and specify a Location of your choice. 5. Click OK . The Measurement Studio Application Wi zard launches. 6. Select A ...

  • National Instruments 374318A-01 - page 55

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-4 ni.com Adding user interface controls to the project In this section, you will build a user in terface that looks like Form1 in the following screen shot. 1. Select V iew»T oolbox to display the T oolbox. The T oolbox contains components and controls that ...

  • National Instruments 374318A-01 - page 56

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-5 Measurement Studio for MCC User Manual 9. T ype Plot for the Name. Click OK . 10. Before you add the legend and gauge controls, you need to resize the form to accommodate them. Select the form and use the double-sided arro w to resize it. 11. Select the Legen ...

  • National Instruments 374318A-01 - page 57

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-6 ni.com The follo wing screenshot sho ws Form1 with the u ser controls. 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. 2. Ad ...

  • National Instruments 374318A-01 - page 58

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-7 Measurement Studio for MCC User Manual // Use the PlotY method to plot the data. Plot.PlotY(data); // Use the Mean method to calculate the mean of the data. double mean = Statistics.Mean(data); // Display the mean on the gauge. gauge.Value = mean; Customizing ...

  • National Instruments 374318A-01 - page 59

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-8 ni.com the Auto Format feature configures the appropriate co ntrol properties to reflect the style you chose. 4. Select Po ints Only . Click OK . Notice that the legend changed automatically to match the format ting of the graph. 5. Right-click the gauge a ...

  • National Instruments 374318A-01 - page 60

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-9 Measurement Studio for MCC User Manual 12. Select the Format Mode property and in the Numeric Edit F ormat Mode Editor dialog box, change the Precisi on to 4 . 13. Select File»Save F orm1.cs to sa v e your application. 14. Select Debug»Start Without Deb ugg ...

  • National Instruments 374318A-01 - page 61

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-10 ni.com functionality to a Windo ws F orms application by taking you through the following steps: • Setting up the project —Using the V isu al Studio New Project dialog box, you will create a ne w project that references the Measurement Studio Measurem ...

  • National Instruments 374318A-01 - page 62

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-1 1 Measurement Studio for MCC User Manual Application W izard automatically adds references to the appropriate class libraries. Tip If you are working with an existing proj ect, you can access the Add Class Libraries dialog box by selecting Measurement Studio? ...

  • National Instruments 374318A-01 - page 63

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-12 ni.com 7. Select the Meter control and drag and drop it on to the form. 8. Right-click the m eter and select Properties to display the Properties window . 9. Set the CoercionIntervalBa se property for the meter to –10 . 10. Set the Range property for th ...

  • National Instruments 374318A-01 - page 64

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-1 3 Measurement Studio for MCC User Manual private System.ComponentModel.Cont ainer components = null; public Form1() { // Required for Windows Form Desig ner support InitializeComponent(); daqBoard =new MccDaq.MccBoard(0); 3. Scroll down to move the cursor ins ...

  • National Instruments 374318A-01 - page 65

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-14 ni.com The follo wing screenshot sho ws Form1 with th e meter disp laying the acquired value. W alkthrough: Creating a Measurement Studio MCCDaq Scan Components Application in Visual Studio .NET 2003 Measurement Studio includes a co mponent library and ap ...

  • National Instruments 374318A-01 - page 66

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-1 5 Measurement Studio for MCC User Manual • Generating and displa ying the data —Using the MccDaq.Scan components, you will read data fr om a channel on an Measurement Computing de vice, con v ert the data object to an array , and show the v alue on a wa v ...

  • National Instruments 374318A-01 - page 67

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-16 ni.com 3. In the Project T ypes pa ne, expand the Measurement Studio Projects folder . Select V isual Basic Pr ojects or V isual C# Projects , depe nding on which language you want to create the project in. 4. In the T empl ates pane, select Windows A p p ...

  • National Instruments 374318A-01 - page 68

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-1 7 Measurement Studio for MCC User Manual Adding user interface controls to the project 1. Select V iew»T oolbox to display the T oolbox. The T oolbox contains components and controls that you can add to your project. 2. Select the Win d ow s Fo rm s tab . Th ...

  • National Instruments 374318A-01 - page 69

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-18 ni.com The follo wing screenshot shows Form1 with the us er controls. The AIScan component is shown in the component tray . Generating and disp laying the data 1. Double-click the Start b utton to display the Form1 code. 2. Add the following line of code ...

  • National Instruments 374318A-01 - page 70

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-1 9 Measurement Studio for MCC User Manual [C#] // This stops the scan private void button2_Click(object se nder, System.EventArgs e) { aiScan1.Stop(); } 5. Double-click the AIScan component to open the code window . 6. Add the following lines of code to the Da ...

  • National Instruments 374318A-01 - page 71

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-20 ni.com 8. Select File»Sav e F orm1.cs to sav e your application. 9. Select Debug»Start W ithout Debugging to run the applicati on. 10. After your program builds and runs, click Start Scan . The follo wing screenshot sho ws Form1 with the wa veform graph ...

  • National Instruments 374318A-01 - page 72

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-2 1 Measurement Studio for MCC User Manual • MCC-488.2 Library • Measurement Computing GPIB De vice Setting up the project 1. Open V isual Studi o .NET from Start»All Programs»Microsoft V isual Studio .NET 2003»Microsoft V i sual Studio .NET 2003 . 2. Se ...

  • National Instruments 374318A-01 - page 73

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-22 ni.com 7. Click Finish to display Form1 in the W indows Forms Designer . Adding user interface controls to the pr oject 1. Select V iew»T oolbox to display the T oolbox. The T oolbox contains components and controls that you can add to your project. 2. S ...

  • National Instruments 374318A-01 - page 74

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-2 3 Measurement Studio for MCC User Manual Generating and displa ying the data 1. Double-click the button control to display the Form1 code, with the cursor inside the click ev ent handler of the button control. 2. Add the following code to read a ra w data poi ...

  • National Instruments 374318A-01 - page 75

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-24 ni.com ' convert the string to a double Dim D As Double = Convert.ToDouble(S .Replace(NlChar, NullChar)) 'Plot the point WaveformGraph1.PlotYAppend(D, 1) Next System.Runtime.InteropServices.Marsh al.FreeHGlobal(Buffer) [C#] stringwrtString = &qu ...

  • National Instruments 374318A-01 - page 76

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-2 5 Measurement Studio for MCC User Manual The follo wing screenshot sho ws Form1 with the graph displaying the acquired value. Measurement Studio W alkthroughs for Visual Studio 2005 Use the following walkthroughs to help you dev elop Measurement Studio applic ...

  • National Instruments 374318A-01 - page 77

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-26 ni.com W alkthrough: Creating a Measurement Studio Application with Windows Forms Controls and Analysis in Visual Studio 2005 Measurement Studio includes user inte rface controls, s uch as a wa veform graph control and a gauge control, and analysis funct ...

  • National Instruments 374318A-01 - page 78

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-2 7 Measurement Studio for MCC User Manual 3. In the Project types pa ne, select Measurement S tudio under V isual C# or V isual Basic, depending on which language you want to create the project in. 4. In the T empl ates pane, select NI Windows A pplication . S ...

  • National Instruments 374318A-01 - page 79

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-28 ni.com Tip IIf you are working with an existing pr oject, you can access the Add/Remov e Class Libraries dialog box by selecting Measure ment Studio»V iew .NET Class Library Wizard . 7. Click Finish to display Form1 in the W indows F orms Designer . ...

  • National Instruments 374318A-01 - page 80

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-2 9 Measurement Studio for MCC User Manual Adding user interface controls to the project In this section, you will build a user in terface that looks like Form1 in the following screenshot. 1. Select V iew»T oolbox to display the T oolbox. The T oolbox contain ...

  • National Instruments 374318A-01 - page 81

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-30 ni.com 7. Select the W av eformGraph control and drag and drop it onto the form. 8. Right-click the waveform graph and select Edit Plots to display the W av eformPlot Collection Editor dialog box. Y ou use the W av eformPlot Collection Editor to add or re ...

  • National Instruments 374318A-01 - page 82

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-3 1 Measurement Studio for MCC User Manual Note Y ou can also access the W av eformPlot Collect ion Editor dialog box by clicking the wa veform graph smart tag. Y ou access the smar t tag by right-clicking the arro w b utton in the upper right corn er of the co ...

  • National Instruments 374318A-01 - page 83

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-32 ni.com The follo wing screenshot sho ws Form1 with the u ser controls. ...

  • National Instruments 374318A-01 - page 84

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-3 3 Measurement Studio for MCC User Manual 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. 2. Add the following code to generate ...

  • National Instruments 374318A-01 - page 85

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-34 ni.com Customizing your user interface 1. Right-click the legend and select Edit Items to display the LegendItem Collection Editor dial og box. Y ou use the LegendItem Collection Editor to add or remove legend items and to configure legend item properties ...

  • National Instruments 374318A-01 - page 86

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-3 5 Measurement Studio for MCC User Manual 5. Click the gauge smart tag to displa y the Gauge T asks. 6. Select Au t o Fo r m a t to display the Au to Format dialog box. 7. Select Dark and click OK . 8. Right-click the gauge and select Properties to display the ...

  • National Instruments 374318A-01 - page 87

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-36 ni.com 16. After your program builds and runs, click Start . Notice the graph shows the data plot, and the gauge and the numeric edit display the mean of the data. 17. The following screenshot sho ws Form1 with customization. W alkthrough: Creating a Meas ...

  • National Instruments 374318A-01 - page 88

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-3 7 Measurement Studio for MCC User Manual • Customizing the user interface —Using the Collection Editor and Auto Format dialog boxes, you will display the mean value on the gauge and the numeric edit, as well as customize your user interf ace. Before You B ...

  • National Instruments 374318A-01 - page 89

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-38 ni.com 5. Click OK . The Measurement Studio ASP .NET W eb Site W izard launches. 6. Select Analysis and W eb Forms User Interface Controls . Tip If you are working with an existing project, you can access the Measurement Studio ASP .NET W eb Site Wizard d ...

  • National Instruments 374318A-01 - page 90

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-3 9 Measurement Studio for MCC User Manual Adding user interface controls to the project In this section, you will build a Web page that looks like the foll owing screenshot. 1. Select V iew»T oolbox to display the T oolbox. The toolbox contai ns components an ...

  • National Instruments 374318A-01 - page 91

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-40 ni.com 8. Scroll to the T ext property in the Properties window . T ype Start for the button text. 9. Select the Measurem ent Studio tab on the T ool box. 10. Select the WaveformGraph control and drag and drop it in to a table cell. 11. On the wav eform g ...

  • National Instruments 374318A-01 - page 92

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-4 1 Measurement Studio for MCC User Manual 14. On the numeric edit smart tag, type numericedit for the Name of the numeric edit ID. 15. Select the Gauge control and drag and drop it into a table cell . 16. On the gauge smart tag, type gauge for the Name of the ...

  • National Instruments 374318A-01 - page 93

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-42 ni.com Generating, plotting, and analyzing the data 1. Double-click the button contr ol to display t he Default.aspx.cs code, with the cursor inside the click event handler of the b utton control. 2. Add the following code to generate random data, plot th ...

  • National Instruments 374318A-01 - page 94

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-4 3 Measurement Studio for MCC User Manual [C#] // Declare and initialize an instanc e of WhiteNoiseSignal. WhiteNoiseSignal whiteNoise = new Wh iteNoiseSignal(); // Store the generated data in a dou ble array named data. double[] data = whiteNoise.Generate( 10 ...

  • National Instruments 374318A-01 - page 95

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-44 ni.com 3. Select graph, Plots[0] in the Source drop-down list and enter Signal in the Te x t box. Click OK . Now that you hav e specified a le gend item for the plot, changes you make to the plot are reflected on the legend. 4. Right-click the g raph and ...

  • National Instruments 374318A-01 - page 96

    Chapter 4 Getting Started with Measure ment Studio © National Instruments Corporation 4-4 5 Measurement Studio for MCC User Manual 7. Select Dark and click OK . 8. Right-click the gauge and select Properties to display the Properties window . 9. Set the Range property for the gauge with the drop-down Range type editor . T ype -0.2 for the minimum ...

  • National Instruments 374318A-01 - page 97

    Chapter 4 Getting Started with Measur ement Studio Measurement Studio for MCC User Manual 4-46 ni.com The following screenshot sho ws the W eb page with customization. ...

  • National Instruments 374318A-01 - page 98

    © National Instruments Corporation A-1 Measurement Studio for MCC User Manual A Contacting Measurement Computing Corp. You can reach Measurement Computing Corp. through the following ways: Mail Measurement Computing Corp. 16 Commerce Blvd. Middleboro, MA 02346 T elephone 508-946-5100 FAX 508-946-9500 Technical Support techsupport@MeasurementComput ...

  • National Instruments 374318A-01 - page 99

    © National Instruments Corporation G-1 Measurement Studio for MCC User Manual Glossar y A analog I/O Reading or writing dat a in continuously variable physical quantities, such as voltage or current. annotate Adding text, arro ws, or shapes to describe or highlight a po int or region on a graph. API Application Programming Interface. A specificati ...

  • National Instruments 374318A-01 - page 100

    Glossary Measurement Studio for M CC User Manual G-2 ni.com coercion Automatic con version that Measurem ent Studio controls perform to change the numeric representation of a data element. complex graph A control that displays a ComplexDouble data type; the ComplexDouble data type represents a complex number of type Double that is composed of a rea ...

  • National Instruments 374318A-01 - page 101

    Glossary © National Instruments Corporation G-3 Measurement Studio for MCC User Manual distribution Ability to install programs you dev elop with Measurement Studio to others working on dif ferent computers. DLL Dynamic Link Library . A library of functions that link to a pro gram and load at run time rather than bein g compiled into the program. ...

  • National Instruments 374318A-01 - page 102

    Glossary Measurement Studio for M CC User Manual G-4 ni.com G gauge A control used to input or display numerical data. GPIB General Purpose Interf ace Bus. The standard b us used for controlling electronic instruments with a computer . Also called IEEE 488 bus because it is defined b y ANSI/IEEE Standards 488-1978, 488.1-1987, and 488.2-1987. graph ...

  • National Instruments 374318A-01 - page 103

    Glossary © National Instruments Corporation G-5 Measurement Studio for MCC User Manual L LED Light-Emitting Diode. An ind icator th at emits a light when current passes through it. For example, an LED sho ws if your computer or printer is turned on. legend A control that displays symbols and descriptions for a specific set of elements of another o ...

  • National Instruments 374318A-01 - page 104

    Glossary Measurement Studio for M CC User Manual G-6 ni.com P PCI Peripheral Component Interconnect . High-performance expansion bus architecture commonly found in PCs. plot 1. T race (data line) on a graph repres enting the data in one ro w or column of an array . 2. T o display a ne w set of data while deleting any pre vious data on the graph. po ...

  • National Instruments 374318A-01 - page 105

    Glossary © National Instruments Corporation G-7 Measurement Studio for MCC User Manual scatter graph A control that displ ays two-dimensional data on a Windo ws Forms or W eb Forms user interf ace; displays a graph of X and Y data pairs. scope See oscilloscope . serial Standard serial bus on a computer used to co mmunicate with ins truments. Also ...

  • National Instruments 374318A-01 - page 106

    Glossary Measurement Studio for M CC User Manual G-8 ni.com V vector 1D array . VXI VME eXtension for Instrumentation. Instrumentation architecture and bus based on the VME standard. Used in high-end test applicati ons. W wa v eform grap h A control that displa ys tw o-dimensio nal data on a W indows F orms or W eb Forms user interf ace; displays d ...

  • National Instruments 374318A-01 - page 107

    © National Instruments Corporation I-1 Measurement Studio for MCC User Manual Index A Add/Remov e Class Li braries wizard, 3-3 adding or removing Measurement Studio class libraries, 3-3 Analysis .NET class library Array and Numeric Operations (list), 2-5 Curve Fitting (list), 2-5 Filters (list), 2- 3 Linear Algebra (list), 2-4 Measurements (list), ...

  • National Instruments 374318A-01 - page 108

    Index Measurement Studio for M CC User Manual I-2 ni.com I InstaCal, 3-1 installation optional, 1-2 requirements, 1-1 K knob .NET control, 2-16 .NET W eb Forms control, 2-30 L LED array control, 2-21 LED control, 2-1 8, 2-33 legend control, 2-15, 2-29 M MCC-488.2 .NET class library, 2-7 Measurement Studio dev eloping with, 3-1 Menu, 3-1 ov ervie w, ...

  • National Instruments 374318A-01 - page 109

    Index © National Instruments Corporation I-3 Measurement Studio for MCC User Manual U User Interface .NET class library, 2-8, 2-23 AutoRefresh, 2-33 complex graph, 2-13, 2-28 digital wav eform graph, 2-12 , 2-26 gauge, 2-15, 2-29 knob, 2-15, 2-29 LED, 2-18, 2-33 legend, 2-15, 2-29 meter, 2-15, 2-29 numeric edit, 2-17, 2-32 property editor, 2-19 sc ...

Manufacturer National Instruments Category Network Card

Documents that we receive from a manufacturer of a National Instruments 374318A-01 can be divided into several groups. They are, among others:
- National Instruments technical drawings
- 374318A-01 manuals
- National Instruments product data sheets
- information booklets
- or energy labels National Instruments 374318A-01
All of them are important, but the most important information from the point of view of use of the device are in the user manual National Instruments 374318A-01.

A group of documents referred to as user manuals is also divided into more specific types, such as: Installation manuals National Instruments 374318A-01, service manual, brief instructions and user manuals National Instruments 374318A-01. Depending on your needs, you should look for the document you need. In our website you can view the most popular manual of the product National Instruments 374318A-01.

A complete manual for the device National Instruments 374318A-01, how should it look like?
A manual, also referred to as a user manual, or simply "instructions" is a technical document designed to assist in the use National Instruments 374318A-01 by users. Manuals are usually written by a technical writer, but in a language understandable to all users of National Instruments 374318A-01.

A complete National Instruments manual, should contain several basic components. Some of them are less important, such as: cover / title page or copyright page. However, the remaining part should provide us with information that is important from the point of view of the user.

1. Preface and tips on how to use the manual National Instruments 374318A-01 - At the beginning of each manual we should find clues about how to use the guidelines. It should include information about the location of the Contents of the National Instruments 374318A-01, FAQ or common problems, i.e. places that are most often searched by users in each manual
2. Contents - index of all tips concerning the National Instruments 374318A-01, that we can find in the current document
3. Tips how to use the basic functions of the device National Instruments 374318A-01 - which should help us in our first steps of using National Instruments 374318A-01
4. Troubleshooting - systematic sequence of activities that will help us diagnose and subsequently solve the most important problems with National Instruments 374318A-01
5. FAQ - Frequently Asked Questions
6. Contact detailsInformation about where to look for contact to the manufacturer/service of National Instruments 374318A-01 in a specific country, if it was not possible to solve the problem on our own.

Do you have a question concerning National Instruments 374318A-01?

Use the form below

If you did not solve your problem by using a manual National Instruments 374318A-01, ask a question using the form below. If a user had a similar problem with National Instruments 374318A-01 it is likely that he will want to share the way to solve it.

Copy the text from the picture

Comments (0)