Getting Started With LabVIEW

2y ago
32 Views
3 Downloads
917.96 KB
97 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Isobel Thacker
Transcription

LabVIEWTMGetting Started with LabVIEWGetting Started with LabVIEWJune 2010373427G-01

SupportWorldwide Technical Support and Product Informationni.comNational Instruments Corporate Headquarters11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100Worldwide OfficesAustralia 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 41190000,Israel 972 3 6393737, Italy 39 02 41309277, Japan 0120-527196, Korea 82 02 3451 3400,Lebanon 961 (0) 1 33 28 28, Malaysia 1800 887710, Mexico 01 800 010 0793, Netherlands 31 (0) 348 433 466,New Zealand 0800 553 322, Norway 47 (0) 66 90 76 60, Poland 48 22 328 90 10, Portugal 351 210 311 210,Russia 7 495 783 6851, Singapore 1800 226 5886, Slovenia 386 3 425 42 00, South Africa 27 0 11 805 8197,Spain 34 91 640 0085, Sweden 46 (0) 8 587 895 00, Switzerland 41 56 2005151, Taiwan 886 02 2377 2222,Thailand 662 278 6777, Turkey 90 212 279 3031, United Kingdom 44 (0) 1635 523545For further support information, refer to the Technical Support and Professional Services appendix. To commenton National Instruments documentation, refer to the National Instruments Web site at ni.com/info and enter theInfo Code feedback. 2003–2010 National Instruments Corporation. All rights reserved.

Important InformationWarrantyThe media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defectsin materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. NationalInstruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receivesnotice of such defects during the warranty period. National Instruments does not warrant that the operation of the software shall beuninterrupted or error free.A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the package beforeany equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which arecovered by warranty.National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for technicalaccuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to make changes to subsequenteditions of this document without prior notice to holders of this edition. The reader should consult National Instruments if errors are suspected.In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OFMERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OFNATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER. NATIONAL INSTRUMENTS WILL NOT BE LIABLE FORDAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITYTHEREOF. This limitation of the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, includingnegligence. Any action against National Instruments must be brought within one year after the cause of action accrues. National Instrumentsshall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty provided herein does not coverdamages, defects, malfunctions, or service failures caused by owner’s failure to follow the National Instruments installation, operation, ormaintenance instructions; owner’s modification of the product; owner’s abuse, misuse, or negligent acts; and power failure or surges, fire,flood, accident, actions of third parties, or other events outside reasonable control.CopyrightUnder the copyright laws, this publication 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, without the prior written consent of NationalInstruments Corporation.National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyrightand other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you mayuse NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legalrestriction.For copyright notices, conditions, and disclaimers, including information regarding certain third-party components used in LabVIEW, refer tothe Copyright topic of the LabVIEW Help.TrademarksCVI, LabVIEW, National Instruments, NI, ni.com, the National Instruments corporate logo, and the Eagle logo are trademarks of NationalInstruments Corporation. Refer to the Trademark Information at ni.com/trademarks for other National Instruments trademarks.The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation inthe United States and other countries. Other product and company names mentioned herein are trademarks or trade names of their respectivecompanies.Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have noagency, partnership, or joint-venture relationship with National Instruments.PatentsFor patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your software,the patents.txt file on your media, or the National Instruments Patent Notice at ni.com/patents.WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OFRELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS INANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANTINJURY TO A HUMAN.(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BEIMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY,COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERSAND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION, INSTALLATION ERRORS, SOFTWARE ANDHARDWARE COMPATIBILITY PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROLDEVICES, TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES ORMISUSES, OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE AREHEREAFTER COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULDCREATE A RISK OF HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULDNOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE. TO AVOIDDAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TOPROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS.BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTINGPLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN

COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONALINSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATINGTHE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS AREINCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN,PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.

ContentsAbout This ManualConventions .ixRelated Documentation.xChapter 1Getting Started with LabVIEW Virtual InstrumentsBuilding a Virtual Instrument .1-2Launching LabVIEW .1-3Opening a New VI from a Template .1-4Adding a Control to the Front Panel.1-6Changing a Signal Type .1-8Wiring Objects on the Block Diagram .1-10Running a VI .1-11Modifying a Signal .1-11Displaying Two Signals on a Graph.1-15Customizing a Knob Control.1-16Customizing a Waveform Graph.1-17Summary .1-18New Dialog Box and Template VIs .1-18Front Panel.1-19Block Diagram.1-19Front Panel and Block Diagram Tools .1-19Running and Stopping a VI .1-20Express VIs.1-20LabVIEW Documentation Resources .1-20Property Dialog Boxes .1-21Shortcuts .1-21Chapter 2Customizing a VIBuilding a VI from a Blank VI .2-1Opening a Blank VI.2-2Adding an Express VI That Simulates a Signal .2-2Searching the Help and Modifying a Signal.2-3Customizing a User Interface from the Block Diagram.2-5Configuring a VI to Run Continuously until the User Stops It .2-6Using the Error List Window .2-8Controlling the Speed of Execution .2-9 National Instruments CorporationvGetting Started with LabVIEW

ContentsUsing a Table to Display Data . 2-9Searching for Examples . 2-11Summary. 2-12Using the LabVIEW Help Resources . 2-12Customizing the Block Diagram Code . 2-13Creating Controls and Indicators . 2-13Controlling When a VI Stops Running. 2-14Errors and Broken Wires . 2-14Displaying Data in a Table . 2-14Using the NI Example Finder . 2-14Shortcuts. 2-15Chapter 3Analyzing and Saving a SignalBuilding an Analysis VI . 3-2Modifying a VI Created from a Template . 3-2Adding a Signal. 3-4Adding Two Signals. 3-5Filtering a Signal . 3-7Modifying the Appearance of Graphs. 3-8Analyzing the Amplitude of a Signal. 3-9Controlling the Speed of Execution . 3-9Adding a Warning Light . 3-10Setting a Warning Level Limit. 3-11Warning the User . 3-12Configuring a VI to Save Data to a File. 3-13Saving Data to a File . 3-14Adding a Button That Stores Data When Clicked . 3-14Saving Data When Prompted by a User. 3-15Viewing Saved Data. 3-16Summary. 3-17Controls and Indicators . 3-17Filtering Data . 3-17Saving Data . 3-17Chapter 4Hardware: Acquiring Data and Communicating with Instruments(Windows)Hardware and Software Requirements. 4-1Acquiring a Signal in NI-DAQmx . 4-2Creating an NI-DAQmx Task . 4-2Graphing Data from a DAQ Device . 4-5Getting Started with LabVIEWvini.com

ContentsEditing an NI-DAQmx Task .4-6Visually Comparing Two Voltage Readings.4-7Communicating with an Instrument: Using Instrument Drivers and theInstrument I/O Assistant .4-7Getting Started with the Instrument Driver Finder.4-8Finding and Installing Instrument Drivers .4-8Using Instrument Drivers .4-9Selecting an Instrument Using the Instrument I/O Assistant .4-10Acquiring and Parsing Information for an Instrument .4-11Wiring a Command to an Instrument .4-12Summary .4-12DAQ Assistant Express VI.4-12Tasks in NI-DAQmx .4-13Instrument Drivers.4-13Instrument I/O Assistant Express VI.4-14Chapter 5Using Other LabVIEW FeaturesAll Controls and Indicators.5-1All VIs and Functions .5-2VIs .5-2Functions .5-3Data Types .5-3When to Use Other LabVIEW Features .5-4Appendix ATechnical Support and Professional ServicesGlossaryIndex National Instruments CorporationviiGetting Started with LabVIEW

About This ManualUse this manual as a tutorial to familiarize yourself with the LabVIEWgraphical programming environment and the basic LabVIEW features youuse to build data acquisition and instrument control applications.This manual contains exercises that you can use to learn how to developbasic applications in LabVIEW. These exercises take a short amount oftime to complete and help you get started with LabVIEW.The end of each chapter includes a summary of the main concepts taught inthat chapter. Use these summaries to review what you learned.ConventionsThe following conventions appear in this manual:»The » symbol leads you through nested menu items and dialog box optionsto a final action. The sequence File»Page Setup»Options directs you topull down the File menu, select the Page Setup item, and select Optionsfrom the last dialog box.This icon denotes a tip, which alerts you to advisory information.This icon denotes a note, which alerts you to important information.boldBold text denotes items that you must select or click in the software, suchas menu items and dialog box options. Bold text also denotes parameternames, controls and indicators on the front panel, dialog boxes, sections ofdialog boxes, menu names, and palette names.italicItalic text denotes variables, emphasis, a cross-reference, or an introductionto a key concept. Italic text also denotes text that is a placeholder for a wordor value that you must supply.monospaceText in this font denotes text or characters that you should enter from thekeyboard, sections of code, programming examples, and syntax examples.This font is also used for the proper names of disk drives, paths, directories,programs, subprograms, subroutines, device names, operations, variables,filenames, and extensions. National Instruments CorporationixGetting Start

TM Getting Started with LabVIEW Getting Started with LabVIEW June 2010 373427G-01. 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 . The mark LabWindows

Related Documents:

Certified LabVIEW Architect Exam LabVIEW Core 1 LabVIEW Core 3 LabVIEW Core 2 Managing Software Engineering in LabVIEW Advanced Architectures in LabVIEW LabVIEW Connectivity Object-Oriented Design and Programming in LabVIEW LabVIEW Performance LabVIEW Real-Time 1

examples. So launch LabVIEW and explore the LabVIEW environment as you read this section. 1.3.1 Starting LabVIEW . If your version of LabVIEW was installed using the default installation procedure, launch LabVIEW by selecting All Programs National Instruments LabVIEW 2013 (or LabVIEW 2014) LabVIEW 2013 (or LabVIEW 2014) from the Start menu .

in LabVIEW Object-Oriented Design & Programming in LabVIEW LabVIEW Learning Path LabVIEW Core 1 LabVIEW Getting Started LabVIEW LabVIEW Core 3 Core 2. Student Guide x ni.com C.What You Need to Get Started Befor

Labview Exercises for Labview 7.0 Installation of Labview: 1. Install the Labview 7.0 software and drivers onto your computer. These files can be found by mapping a network drive to \\poohbah\labview, and by running the ‗autorun‘ file in the ‗Labview 7‘ folder. The serial num

Sound and Vibration Measurement Suite Sound and Vibration Toolkit LabVIEW Internet Toolkit LabVIEW Advanced Signal Processing Toolkit . LabVIEW Report Generation Toolkit for Microsoft Office LabVIEW Database Connectivity Toolkit LabVIEW DataFinder Toolkit LabVIEW S

of the LabVIEW Arduino interface. What this book covers Chapter 1, Welcome to LabVIEW and Arduino, introduces you to the Arduino platform and the LabVIEW software. Chapter 2, Getting Started with the LabVIEW Interface for Arduino, shows you how to install and use the LabVIEW interface for Arduino via the LINX module.

Actor-Oriented Design in LabVIEW LabVIEW NXG Options LabVIEW NXG Core 1 LabVIEW NXG Core 2 Transitioning to LabVIEW NXG Proficiency Events LabVIEW Developer Days CLD Summit . This learning path is for users developing embedded control and monitoring systems to design smart machines or industrial equipment. It presents courses, exams, and .

Density (PSD), displaying the level of stress and LabVIEW Interface for Arduino (LIFA). Fig. 6. The overall LabVIEW programming for the study B. Graphical User Interface The graphical user interface (GUI) is designed in LabVIEW to help user to communicate with the LabVIEW and display the results. Fig. 7 describes the overall LabVIEW GUI of the