×
SUCCESS DOESN'T HAPPEN TO YOU. IT HAPPENS BECAUSE OF YOU
--Your friends at LectureNotes
Close

Note for Lab View - LV By vtu rangers

  • Lab View - LV
  • Note
  • 13 Topics
  • 1812 Views
  • 37 Offline Downloads
  • Uploaded 1 year ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-2

Preface This document explains the basic concepts of LabVIEW. You find additional resources, code, etc. here: http://home.hit.no/~hansha/?tutorial=labview You need to install the LabVIEW Professional Development System. For more information about LabVIEW, visit my Blog: http://home.hit.no/~hansha/ LabVIEW Basics Videos: http://home.hit.no/~hansha/video/labview_basics.php LabVIEW Training and Resources: http://home.hit.no/~hansha/?training=labview ii

Text from page-3

Table of Contents Preface ...................................................................................................................................... ii Table of Contents ..................................................................................................................... iii 1 2 Introduction ...................................................................................................................... 1 1.1 Dataflow Programming ............................................................................................... 1 1.2 Graphical Programming .............................................................................................. 1 1.3 Benefits ....................................................................................................................... 2 Start using LabVIEW .......................................................................................................... 4 2.1 The LabVIEW Environment ......................................................................................... 4 2.2 Front Panel ................................................................................................................. 5 2.3 Block Diagram ............................................................................................................. 7 2.4 Controls Palette ........................................................................................................ 10 2.4.1 Numeric Sub Palette .......................................................................................... 12 2.4.2 Boolean Sub Palette .......................................................................................... 12 2.4.3 String & Path Sub Palette .................................................................................. 13 2.5 Function Palette ........................................................................................................ 13 2.6 Tools Palette ............................................................................................................. 14 2.7 Wiring ....................................................................................................................... 16 2.8 Toolbar ...................................................................................................................... 16 2.9 Execution .................................................................................................................. 17 2.10 The Objects short-cut menu ................................................................................. 18 2.11 Dataflow Programming ......................................................................................... 19 2.12 Help ....................................................................................................................... 20 Exercises .............................................................................................................................. 20 iii

Text from page-4

iv 3 Table of Contents Sub VIs ............................................................................................................................. 24 3.1 Create New Sub VI from Scratch ............................................................................... 25 3.1.1 Input and Output SubVI Connectors ................................................................. 26 3.1.2 Icon Editor ......................................................................................................... 28 3.2 Create Sub VI from existing code .............................................................................. 29 3.3 Using Sub VIs ............................................................................................................ 30 Exercises .............................................................................................................................. 31 4 Customize LabVIEW ......................................................................................................... 33 Exercises .............................................................................................................................. 34 5 Loops and Structures ....................................................................................................... 35 5.1 Loops ......................................................................................................................... 35 5.1.1 For Loop ............................................................................................................. 36 5.1.2 While Loop ........................................................................................................ 37 5.2 Structures ................................................................................................................. 38 5.2.1 Case Structure ................................................................................................... 38 5.2.2 Sequence Structure ........................................................................................... 39 5.2.3 Event Structure .................................................................................................. 40 Exercises .............................................................................................................................. 42 6 Troubleshooting and Debugging ..................................................................................... 45 6.1 How to find errors .................................................................................................... 45 6.2 Highlight Execution ................................................................................................... 45 6.3 Probes ....................................................................................................................... 46 6.4 Breakpoints ............................................................................................................... 47 6.5 Step into/over/out debugging .................................................................................. 48 Exercises .............................................................................................................................. 48 Tutorial: An Introduction to LabVIEW

Text from page-5

v 7 Table of Contents Working with Data .......................................................................................................... 50 7.1 Arrays ........................................................................................................................ 50 7.1.1 Auto-Indexing .................................................................................................... 50 7.1.2 Array Functions ................................................................................................. 51 7.2 Cluster ....................................................................................................................... 53 7.2.1 Cluster Order ..................................................................................................... 54 7.2.2 Cluster Elements ................................................................................................ 55 Exercises .............................................................................................................................. 56 8 Working with Strings ....................................................................................................... 58 Exercises .............................................................................................................................. 60 9 Error Handling ................................................................................................................. 62 9.1 Finding Error ............................................................................................................. 62 9.2 Error Wiring .............................................................................................................. 62 9.3 Error Handling in SubVIs ........................................................................................... 63 9.4 Error Handling ........................................................................................................... 64 Exercises .............................................................................................................................. 65 10 Working with Projects .................................................................................................. 66 10.1 Project Explorer ..................................................................................................... 66 10.2 Deployment ........................................................................................................... 67 Exercises .............................................................................................................................. 69 11 Design Techniques ........................................................................................................ 71 11.1 Force Program Flow .............................................................................................. 71 11.2 Shift Register ......................................................................................................... 72 11.3 State Programming Architecture .......................................................................... 73 11.4 Multiple Loops/Parallel programming .................................................................. 75 Tutorial: An Introduction to LabVIEW

Lecture Notes