National Instruments 374318A-01 Bedienungsanleitung

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

Zur Seite of

Richtige Gebrauchsanleitung

Die Vorschriften verpflichten den Verkäufer zur Übertragung der Gebrauchsanleitung National Instruments 374318A-01 an den Erwerber, zusammen mit der Ware. Eine fehlende Anleitung oder falsche Informationen, die dem Verbraucher übertragen werden, bilden eine Grundlage für eine Reklamation aufgrund Unstimmigkeit des Geräts mit dem Vertrag. Rechtsmäßig lässt man das Anfügen einer Gebrauchsanleitung in anderer Form als Papierform zu, was letztens sehr oft genutzt wird, indem man eine grafische oder elektronische Anleitung von National Instruments 374318A-01, sowie Anleitungsvideos für Nutzer beifügt. Die Bedingung ist, dass ihre Form leserlich und verständlich ist.

Was ist eine Gebrauchsanleitung?

Das Wort kommt vom lateinischen „instructio”, d.h. ordnen. Demnach kann man in der Anleitung National Instruments 374318A-01 die Beschreibung der Etappen der Vorgehensweisen finden. Das Ziel der Anleitung ist die Belehrung, Vereinfachung des Starts, der Nutzung des Geräts oder auch der Ausführung bestimmter Tätigkeiten. Die Anleitung ist eine Sammlung von Informationen über ein Gegenstand/eine Dienstleistung, ein Hinweis.

Leider widmen nicht viele Nutzer ihre Zeit der Gebrauchsanleitung National Instruments 374318A-01. Eine gute Gebrauchsanleitung erlaubt nicht nur eine Reihe zusätzlicher Funktionen des gekauften Geräts kennenzulernen, sondern hilft dabei viele Fehler zu vermeiden.

Was sollte also eine ideale Gebrauchsanleitung beinhalten?

Die Gebrauchsanleitung National Instruments 374318A-01 sollte vor allem folgendes enthalten:
- Informationen über technische Daten des Geräts National Instruments 374318A-01
- Den Namen des Produzenten und das Produktionsjahr des Geräts National Instruments 374318A-01
- Grundsätze der Bedienung, Regulierung und Wartung des Geräts National Instruments 374318A-01
- Sicherheitszeichen und Zertifikate, die die Übereinstimmung mit entsprechenden Normen bestätigen

Warum lesen wir keine Gebrauchsanleitungen?

Der Grund dafür ist die fehlende Zeit und die Sicherheit, was die bestimmten Funktionen der gekauften Geräte angeht. Leider ist das Anschließen und Starten von National Instruments 374318A-01 zu wenig. Eine Anleitung beinhaltet eine Reihe von Hinweisen bezüglich bestimmter Funktionen, Sicherheitsgrundsätze, Wartungsarten (sogar das, welche Mittel man benutzen sollte), eventueller Fehler von National Instruments 374318A-01 und Lösungsarten für Probleme, die während der Nutzung auftreten könnten. Immerhin kann man in der Gebrauchsanleitung die Kontaktnummer zum Service National Instruments finden, wenn die vorgeschlagenen Lösungen nicht wirksam sind. Aktuell erfreuen sich Anleitungen in Form von interessanten Animationen oder Videoanleitungen an Popularität, die den Nutzer besser ansprechen als eine Broschüre. Diese Art von Anleitung gibt garantiert, dass der Nutzer sich das ganze Video anschaut, ohne die spezifizierten und komplizierten technischen Beschreibungen von National Instruments 374318A-01 zu überspringen, wie es bei der Papierform passiert.

Warum sollte man Gebrauchsanleitungen lesen?

In der Gebrauchsanleitung finden wir vor allem die Antwort über den Bau sowie die Möglichkeiten des Geräts National Instruments 374318A-01, über die Nutzung bestimmter Accessoires und eine Reihe von Informationen, die erlauben, jegliche Funktionen und Bequemlichkeiten zu nutzen.

Nach dem gelungenen Kauf des Geräts, sollte man einige Zeit für das Kennenlernen jedes Teils der Anleitung von National Instruments 374318A-01 widmen. Aktuell sind sie genau vorbereitet oder übersetzt, damit sie nicht nur verständlich für die Nutzer sind, aber auch ihre grundliegende Hilfs-Informations-Funktion erfüllen.

Inhaltsverzeichnis der Gebrauchsanleitungen

  • Seite 1

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

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 5

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

  • Seite 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 .................. ........... ....[...]

  • Seite 7

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

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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?[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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 .[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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.[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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 [...]

  • Seite 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.[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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. [...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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[...]

  • Seite 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 [...]

  • Seite 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[...]

  • Seite 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),[...]

  • Seite 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,[...]

  • Seite 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[...]