LabVIEW Basics II - wersja 8.5.pdf
(
1604 KB
)
Pobierz
LVBasicsII.book
LabVIEW
™
Basics II:
Development
Course Manual
Course Software Version 8.5
September 2007 Edition
Part Number 320629R-01
LabVIEW Development Course Manual
Copyright
© 1993–2007 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.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by
copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to
others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable
license or other legal restriction.
The following notices relate to certain components used in USI (Xerces C++, ICU, HDF5, Citadel 5, b64 library, and Stingray). For a
listing of the conditions and disclaimers regarding these components, refer to the
USICopyrights.chm
.
Xerces C++
. This product includes software developed by the Apache Software Foundation (
http://www.apache.org/
).
Copyright 1999 The Apache Software Foundation. All rights reserved.
ICU
. Copyright 1995–2003 International Business Machines Corporation and others. All rights reserved.
HDF5
. 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.
Citadel 5
. In regards to components that use Citadel 5, the following copyright applies. Copyright © 1994 Hewlett-Packard Company.
b64 library
. Copyright © 2004–2006, Matthew Wilson and Synesis Software. All Rights Reserved.
Stingray
.
This software includes Stingray software developed by the Rogue Wave Software division of Quovadx, Inc.
Copyright 1995–2006, Quovadx, Inc. 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 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 3390150,
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 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
.
Contents
Student Guide
A. Course Description ...............................................................................................vi
B. What You Need to Get Started .............................................................................vi
C. Installing the Course Software..............................................................................vii
D. Course Goals.........................................................................................................vii
E. Course Conventions ..............................................................................................viii
Lesson 1
Common Design Techniques
A. Single Loop Architectures ....................................................................................1-2
B. Parallelism ............................................................................................................1-6
C. Multiple Loop Architectures.................................................................................1-8
D. Timing a Design Pattern .......................................................................................1-12
Lesson 2
Communicating Among Multiple Loops
A. Variables ...............................................................................................................2-2
B. Functional Global Variables .................................................................................2-12
Exercise 2-1 Variables VI......................................................................................2-15
Exercise 2-2 Optional: Global Data Project ..........................................................2-24
C. Race Conditions ....................................................................................................2-30
Exercise 2-3 Concept: Bank VI .............................................................................2-37
D. Synchronizing Data Transfer ................................................................................2-40
Exercise 2-4 Queues vs Local Variables VI ..........................................................2-45
Lesson 3
Event Programming
A. Event-Driven Programming..................................................................................3-2
Exercise 3-1 Concept: Experiment with Event Structures ....................................3-11
B. Event-Based Design Patterns................................................................................3-14
Exercise 3-2 Concept: Experiment with Event-Based Design Patterns ................3-17
Lesson 4
Improving an Existing VI
A. Refactoring Inherited Code...................................................................................4-2
B. Typical Refactoring Issues....................................................................................4-4
Exercise 4-1 Concept: Typical Issues....................................................................4-8
©
National Instruments Corporation
iii
LabVIEW Development Course Manual
Contents
Lesson 5
Controlling the User Interface
A. VI Server Architecture..........................................................................................5-2
B. Property Nodes .....................................................................................................5-3
Exercise 5-1 Temperature Limit VI.......................................................................5-5
C. Control References ...............................................................................................5-10
Exercise 5-2 Set Plot Names .................................................................................5-14
D. Invoke Nodes ........................................................................................................5-23
Exercise 5-3 Front Panel Properties VI .................................................................5-24
Lesson 6
Advanced File I/O Techniques
A. File Formats ..........................................................................................................6-2
B. Binary Files...........................................................................................................6-4
Exercise 6-1 Bitmap File Writer VI ......................................................................6-12
C. TDMS Files...........................................................................................................6-19
Exercise 6-2 TDMS Reader VI .............................................................................6-27
Lesson 7
Creating and Distributing Applications
A. LabVIEW Features for Project Development.......................................................7-2
Exercise 7-1 Concept: LabVIEW Project Management Tools..............................7-5
B. Preparing the Application .....................................................................................7-7
C. Building the Application and Installer..................................................................7-8
Exercise 7-2 Concept: Creating a Stand-Alone Application .................................7-10
Appendix A
Additional Information and Resources
Course Evaluation
LabVIEW Development Course Manual
iv
ni.com
Student Guide
Thank you for purchasing the
LabVIEW Basics II: Development
course
kit. You can begin developing an application soon after you complete
the exercises in this manual. This course manual and the accompanying
software are used in the two-day, hands-on
LabVIEW Basics II:
Development
course.
You can apply the full purchase of this course kit toward the corresponding
course registration fee if you register within 90 days of purchasing the kit.
Visit
ni.com/training
for online course schedules, syllabi, training
centers, and class registration.
Note
For course manual updates and corrections, refer to
ni.com/info
and enter the
info code
rdlvc2
.
The
LabVIEW Basics II: Development
course is part of a series of courses
designed to build your proficiency with LabVIEW and help you prepare for
exams to become an NI Certified LabVIEW Developer and NI Certified
LabVIEW Architect. The following illustration shows the courses that are
part of the LabVIEW training series. Refer to
ni.com/training
for more
information about NI Certification.
Courses
New User
Experienced User
Advanced User
Begin
Here
LabVIEW Basics I*
LabVIEW Intermediate I*
LabVIEW Intermediate II*
LabVIEW Advanced
Application Development
LabVIEW Basics II*
Skills learned:
LabVIEW environment
navigation
Basic application creation
using LabVIEW
Skills learned:
Modular application development
Structured design and
development practices
Memory management and VI
performance improvement
Skills learned:
Large application design
Code reuse maximization
Object-oriented programming
in LabVIEW
Certifications
Certified LabVIEW
Associate Developer Exam
Certified LabVIEW
Developer Exam
Certified LabVIEW
Architect Exam
Skills tested:
LabVIEW environment
knowledge
Skills tested:
LabVIEW application
development expertise
Skills tested:
LabVIEW application
development mastery
Hardware-Based Courses:
Data Acquisition and Signal Conditioning Modular Instruments Instrument Control Machine Vision
Motion Control LabVIEW Real-Time Compact RIO
*Core courses are strongly recommended to realize maximum productivity gains when using LabVIEW.
©
National Instruments Corporation
v
LabVIEW Development Course Manual
Skills learned:
LabVIEW environment
navigation
Basic application creation
using LabVIEW
Plik z chomika:
h4llucin
Inne pliki z tego folderu:
LabVIEW w praktyce.pdf
(34802 KB)
Wiesław_Tłaczała_-_Środowisko_LabVIEW_w_eksperymencie_wspomaganym_komputerowo.djvu
(33099 KB)
LabView_pomiar_napiecia.pdf
(108 KB)
LabVIEW zestaw 1 od Maja(1).rar
(87 KB)
LabVIEW zestaw 1 od Maja.rar
(87 KB)
Inne foldery tego chomika:
Android
android-studio
budownictwo
centralne ogrzewanie
dla_Monci
Zgłoś jeśli
naruszono regulamin