background image

Measurement Studio

TM

User Manual

Measurement Studio User Manual

Measurement Studio User Manual

July 2004 Edition

Part Number 323392B-01

Summary of Contents for Measurement Studio

Page 1: ...Measurement Studio TM User Manual Measurement Studio User Manual Measurement Studio User Manual July 2004 Edition Part Number 323392B 01...

Page 2: ...31 30 Greece 30 2 10 42 96 427 India 91 80 51190000 Israel 972 0 3 6393737 Italy 39 02 413091 Japan 81 3 5472 2970 Korea 82 02 3451 3400 Malaysia 603 9131 0918 Mexico 001 800 010 0793 Netherlands 31...

Page 3: ...ublication may not be reproduced or transmitted in any form electronic or mechanical including photocopying recording storing in an information retrieval system or translating in whole or in part with...

Page 4: ...pter 2 Measurement Studio NET Class Libraries Measurement Studio NET Class Libraries Overview 2 1 Analysis 2 2 Standard Analysis 2 2 Professional Analysis 2 2 Enterprise Analysis 2 3 Common 2 3 NI 488...

Page 5: ...b Control 3 12 Numeric Edit Control 3 13 Slide Control 3 14 Utility 3 15 Chapter 4 Developing with Measurement Studio Measurement Studio Menu 4 1 Creating a New Measurement Studio Project 4 3 Creating...

Page 6: ...for Visual Studio 6 0 CD The Measurement Studio User Manual is organized into four chapters Chapter 1 Introduction to Measurement Studio is an overview of Measurement Studio This chapter includes ins...

Page 7: ...notes a note which alerts you to important information bold Bold text denotes items that you must select or click in the software such as menu items and dialog box options italic Italic text denotes v...

Page 8: ...s data acquisition analysis and presentation functionalities Installation Requirements To install Measurement Studio your computer must have the following Microsoft Windows 2000 XP operating system Mi...

Page 9: ...tudio 6 0 CD If you install Measurement Studio 7 1 on a machine that has Measurement Studio 7 0 installed the installer will replace Measurement Studio 7 0 functionality including class libraries The...

Page 10: ...uct Information dialog box carefully review important information about the features you are installing Click Next 7 Review the license agreement and select I accept the License Agreement s Click Next...

Page 11: ...istant Integration1 Data Acquisition Assistant Code Generation1 ActiveX Controls for Visual Basic 6 0 Visual C 6 0 Classes Professional Analysis3 NI Reports C Microsoft Office Interface Word and Excel...

Page 12: ...urement Studio Documentation The help launches in a stand alone help viewer From Visual Studio NET select Help Contents to view the Visual Studio NET table of contents The NI Measurement Studio Help i...

Page 13: ...ort and Professional Services for more information Measurement Studio Web site ni com mstudio Contains Measurement Studio news support downloads and evaluation software NI Developer Zone ni com devzon...

Page 14: ...I Measurement Studio Help for detailed information about these libraries Measurement Studio NET Class Libraries Overview Measurement Studio provides NET class libraries that you can use to develop com...

Page 15: ...urement Studio Standard Edition includes the sawtooth sine square triangle and basic function wave generators Professional Analysis The Professional Analysis class library which ships with Measurement...

Page 16: ...ement Studio Analysis NET Library topic in the NI Measurement Studio Help Common The Measurement Studio Common NET class library is in the NationalInstruments namespace The Common class library provid...

Page 17: ...refer to the Creating a Measurement Studio NI 488 2 or NI VISA Application section of Chapter 4 Developing with Measurement Studio For more information about GPIB visit ni com gpib NI DAQmx The Measu...

Page 18: ...access the functionality available in NI VISA for communicating with message based and register based instruments using the following interfaces GPIB PXI Serial RS 232 and RS 485 TCP IP USB VXI Tip Fo...

Page 19: ...ment Studio user interface controls Tip For more information about easily using the NET interface controls refer to the Using the Measurement Studio Windows Forms NET Controls section in the NI Measur...

Page 20: ...eparate but related data on the same graph Configure a graph to include multiple axes or independent ranges so that plot data fits the graph plot area Draw lines or fills from a plot to an X value Y v...

Page 21: ...ge in the plot area of the graph Copy the graph as a BMP GIF JPEG or PNG image and paste it to the clipboard or a file Tip For more information about using the waveform and scatter graph controls refe...

Page 22: ...rface with them Use the Measurement Studio knob gauge and meter controls as shown in Figure 2 2 to represent a knob gauge and meter on your user interface Figure 2 2 Knob Gauge and Meter Controls With...

Page 23: ...the following operations Configure the scale to be linear or logarithmic and toggle the visibility of the scale Bind the value to a NET data source using NET data binding Connect to the Measurement S...

Page 24: ...perations Use up down buttons for easy incrementing and decrementing Perform range checking Set the range to infinite maximums and minimums Create custom formats or use built in numeric formats includ...

Page 25: ...Figure 2 6 LED Control in Square 3D Style With the switch and LED controls and the classes that interface with the controls you can perform the following operations Receive notification before or afte...

Page 26: ...Measurement Studio Help for detailed information about these libraries Measurement Studio Visual C Class Libraries Overview Measurement Studio provides libraries of MFC based classes that you can use...

Page 27: ...ent Studio ActiveX controls simplify using ActiveX controls in Visual C interfaces and programs The features that simplify this process include overloaded functions the ability to call the control fro...

Page 28: ...ic engineering scaling time and date Rotate pan and zoom interactively Tip For information about easily creating graphs with the 3D graph control library refer to the 3D Graph Visual C Class Library O...

Page 29: ...te dot product and other various matrix methods Scaled and unscaled windowing classes Common statistical functions such as mean median mode and variance Exponential linear and polynomial curve fitting...

Page 30: ...nt objects to a variety of other object types CNiException Extends the MFC CException class and serves as the base class for many Measurement Studio exceptions CNiRegKey Encapsulates the interface to...

Page 31: ...class library Each specific driver provides an interface to a particular device such as the NI DMM modular instrument National Instruments provides Measurement Studio Visual C instrument driver class...

Page 32: ...Studio Enterprise package Tip For more information about using the Measurement Studio Excel Visual C class library to create applications that present data in Microsoft Excel format refer to the Micro...

Page 33: ...Assistant refer to the Creating a Measurement Studio NI 488 2 or NI VISA Application section of Chapter 4 Developing with Measurement Studio For more information about GPIB visit ni com gpib NI DAQmx...

Page 34: ...asses that provide an object oriented interface to the NI VISA driver Use the NI VISA class library to quickly create bus independent and or bus specific instrument control applications The NI VISA cl...

Page 35: ...ean information or initiate an action in a program The CNiButton class provides the Visual C interface to the ActiveX button control Figure 3 2 ActiveX Button Control With the button control and the c...

Page 36: ...tain multiple plots to show separate but related data on the same graph Configure a graph to include multiple Y axes so that plot data fits the graph plot area Use cursors and annotations to identify...

Page 37: ...e classes that interface with the control you can perform the following operations Use different display styles dials gauges and meters Use multiple control pointers each representing one scalar value...

Page 38: ...to the ActiveX numeric edit control Figure 3 5 ActiveX Numeric Edit Control with Scientific Formatting With the numeric edit control and the classes that interface with the control you can perform the...

Page 39: ...k and thermometer Use the CNiAxis class to interface to a single axis of a slide control This ability allows you to modify the appearance and behavior of the axis Use multiple control pointers each on...

Page 40: ...CNiSound encapsulates an interface for generating synchronous and asynchronous tones at specific frequencies CNiSystem CNiSystem provides the following functionality Getting and setting system prefer...

Page 41: ...e creation and manipulation CNiTimer CNiTimer objects use the Windows multimedia timer to generate high resolution asynchronous tick events Respond to tick events when you want to perform an action at...

Page 42: ...Creating a Measurement Studio NI 488 2 or NI VISA Application Adding or Removing Measurement Studio Class Libraries Selecting a Measurement Studio Parameter Value Calling Instrument Drivers from NET L...

Page 43: ...loper Exchange Use NI Developer Exchange at ni com devzone to participate in discussion forums and exchange code with measurement and automation developers around the world Instrument Driver Network U...

Page 44: ...ources included in the Measurement Studio Menu refer to the Measurement Studio Menu topic in the NI Measurement Studio Help Creating a New Measurement Studio Project Measurement Studio includes class...

Page 45: ...ng Measurement Studio Projects section in the NI Measurement Studio Help Creating a Measurement Studio DAQ Application To create a Measurement Studio DAQ application use the NI DAQ Assistant The DAQ A...

Page 46: ...k class Generating a Visual Basic NET Visual C or Visual C NET class that includes the functionality you configure in the user interface Generating code that uses a DAQ task class Using a DAQ task cla...

Page 47: ...x Task Class in a Project topic of the NI Measurement Studio Help Creating a Measurement Studio NI 488 2 or NI VISA Application To create a Measurement Studio NI 488 2 or NI VISA application use the I...

Page 48: ...operations Creating an instrumentation task class Configuring an instrumentation task class to communicate with an instrument and parse data you receive from the instrument Tip For more information a...

Page 49: ...e to select the Measurement Studio class libraries you want to add to or remove from a project When you exit the wizard the wizard adds or removes the appropriate references to or from the project thu...

Page 50: ...and various Measurement Studio class libraries such as NI DAQmx NI 488 2 and NI VISA With the Parameter Assistant you can select the correct parameter value for a device or resource as shown in Figure...

Page 51: ...ard as shown in Figure 4 6 generates a NET wrapper class for calling into IVI VXIplug play and legacy instrument drivers based on the instrument driver function panel header file and an optional sub f...

Page 52: ...eloper Exchange at ni com exchange National Instruments Application Engineers make sure every question receives an answer Training and Certification Visit ni com training for self paced training eLear...

Page 53: ...ic is an example of an ActiveX control container analog I O Reading or writing data in continuously variable physical quantities such as voltage or current annotate Adding text arrows or shapes to des...

Page 54: ...n Traditional NI DAQ and earlier versions but is integral to every measurement you take in NI DAQmx In Traditional NI DAQ you configure virtual channels in MAX In NI DAQmx you can configure virtual ch...

Page 55: ...coordinates that a cursor crosshair points to on a graph D DAQ Data acquisition Process of acquiring data typically from A D or digital input plug in boards DAQ Assistant A graphical interface for co...

Page 56: ...o applications using DataSocket clients Data is passed through a DataSocket Server between the applications E Ethernet Standard connection type for networks where computers are connected by coaxial or...

Page 57: ...analysis software that you can use to acquire images from National Instruments image acquisition IMAQ boards display them in your program perform interactive viewer operations and analyze the images t...

Page 58: ...tion org K knob A control used to input or display numerical data L LabVIEW Laboratory Virtual Instrument Engineering Workbench Graphical development environment used for developing test and measureme...

Page 59: ...anaging windows menus and dialog boxes performing basic input output storing collections of data objects and more N NI 488 2 Driver level software to control and communicate with National Instruments...

Page 60: ...bus architecture commonly found in PCs PID Proportional Integral Derivative A three term control mechanism combining proportional integral and derivative control You might use a PID algorithm to contr...

Page 61: ...n represent The number is a single value as opposed to an array scale Part of graph chart and some numeric controls and indicators that contains a series of marks or points at known intervals to denot...

Page 62: ...olling and executing your automated prototype validation or manufacturing test systems thermometer A control used to input or display numerical data U UI User Interface V vector 1D array virtual instr...

Page 63: ...6 IviScope 3 6 IviSwitch 3 6 Common NET class library 2 3 Visual C class library 3 5 conventions used in the manual viii creating Measurement Studio DAQ application 4 4 Measurement Studio NI 488 2 or...

Page 64: ...el Interface Visual C class library 3 7 Microsoft Word Interface Visual C class library 3 7 N National Instruments support and services A 1 NET class libraries Analysis 2 2 Common 2 3 NI 488 2 2 4 NI...

Page 65: ...support A 1 thermometer control 2 9 training and certification NI resources A 1 troubleshooting NI resources A 1 U User Interface NET class library 2 5 gauge 2 9 knob 2 9 LED 2 12 legend 2 8 meter 2...

Page 66: ...rement Studio User Manual I 4 ni com NI DAQmx 3 8 NI Reports 3 9 NI VISA 3 9 overview 3 1 User Interface 3 10 Utility 3 15 W waveform graph control 2 6 Web resources A 1 Windows Forms user interface c...

Reviews: