没有合适的资源?快使用搜索试试~ 我知道了~
首页labview basic 1
labview basic 1
需积分: 9 261 浏览量
更新于2023-05-30
评论 1
收藏 2.95MB PDF 举报
外国的基础labview语法,经典中的经典。全英文版有助于了解labview原理!
资源详情
资源评论
资源推荐

LabVIEW
TM
Basics I
Development Course Manual
Course Software Version 8.0
October 2005 Edition
Part Number 320628N-01
LabVIEW Introduction Course Manual
Copyright
© 1993–2005 National Instruments Corporation. All rights reserved.
Under 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 National Instruments Corporation.
In regards to components used in USI (Xerces C++, ICU, and HDF5), the following copyrights apply. For a listing of the conditions and
disclaimers, refer to the USICopyrights.chm.
This product includes software developed by the Apache Software Foundation (http:/www.apache.org/).
Copyright
© 1999 The Apache Software Foundation. All rights reserved.
Copyright © 1995–2003 International Business Machines Corporation and others. All rights reserved.
NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities
Copyright 1998, 1999, 2000, 2001, 2003 by the Board of Trustees of the University of Illinois. All rights reserved.
Trademarks
National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section
on ni.com/legal for more information about National Instruments trademarks.
Other product and company names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have
no agency, partnership, or joint-venture relationship with National Instruments.
Patents
For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software,
the patents.txt file on your CD, or ni.com/legal/patents.

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 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, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11,
France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91 80 51190000, Israel 972 0 3 6393737, Italy 39 02 413091,
Japan 81 3 5472 2970, 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 3390150,
Portugal 351 210 311 210, Russia 7 095 783 68 51, Singapore 1800 226 5886, Slovenia 386 3 425 4200,
South Africa 27 0 11 805 8197, Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51,
Taiwan 886 02 2377 2222, Thailand 662 278 6777, United Kingdom 44 0 1635 523545
For further support information, refer to the Additional Information and Resources appendix. To comment on National Instruments
documentation, refer to the National Instruments Web site at
ni.com/info and enter the info code feedback.

© National Instruments Corporation iii LabVIEW Introduction Course Manual
Contents
Student Guide
A. About This Manual ...............................................................................................viii
B. What You Need to Get Started .............................................................................viii
C. Installing the Course Software..............................................................................ix
D. Course Goals.........................................................................................................x
E. Course Conventions..............................................................................................x
Lesson 1
Problem Solving
A. Software Development Method ............................................................................1-2
B. Scenario ................................................................................................................1-2
C. Design ...................................................................................................................1-2
D. Implementation .....................................................................................................1-7
E. Testing ..................................................................................................................1-8
F. Maintenance..........................................................................................................1-8
Exercise 1-1 Software Development Method........................................................1-9
Exercise 1-2 Project: State Transition Diagram ....................................................1-11
G. Project ...................................................................................................................1-14
Lesson 2
Navigating LabVIEW
A. Virtual Instruments (VIs)......................................................................................2-2
B. Parts of a VI ..........................................................................................................2-2
C. Starting a VI..........................................................................................................2-4
D. Project Explorer ....................................................................................................2-8
E. Front Panel............................................................................................................2-12
F. Block Diagram......................................................................................................2-18
Exercise 2-1 Concept: Exploring a VI...................................................................2-25
G. Searching for Controls, VIs, and Functions..........................................................2-26
Exercise 2-2 Concept: Navigating Palettes ...........................................................2-28
H. Selecting a Tool ....................................................................................................2-29
Exercise 2-3 Concept: Selecting a Tool ................................................................2-35
I. Dataflow................................................................................................................2-39
Exercise 2-4 Concept: Dataflow............................................................................2-41
J. Building a Simple VI ............................................................................................2-42
Exercise 2-5 Simple AAP VI.................................................................................2-46
K. LabVIEW Help Utilities .......................................................................................2-57
Exercise 2-6 Concept: Using Help ........................................................................2-61

Contents
LabVIEW Introduction Course Manual iv ni.com
Lesson 3
Implementing a VI
A. Front Panel Design................................................................................................3-2
Exercise 3-1 Project: Weather Station UI VI ........................................................3-9
B. Block Diagram Terminals.....................................................................................3-14
C. Documenting Code ...............................................................................................3-22
Exercise 3-2 Project: Determine Warnings VI ......................................................3-25
D. While Loops..........................................................................................................3-32
Exercise 3-3 Auto Match VI..................................................................................3-35
E. For Loops..............................................................................................................3-41
Exercise 3-4 Concept: While Loops versus For Loops .........................................3-44
F. Timing a VI...........................................................................................................3-47
G. Iterative Data Transfer ..........................................................................................3-48
Exercise 3-5 Average Temperature VI..................................................................3-51
H. Plotting Data .........................................................................................................3-55
Exercise 3-6 Temperature Multiplot VI ................................................................3-61
I. Case Structures .....................................................................................................3-66
Exercise 3-7 Project: Determine Warnings VI ......................................................3-71
J. Formula Nodes......................................................................................................3-78
Exercise 3-8 Optional: Square Root VI.................................................................3-80
Exercise 3-9 Optional: Determine Warnings Challenge VI .................................3-84
Exercise 3-10 Optional: Determine More Warnings VI..........................................3-87
Lesson 4
Relating Data
A. Arrays....................................................................................................................4-2
Exercise 4-1 Concept: Manipulating Arrays .........................................................4-8
B. Clusters .................................................................................................................4-15
Exercise 4-2 Concept: Clusters..............................................................................4-21
Exercise 4-3 Project: Weather Station UI VI ........................................................4-26
C. Type Definitions ...................................................................................................4-29
Exercise 4-4 Project: Weather Station CTL ..........................................................4-33
Lesson 5
Debugging VIs
A. Correcting Broken VIs..........................................................................................5-2
B. Debugging Techniques .........................................................................................5-4
C. Undefined or Unexpected Data.............................................................................5-11
D. Error Checking and Error Handling......................................................................5-12
Exercise 5-1 Concept: Debugging.........................................................................5-16

Contents
© National Instruments Corporation v LabVIEW Introduction Course Manual
Lesson 6
Developing Modular Applications
A. What is Modularity? .............................................................................................6-2
B. Icon and Connector Pane ......................................................................................6-4
C. Using SubVIs........................................................................................................6-9
Exercise 6-1 Project: Determine Warnings VI ......................................................6-11
Self-Review: Quiz.......................................................................................................6-17
Self-Review: Quiz Answers........................................................................................6-19
Lesson 7
Measurement Fundamentals
A. Computer-Based Measurement Systems ..............................................................7-2
B. Measurement Concepts.........................................................................................7-4
C. Increasing Measurement Quality ..........................................................................7-12
Exercise 7-1 Concepts: Measurement Fundamentals............................................7-18
Lesson 8
Data Acquisition
A. Hardware...............................................................................................................8-2
B. Software Architecture ...........................................................................................8-5
C. Simulating a DAQ Device ....................................................................................8-8
Exercise 8-1 Concept: MAX ...............................................................................8-9
D. Analog Input .........................................................................................................8-15
Exercise 8-2 Triggered Analog Input VI ..............................................................8-17
E. Analog Output.......................................................................................................8-22
F. Counters ................................................................................................................8-23
Exercise 8-3 Count Events VI ..............................................................................8-25
G. Digital I/O .............................................................................................................8-28
Exercise 8-4 Optional: Digital Count VI ..............................................................8-29
Self-Review: Quiz.......................................................................................................8-33
Lesson 9
Instrument Control
A. Instrument Control................................................................................................9-2
B. GPIB .....................................................................................................................9-2
C. Serial Port Communication...................................................................................9-3
D. Using Other Interfaces ..........................................................................................9-6
E. Software Architecture ...........................................................................................9-7
Exercise 9-1 Concept: GPIB Configuration with MAX .......................................9-9
剩余457页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0