Résumé du contenu de la page N° 1
TM
Measurement Studio
User Manual
Subtitle
Measurement Studio User Manual
April 2008
373392C-01
Résumé du contenu de la page N° 2
Support Worldwide Technical Support and Product Information ni.com National Instruments Corporate Headquarters 11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100 Worldwide Offices Australia 1800 300 800, Austria 43 662 457990-0, Belgium 32 (0) 2 757 0020, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 5050 9800, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 358 (0) 9 725 72511, France 01 57 66 24 24, Germany 49 89 7413130, India 91 80 411900
Résumé du contenu de la page N° 3
Important Information Warranty The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives notice of such defects during the warranty per
Résumé du contenu de la page N° 4
Contents About This Manual How To Use This Manual..............................................................................................ix Conventions ...................................................................................................................x Chapter 1 Introduction to Measurement Studio Installation Requirements ..............................................................................................1-2 Driver Support..........................................
Résumé du contenu de la page N° 5
Contents Numeric Controls............................................................................................ 2-27 Numeric Edit Control...................................................................................... 2-29 Switch and LED Controls ............................................................................... 2-30 Property Editor Control................................................................................... 2-32 Windows Forms Array Controls ...............
Résumé du contenu de la page N° 6
Contents Additional Operations .......................................................................3-21 Knob Control...................................................................................................3-21 Numeric Edit Control ......................................................................................3-22 Slide Control....................................................................................................3-23 Utility .......................................
Résumé du contenu de la page N° 7
About This Manual The Measurement Studio User Manual introduces the concepts associated with the Measurement Studio class libraries and development tools. This manual assumes that you have a general working knowledge of Microsoft Visual Studio and the .NET Framework for .NET application development or MFC for unmanaged C++ application development. How To Use This Manual Measurement Studio 8.5 includes two Visual Studio support CDs—one with support for Visual Studio .NET 2003, Visual Studio
Résumé du contenu de la page N° 8
About This Manual Use this manual as a starting point to learn about Measurement Studio. Refer to the NI Measurement Studio Help within the Visual Studio environment for function reference and detailed information about the Measurement Studio class libraries, wizards, assistants, and other features. Conventions The following conventions appear in this manual: <> Text enclosed in angle brackets represents directory names and parts of paths that may vary on different computers, such as
Résumé du contenu de la page N° 9
1 Introduction to Measurement Studio Measurement Studio is an integrated suite of tools and class libraries that are designed for developers using Microsoft Visual Basic .NET, Visual C#, ASP.NET, and Visual C++ to develop measurement and automation applications. Measurement Studio dramatically reduces application development time through object-oriented measurement hardware interfaces, advanced analysis libraries, scientific user interface controls for Windows and Web applications, measur
Résumé du contenu de la page N° 10
Chapter 1 Introduction to Measurement Studio This manual documents Measurement Studio for Visual Studio 2005 and Visual Studio 2008. For help with Visual Studio 6.0 support, refer to the Measurement Studio Support for Visual Studio 6.0 Readme located on the Measurement Studio for Visual Studio 6.0 CD. For help with Visual Studio .NET 2003 support, refer to the Measurement Studio Support for Visual Studio .NET 2003 Readme located on the CD for Measurement Studio for Visual Studio .NET 2003.
Résumé du contenu de la page N° 11
Chapter 1 Introduction to Measurement Studio � Microsoft-compatible mouse � Microsoft Internet Explorer 6.0 or later Optional Installation—In order for links from Measurement Studio help topics to .NET Framework help topics to work, you must install the Microsoft .NET Framework SDK 2.0 or Microsoft .NET Framework SDK 3.5. Driver Support To use .NET class libraries that interface to National Instruments device drivers, NI-DAQmx, NI-VISA and NI-488.2, and the MAX (Measurement & Automation Exp
Résumé du contenu de la page N° 12
Chapter 1 Introduction to Measurement Studio Note There are separate installers for Measurement Studio support for Visual Studio 2005 and Measurement Studio support for Visual Studio 2008. Repeat the installation instructions to install support for both. When installing support for more than one version of Visual Studio, you can reduce installation time by running the Device Drivers CD installer only once. To do this, ensure that the Device Drivers CD feature is enabled only for the last Me
Résumé du contenu de la page N° 13
Chapter 1 Introduction to Measurement Studio To install support for NI-DAQmx: 1. In the NI Measurement Studio 8.5 installer, enable the VS2008 Driver Support».NET Framework 3.5 Languages Support for NI-DAQmx feature. 2. In the NI Device Drivers installer, enable the Data Acquisition» NI-DAQmx feature. To install support for NI-VISA: 1. In the NI Measurement Studio 8.5 installer, enable the VS2008 Driver Support».NET Framework 3.5 Languages Support for NI-VISA feature. If you want to use th
Résumé du contenu de la page N° 14
Chapter 1 Introduction to Measurement Studio Installing the Current Version of Measurement Studio over Previous Versions of Measurement Studio Note You can have only one version of Measurement Studio installed on a system for each version of Visual Studio or the .NET Framework installed on the system. For example, you can have Measurement Studio 8.1.2 for Visual Studio 2005 installed on the same system as Measurement Studio 8.5 for Visual Studio 2008, but you cannot have Measurement Studio
Résumé du contenu de la page N° 15
Chapter 1 Introduction to Measurement Studio Table 1-1. Measurement Studio Package Comparison Chart for Visual C# and Visual Basic .NET Feature Standard Edition Professional Edition Enterprise Edition Project Wizards ✔ ✔ ✔ Windows Forms User ✔ ✔ ✔ Interface Controls Standard Analysis ✔ ✔ ✔ 1 Libraries NI-488.2 Class ✔ ✔ ✔ 2 Libraries NI-VISA Class ✔ ✔ ✔ 2 Libraries NI-DAQmx Class ✔ ✔ ✔ 2 Libraries .NET Instrument ✔ ✔ ✔ Driver Wizard User Interface ✔ ✔ ✔ DataSocket Binding Web Forms User ✔ ✔ Int
Résumé du contenu de la page N° 16
Chapter 1 Introduction to Measurement Studio Table 1-1. Measurement Studio Package Comparison Chart for Visual C# and Visual Basic .NET (Continued) Feature Standard Edition Professional Edition Enterprise Edition DataSocket Server ✔ ✔ DataSocket Library ✔ ✔ Parameter Assistant ✔ ✔ Instrument I/O ✔ ✔ 2 Assistant 2 DAQ Assistant ✔ ✔ Enterprise Analysis ✔ 4 Libraries NI TestStand ✔ Integration ™ ™ LabWindows /CVI ✔ Full Development System (FDS) 1 Refer to the Standard Analysis section of Chapter
Résumé du contenu de la page N° 17
Chapter 1 Introduction to Measurement Studio Learning Measurement Studio As you work with Measurement Studio, you might need to consult additional resources. For detailed Measurement Studio help, including function reference and in-depth documentation on developing with Measurement Studio, refer to the NI Measurement Studio Help within the Visual Studio environment. The NI Measurement Studio Help is fully integrated with the Visual Studio help. You must have Visual Studio installed to view
Résumé du contenu de la page N° 18
Chapter 1 Introduction to Measurement Studio For more information on example locations, refer to Where To Find Examples. � NI Technical Support—Refer to Appendix A, Technical Support and Professional Services, for more information. � Measurement Studio Web site, ni.com/mstudio—Contains Measurement Studio news, support, downloads, white papers, product tutorials, and evaluation software. � NI Developer Zone, zone.ni.com—Provides access to online example programs, tutorials, technical news, a
Résumé du contenu de la page N° 19
2 Measurement Studio .NET Class Libraries This chapter provides overview information about the .NET class libraries included with Measurement Studio support for Visual Studio 2005 and Visual Studio 2008. Refer to the Using the Measurement Studio .NET Class Libraries section of the NI Measurement Studio Help for detailed information about these libraries. Refer to Chapter 5, Getting Started with Measurement Studio, for step-by-step instructions on developing applications with these librari
Résumé du contenu de la page N° 20
Chapter 2 Measurement Studio .NET Class Libraries Analysis The Measurement Studio Analysis .NET class library is in the NationalInstruments.Analysis namespace. The Analysis class library includes a set of classes that provides digital signal processing, signal filtering, signal generation, peak detection, and other general mathematical functionality. Use this library to analyze acquired data or to generate data. Additionally, the documentation for the Analysis class library includes analys