330 likes | 413 Views
Lab 1 : Introduction to LabView. Objectives. To learn about and experiment with the LabView software To create your own LabView VI. Part I : Intro to Labview VIs. Double click the LabView shortcut icon on the desktop to open LabView. This is what you should see.
E N D
Lab 1 : Introduction to LabView Southern Methodist University Bryan Rodriguez
Objectives • To learn about and experiment with the LabView software • To create your own LabView VI Southern Methodist University Bryan Rodriguez
Part I : Intro to Labview VIs Southern Methodist University Bryan Rodriguez
Double click the LabView shortcut icon on the desktop to open LabView Southern Methodist University Bryan Rodriguez
This is what you should see Southern 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 Southern Methodist University Bryan Rodriguez
Toolbar Buttons 1 2 3 4 5 1- Run 2- Run continuous 3- Stop 4- Pause 5- Highlight Execution (Available in Block Diagram) Southern Methodist University Bryan Rodriguez
This is what you should see Press “Run” to start VI Southern Methodist University Bryan Rodriguez
On the toolbar press Window > Show Block Diagram This shows how everything is connected and working together Southern 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 Southern Methodist University Bryan Rodriguez
Press “Highlight Execution” then “Run” to see what is happening Southern Methodist University Bryan Rodriguez
Part II : Make your own VI Southern Methodist University Bryan Rodriguez
Click on “On My Computer” then press the green arrow Southern 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) Southern Methodist University Bryan Rodriguez
Right click to see interface features you can add to your project Displays, Inputs, gauges , etc Southern Methodist University Bryan Rodriguez
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
We will begin by looking at the numeric controls shown below Southern Methodist University Bryan Rodriguez
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 Southern Methodist University Bryan Rodriguez
Let’s do an example: Add 2 numeric inputs and a numeric output Southern Methodist University Bryan Rodriguez
Go to the Block Diagram and verify you have 2 inputs and 1 output (Display) Southern Methodist University Bryan Rodriguez
Right click to see operations that you can perform Southern 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 Southern Methodist University Bryan Rodriguez
Right click and add a while loop by dragging a box around what you just built Southern Methodist University Bryan Rodriguez
This is what you should see Southern Methodist University Bryan Rodriguez
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
It should look like this Southern Methodist University Bryan Rodriguez
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 Southern Methodist University Bryan Rodriguez
Part III : Additional tips Southern Methodist University Bryan Rodriguez
Double click text to rename features Double click anywhere to add comments Southern Methodist University Bryan Rodriguez
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 Southern Methodist University Bryan Rodriguez
Your assignment- • Add onto this example using different types of inputs, displays, sliders, etc. • 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 Southern Methodist University Bryan Rodriguez