×
DON'T BE SATISFIED WITH B when you can get A+
--Your friends at LectureNotes
Close

Lab View

by Vtu RangersVtu Rangers
Type: NoteOffline Downloads: 24Views: 1496Uploaded: 10 months ago

Share it with your friends

Suggested Materials

Leave your Comments

Contributors

Vtu Rangers
Vtu Rangers
University College of Southeast Norway Introduction to LabVIEW Hans-Petter Halvorsen, 2016-09-07 http://home.hit.no/~hansha
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
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
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

Lecture Notes