Download presentation
Presentation is loading. Please wait.
Published byImogen Tucker Modified over 9 years ago
1
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez
2
Objectives To learn about and experiment with the LabView software To create your own LabView VI 2 Southern Methodist University Bryan Rodriguez
3
Part I : Intro to Labview VIs 3 Southern Methodist University Bryan Rodriguez
4
Double click the LabView shortcut icon on the desktop to open LabView 4 Southern Methodist University Bryan Rodriguez
5
This is what you should see 5 Southern Methodist University Bryan Rodriguez
6
We will begin by looking at one of the LabView example Vis Highlight: 3-Making Digital Images > 3-01 Image Quantization > 2- Image Quantization – Color Then, Press the upper Green Arrow 6 Southern Methodist University Bryan Rodriguez
7
Toolbar Buttons 1 2 3 4 5 1- Run 2- Run continuous 3- Stop 4- Pause 5- Highlight Execution (Available in Block Diagram) 7 Southern Methodist University Bryan Rodriguez
8
This is what you should see Press “Run” to start VI 8 Southern Methodist University Bryan Rodriguez
9
On the toolbar press Window > Show Block Diagram This shows how everything is connected and working together 9 Southern Methodist University Bryan Rodriguez
10
To see details about certain block simply click on the block and it will show in the “Context Help” window To see where something is located just Double click 10 Southern Methodist University Bryan Rodriguez
11
Press “Highlight Execution” then “Run” to see what is happening 11 Southern Methodist University Bryan Rodriguez
12
Part II : Make your own VI 12 Southern Methodist University Bryan Rodriguez
13
Click on “On My Computer” then press the green arrow 13 Southern Methodist University Bryan Rodriguez
14
You should see this which is the front panel and is used as the user interface (buttons, knobs, display screens, etc) 14 Southern Methodist University Bryan Rodriguez
15
Right click to see interface features you can add to your project Displays, Inputs, gauges, etc 15 Southern Methodist University Bryan Rodriguez
16
16 Right click and you will see the Control panel These are the user interfaces you can add to your project -To lock this panel in place click the push pin in the upper left corner
17
Southern Methodist University Bryan Rodriguez 17 We will begin by looking at the numeric controls shown below
18
Southern Methodist University Bryan Rodriguez 18 By adding these elements we can use them as inputs and outputs for the user Once added they will also appear on the block diagram to be connected
19
Let’s do an example: Add 2 numeric inputs and a numeric output 19 Southern Methodist University Bryan Rodriguez
20
Go to the Block Diagram and verify you have 2 inputs and 1 output (Display) 20 Southern Methodist University Bryan Rodriguez
21
Right click to see operations that you can perform 21 Southern Methodist University Bryan Rodriguez
22
Under “Math” add the “Addition” block Connect wires but clicking the arrow on a block and then clicking the arrow on the piece to be connected Connect like below 22 Southern Methodist University Bryan Rodriguez
23
23 Right click and add a while loop by dragging a box around what you just built
24
Southern Methodist University Bryan Rodriguez 24 This is what you should see
25
Southern Methodist University Bryan Rodriguez 25 This loop will run continuously forever and therefore needs a way to terminate Right click the stop sign in the lower left corner of the while loop Choose create control to add a button to stop this loop
26
Southern Methodist University Bryan Rodriguez 26 It should look like this
27
Press “Run” and verify everything is working This project should add the numbers and display the result Press the stop button you added to terminate 27 Southern Methodist University Bryan Rodriguez
28
28 Part III : Additional tips
29
Southern Methodist University Bryan Rodriguez 29 Double click text to rename features Double click anywhere to add comments
30
Southern Methodist University Bryan Rodriguez 30 Useful shortcuts: To “take a picture” of your screen (useful for lab reports) Press “Print Screen” button on the keyboard To “take a picture of just a certain window Press ALT + “Print Screen” For labview: To jump to the Block Diagram CTL +E For Context Help CTL + H To tile windows CTL + T
31
1.Add onto this example using different types of inputs, displays, sliders, etc. 2.Make a sheet that can compute the average of 3 numbers ie. (X1 + X2 + X3 ) / 3 3. Create your own function and provide comments for the operations and final result Make sure to take screen shots to include in your report In your report- Discuss and describe your projects Your assignment- 31 Southern Methodist University Bryan Rodriguez
32
32 Southern Methodist University Bryan Rodriguez
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.