lab 1 : introduction to labview 1 southern methodist university bryan rodriguez
TRANSCRIPT
Lab 1 :
Introduction to LabView
1Southern Methodist University Bryan Rodriguez
Objectives
• To learn about and experiment with the LabView software
• To create your own LabView VI
2Southern Methodist University Bryan Rodriguez
Part I :
Intro to Labview VIs
3Southern Methodist University Bryan Rodriguez
Double click the LabView shortcut icon on the desktop to open LabView
4Southern Methodist University Bryan Rodriguez
This is what you should see
5Southern Methodist University Bryan Rodriguez
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
6Southern Methodist University Bryan Rodriguez
Toolbar Buttons
1 2 3 4 5
1- Run2- Run continuous3- Stop4- Pause5- Highlight Execution (Available in Block Diagram)
7Southern Methodist University Bryan Rodriguez
This is what you should see
Press “Run” to start VI
8Southern Methodist University Bryan Rodriguez
On the toolbar press Window > Show Block Diagram
This shows how everything is connected and working together
9Southern Methodist University Bryan Rodriguez
•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
10Southern Methodist University Bryan Rodriguez
Press “Highlight Execution” then “Run” to see what is happening
11Southern Methodist University Bryan Rodriguez
Part II :
Make your own VI
12Southern Methodist University Bryan Rodriguez
Click on “On My Computer” then press the green arrow
13Southern Methodist University Bryan Rodriguez
You should see this which is the front panel and is used as the user interface (buttons, knobs, display screens, etc)
14Southern Methodist University Bryan Rodriguez
Right click to see interface features you can add to your project
Displays, Inputs, gauges , etc
15Southern Methodist University Bryan Rodriguez
Southern Methodist University Bryan Rodriguez 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
Southern Methodist University Bryan Rodriguez 17
We will begin by looking at the numeric controls shown below
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
Let’s do an example:Add 2 numeric inputs and a numeric output
19Southern Methodist University Bryan Rodriguez
Go to the Block Diagram and verify you have 2 inputs and 1 output (Display)
20Southern Methodist University Bryan Rodriguez
Right click to see operations that you can perform
21Southern Methodist University Bryan Rodriguez
•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
22Southern Methodist University Bryan Rodriguez
Southern Methodist University Bryan Rodriguez 23
Right click and add a while loop by dragging a box around what you just built
Southern Methodist University Bryan Rodriguez 24
This is what you should see
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
Southern Methodist University Bryan Rodriguez 26
It should look like this
•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
27Southern Methodist University Bryan Rodriguez
Southern Methodist University Bryan Rodriguez 28
Part III : Additional tips
Southern Methodist University Bryan Rodriguez 29
Double click text to rename features
Double click anywhere to add comments
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 HelpCTL + H
•To tile windowsCTL + T
1. Add onto this example using different types of inputs, displays, sliders, etc.
2. Make a sheet that can compute the average of 3 numbersie. (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-
31Southern Methodist University Bryan Rodriguez
32Southern Methodist University Bryan Rodriguez