1 / 32

Lab 1 : Introduction to LabView

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.

gregoriom
Download Presentation

Lab 1 : Introduction to LabView

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 1 : Introduction to LabView Southern Methodist University Bryan Rodriguez

  2. Objectives • To learn about and experiment with the LabView software • To create your own LabView VI Southern Methodist University Bryan Rodriguez

  3. Part I : Intro to Labview VIs Southern Methodist University Bryan Rodriguez

  4. Double click the LabView shortcut icon on the desktop to open LabView Southern Methodist University Bryan Rodriguez

  5. This is what you should see 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 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) Southern Methodist University Bryan Rodriguez

  8. This is what you should see Press “Run” to start VI Southern Methodist University Bryan Rodriguez

  9. On the toolbar press Window > Show Block Diagram This shows how everything is connected and working together 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 Southern Methodist University Bryan Rodriguez

  11. Press “Highlight Execution” then “Run” to see what is happening Southern Methodist University Bryan Rodriguez

  12. Part II : Make your own VI Southern Methodist University Bryan Rodriguez

  13. Click on “On My Computer” then press the green arrow 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) Southern Methodist University Bryan Rodriguez

  15. Right click to see interface features you can add to your project Displays, Inputs, gauges , etc 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 Southern Methodist University Bryan Rodriguez

  19. Let’s do an example: Add 2 numeric inputs and a numeric output Southern Methodist University Bryan Rodriguez

  20. Go to the Block Diagram and verify you have 2 inputs and 1 output (Display) Southern Methodist University Bryan Rodriguez

  21. Right click to see operations that you can perform 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 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 Southern Methodist University Bryan Rodriguez

  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 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 Help • CTL + H • To tile windows • CTL + T Southern Methodist University Bryan Rodriguez

  31. 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

  32. Southern Methodist University Bryan Rodriguez

More Related