0% found this document useful (0 votes)
80 views

Course Labview Basic 1 A

Uploaded by

Amaury Espinosa
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
80 views

Course Labview Basic 1 A

Uploaded by

Amaury Espinosa
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 256
LabVIEW” Basics I: Introduction Course Manual-A NATIONAL ni.com/training INSTRUMENTS LabVIEW™ Basics |: Introduction Course Manual Course Software Version 8.5 ‘September 2007 Edition Part Number 320628R-01 Copyright (© 1993-2007 National Instruments Corporation, Al rghts reserved. Under the copyright laws, this publication may nat be reproduced or transmitted in any form, electronic or mechanical, inluding ‘photocopying, recordin, storing in an information of National Instruments Corporation National Instruments respects the intellectual property of utes, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where software may be used to reproduce sotwareor other materials belonging to tathers, you may use I software only to reproduce materials thal you may repraducein accordance wit the tems of any applicable license or other laal restriction The folowing notices relate to certain components used in USI (Xerces C++, ICU, HDFS, Citadel 5,064 ibrar, and Stingray). For a listing of the conditions and disclaimers regarding these components, refer tothe UstCopyr ights cha Xerees C++. This product includes software developed by the Apache Software Foundation (http://www. apache .org/). Copyright 1999 The Apache Software Foundation. Al ights reserved CU. Copyright 1995-2008 International Business Machines Corporation and others. llrightsreserved HFS. NCSA HOFS (Hierarchical Data Format §) Sofware Library ang Utes Copyright 1998, 1999, 2000, 2001, 2003 by the Boar of Trustes ofthe University o Iiinos. Al rights reserved Citadel 5 In rogards to components that use Citadel 5, the following copyright applies. Copyright © 1994 Hewiet-Packar 164 library. Copyright © 2004-2006, Matthew Wison and Synesis Software. All Rights Reserved. ‘Stingray. This software includes Stingray software developed by te Rogue Wave Software dvision of Quovad, Inc Copyright 1995-2006, Quovads, Inc. All Rights Reserved rival system, or translating, in whole ori part, without the prior written consent Company. Trademarks National Instruments, NI n.com, and LabVIEW are trademarks of National Instruments Corporation. Refer tothe Terms of Use section fon ni .com/ egal for more information about National Instruments trademarks FireWira® i the registred trademark of Apple Computer, nc. ther product and company names mentioned herein are trademarks or trade names of ther respective companies. ‘Members of he National Instruments Alliance Partner Program are business entities independent fr National Instruments and have ‘no agency, partnership, or joint venture relationship with National Instruments, Patents For patents covering National Instruments products, refer tothe appropriate location: Help»Patents in your software the patents. tact fle on your CD, or ni .com/lecal/patents. ‘Worldwide Technical Support and Product Information National instruments Corporate Headquarters 11500 North Mopac Expressaay Austin, Texas 78759-3804 USA Tel: 12.683 0100 Worldwide otices Australia 1800 300 800, Austria 43 662 457990-0, Belgium 32 (0) 2 China 86 21 $080 9800, Czech Republic 420 enmark 45 45 76 26 00, Finland 358 (0) 9725 72511 France 01 57 66 24 24, Germany 49 89 7413130, India 91 80-41 190000, Israel 972 3 6393737, lly 39 02 41309277, Japan 0120-527196, Korea 82.02 3451 3400, Lehason 61 (0) | 3828 28, Malaysia 1800 887310, Mexico O1 800 010 0795, nd 48 22 3390150, Portugal 351 210.311 210, Russa 7 495 783 6851, Singapore 1800 226 S886, Slovenia 386 3.425 42 00, South Aftica 27 0 11 805 8197, Spain 3491 640 0085, Sweden 46 (0) 8 S¥7 895 00, Switzerland 41 $6 2005181, Taiwan 886 02 2377 2222, Thailand 662 278 6777, Turkey 90 212 279 3031, United Kingdom 44 (0) 1638 523835 57 0020, Bravil $5 11 4262-3599, Canada 800.433 488, 423574, Netherlands 31 (0) 348.433 466, New Zealane 0800 553 322, Norway 47 (0) 66 90 76, Po For further support information, refer the Additional Information and Resources appendix. To comment oa National Instruments documentation, refer tothe National Instruments Weh site al ai .com/ info ana ener the info code feectback Contents Student Guide ‘A. About This Manual B. What You Need to Get Started C. Installing the Course Software D. Course Goals E. Course Conventions. Lesson 1 Problem Solving A. Software Development Method B. Scenario C. Design D. Implementation E. Testing F. Maintenance. Exercise 1-1 Software Development Method. G. Course Project Lesson 2 Navigating LabVIEW Virtual Instruments (VIs) Parts of a VI Starting a VI Project Explorer Front Panel Window Block Diagram Window Exercise 2-1 Concept: Exploring a VI G. Searching for Controls, VIs, and Functions Exercise 2-2 Concept: Navigating Palettes H. Selecting a Too! Exercise 2-3 Concept: Selecting a Tool 1. Data Flow. : Exercise 2-4 Concept: Data Flow J. Creating a Simple VI Exercise 2-5 Simple AAP VI mmonw> Lesson 3 Troubleshooting and Debugging Vis A. LabVIEW Help Utilities Exercise 3-1 Concept: Using Help ....... B. Correcting Broken Vis. C. Debugging Techniques (© Maton Istuments Corporation w LabVIEW innodction Course Manual Contens D. Undefined or Unexpected Data. E. Error Checking and Error Handling, Exercise 3-2 Concept: Debuggi Lesson 4 Implementing a VI A. Designing Front Panel Windows B, LabVIEW Data Types C. Documenting Code Exercise 4-1 Determine Warnings VI D. While Loops. Exercise 4-2. Auto Match VI E. For Loops. Exercise 4-3 Concept: While Loops versus For Loops. F, Timing a VI G. Iterative Data Transfer Exercise 44 Average Temperature VI H. Plotting Data... Exercise 4-5 Temperature Multiplot VI. 1. Case Structures Exercise 4-6 Determine Warnings VI J. Formula Nodes. Exercise 4-7 Self-Study: Square Root VI. Exercise 4-8 Self-Study: Determine Warnings VI (Challenge) Exercise 4-9 Self-Study: Determine More Warnings V1 Lesson 5 Relating Data A. Arrays cc Exercise 5-1 Concept: Manipulating Arrays B. Clusters : Exercise 5-2 Concept: Clusters. C. Type Definitions Exercise 5-3 Type Definition Lesson 6 omy Measurement Data . Understanding File /O .. B. Understanding High-Level File 0. Exercise 6-1 Spreadsheet Example VI C. Understanding Low-Level File V/O. Exercise 6-2 Temperature Log VI Exercise 6-3 Self-Study: Read VCard VI... LabVIEW tnroastion Course Manua! " 317 od18 3-21 4-2 4-9 4-16 419 4-26 4-30 437 441 4-44 4-45 4-48 4-52 4-58 4-63 4-69 4-74 4-76 4-80 4-83 5-2 5-1 5-14 5-20 5-26 5-30 e @ @ @ @ @ @ @ @ @ e e @ @ @ o @ 6 @ e e a Lesson 7 Developing Modular Applications A. Understanding Modularity... B. Building the leon and Connector Pane C. Using SubVIs.... Exercise 7-1 Determine Warnings VI. Lesson 8 Acquiring Data A. Using Hardware... B. Communicating with Hardware C. Simulating a DAQ Device .. Exercise 8-1 Concept: MAX. D. Measuring Analog Input Exercise 8-2 Triggered Analog Input VI E. Generating Analog Output F. Using Counters... Exercise 8-3 Count Events VI G. Using Digital LO ...... Exercise 8-4 Optional: Digital Count VI........ Lesson 9 Instrument Control A. Using Instrument Control .. B. Using GPIB. C. Using Serial Port Communication D. Using Other Interfaces E. Sofiware Architecture Exercise 9-1 Concept: GPIB Configuration with MAX. F._ Using the Instrument I/O Assistant. Exercise 9-2 Concept: Instrument /O Assistant G. Using VISA... Exercise 9-3 VISA Write and Read VI H. Using Instrument Drivers. Exercise 9-4 Concept: NI Devsim VI Lesson 10 Common Design Techniques and Patterns A. Using Sequential Programming... B. Using State Programming. C. State Machines...... Exercise 10-1 State Machine VI D. Using Parallelism. (© Maton instruments Corporation v Contents 7-2 7-3 7-9 TA 85 8-10 8-11 8-17 8-19 8-24 8-26 8-27 8-30 831 10-2 10-5 10-5 10-14 10-21 LabVIEW iodetion Course Manual Contes Appendix A Analyzing and Processing Numeric Data A. Choosing the Correct Method for Analysis a : A2 B. Analysis Categories . Ad Exercise A-|_— Concept: Analysis Types, ™ me seeererseere AO Appendix B Measurement Fundamentals ‘A. Using Computer-Based Measurement Systems B-2 B. Understanding Measurement Concepts : B-3 C. Increasing Measurement Quality... sieueaBel2 Exercise B-1 Concepts: Measurement Fundamentals. a eee BLS. Appendix C CAN: Controller Area Network A. History of CAN B. CAN Basics i Exercise C0 Concept: CAN Device Setup C. Channel Configuration Exercise C-1_ Channel Configuration D. CAN APIs : ete E, CAN Programming in LabVIEW (Channel APD) Exercise C-2 Read and Write CAN Channels... Exercise C-3. Synchronize CAN & DAQ. Appendix D Additional Information and Resources Index Course Evaluation Labview troauton Ce

You might also like