Introduction to LabVIEW 8 in 3 Hours.pdf
(
3896 KB
)
Pobierz
Microsoft PowerPoint - Introduction to LabVIEW 8 in 3 Hours.ppt
Introduction to LabVIEW
3-Hour Hands-On
Copyright
¨ 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.
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.
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/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 02 2377 2222, Thailand 662 992 7519,
United Kingdom 44 0 1635 523545
Contents
Introduction
Virtual Instrumentation .................................................................................................................................3
Section IÏLabVIEW Environment
A. Getting Data into Your Computer
Data Acquisition Devices...............................................................................................................10
NI-DAQ..........................................................................................................................................12
Simulated Data Acquisition ...........................................................................................................14
Sound Card.....................................................................................................................................16
B. LabVIEW Environment
Front Panel/Block Diagram............................................................................................................18
Toolbar/Tools Palette .....................................................................................................................21
C. Components of a LabVIEW Application
Creating a VI ..................................................................................................................................24
Data Flow Execution......................................................................................................................25
Debugging Techniques...................................................................................................................26
D. Additional Help
Context Help ..................................................................................................................................32
Tips for Working in LabVIEW ......................................................................................................33
Section IIÏElements of Typical Programs
A. Loops
While Loop.....................................................................................................................................36
For Loop.........................................................................................................................................36
B. Functions and SubVIs
Types of Functions .........................................................................................................................38
Searching the Functions Palette .....................................................................................................40
Creating Custom SubVIs................................................................................................................41
C. Decision Making and File I/O
Case Structure ................................................................................................................................47
Select (If Statement).......................................................................................................................47
File I/O ...........................................................................................................................................48
Section IIIÏPresenting Your Results
A. Displaying Data on the Front Panel
Controls and Indicators ..................................................................................................................52
Graphs and Charts ..........................................................................................................................53
Arrays .............................................................................................................................................55
National Instruments Corporation
iii
Introduction to LabVIEW Hands-On
Loop Timing...................................................................................................................................58
B. Signal Processing
Textual Math ..................................................................................................................................61
MathScript......................................................................................................................................62
Section IVÏAdvanced Data Flow Topics (Optional)
A. Additional Data Types
Clusters...........................................................................................................................................70
Waveforms .....................................................................................................................................73
B. Data Flow Constructs
Shift Register..................................................................................................................................74
Local Variables ..............................................................................................................................75
C. Large Application development
Navigator Window .........................................................................................................................76
LabVIEW Project...........................................................................................................................77
Additional Help Resources..........................................................................................................................78
LabVIEW Certification ...............................................................................................................................79
Electronics Workbench and Multisim.........................................................................................................80
Multisim Integrated with LabVIEW ...........................................................................................................81
Exercise Solutions .......................................................................................................................................83
Exercises
Exercise 1..............................................................................................................................................12
Exercise 2..............................................................................................................................................27
Exercise 3.1...........................................................................................................................................43
Exercise 3.2...........................................................................................................................................45
Exercise 3.3...........................................................................................................................................49
Exercise 4.1...........................................................................................................................................60
Exercise 4.2...........................................................................................................................................64
Exercise 5..............................................................................................................................................68
Find more resources online:
ni.com/academic
Introduction to LabVIEW Hands-On
iv
ni.com
Introduction to LabVIEW
3-Hour Hands-On
¨ National Instruments Corporation
1
Introduction to LabVIEW Hands-On
Plik z chomika:
hantajo
Inne pliki z tego folderu:
LV Hands On-TOC.doc
(43 KB)
Introduction to LabVIEW 8 in 3 Hours.ppt
(10101 KB)
Introduction to LabVIEW 8 in 3 Hours.pdf
(3896 KB)
Inne foldery tego chomika:
+DASYLab.v10.00.00-GERMAN
+DASYLab.v9.0.2
+LabView.GOOD.Examples
+NI.ANALOG.WAVEFORM.EDITOR.V1.1
+NI.Calibration.Executive.v.3.2
Zgłoś jeśli
naruszono regulamin