Labview Crash Course: Presented by
Labview Crash Course: Presented by
Presented by:
Slide 2
Slide 3
What is LabVIEW?
Laboratory Virtual Instrumental Engineering Workbench LabVIEW is a graphical language It works just like block diagrams LabVIEW consists of two environments Backpanel/Block Diagram Frontpanel
Slide 4
Back Panel
This is where you build your Programs
All blocks and programming elements go here
Slide 5
Block Explanation
Blocks are called VIs VIs come in a variety of shapes and sizes VIs are connected to each other by wires
Slide 6
Block Explanation
Formatting Inputs Outputs
Data Flow
VIs are setup so data moves from left to right Each data type has its own wire color Constants, Controls, Variables and Indicators have the same color scheme
Slide 7
Block Diagram
Execution Order Can be a Problem
0
0
0 or 6?
Slide 8
Block Diagram
Execution Order Can be a Problem
Solve with Sequence Structures or Data Flow
Right Click =>Structures => Flat Sequence => For Loop, While Loop, Timed Structure, ETC
Slide 9
Express VIs
Automate Frequently used operations Will be used to generate signals
Slide 10
Debugging
If youre unsure how to use a VI use ctrl-H for context help LabVIEW contains several example VIs Keep an eye on what data types you use
Slide 11
Debugging
Debugging Highlights Data Flow
You can also use the Error Data Type
Slide 12
Front Panel
This is where your programs will output to There is no zoom function what you see is what you get
Slide 13
Front Panel
Objects placed on the Front Panel will create icons in the back panel for the VI to manipulate
Slide 14
Advanced Topics
Loops, case structures, comments, variables, sub-programs and just about every other Comp-Sci term can be implemented in LabVIEW There is text programming in LabVIEW For more info visit NIs website www.ni.com
Slide 15
Hints
Work on the back panel first Dont cross wires Keep the diagram clean If in doubt: right-click
Slide 16
Shortcuts
Ctrl-B Ctrl-R Ctrl-E Ctrl-T Ctrl-H Ctrl-(drag) Shift-(Right Click) -Remove Broken Wires -Run VI -Change Environment -Tiled View -Show Icon Help -Copy to Location -Call Cursor Palette
Slide 17
Other Resources
LabVIEW for Dummies
http://www.iit.edu/~labview/Dummies.html
Slide 18
Worksheet Time!
Slide 19