1 / 24

Introduction to LabVIEW 8.5

Introduction to LabVIEW 8.5. Elec 163 Electronic Design I Freshman design course at Wentworth Institute of Technology Original slides prepared by Professor Xiaobin Le of Mechanical program Adapted for Electrical program by Cap’n Tim Johnson, PE. Introduction to LabVIEW.

minowa
Download Presentation

Introduction to LabVIEW 8.5

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. Introduction to LabVIEW 8.5 • Elec 163 Electronic Design I • Freshman design course at Wentworth Institute of Technology • Original slides prepared by Professor Xiaobin Le of Mechanical program • Adapted for Electrical program by Cap’n Tim Johnson, PE

  2. Introduction to LabVIEW GRAPHICAL PROGRAMMING FOR ENGINEERS AND SCIENTISTS

  3. Introduction to LabVIEW (1) • What is LabVIEW? • LabVIEW • The Virtual Instrumentation (VI) Approach for measurement systems • LabVIEW environment • Three parts of a VI • Three palettes • Show context help • Status bar

  4. What is LabVIEW? • LabVIEW - Laboratory Virtual Instrument Engineering Workbench • LabVIEW is a software, which uses graphical programming languagefor data acquisition, data analysis, presentation of result and instrument control.

  5. LabVIEW program is called virtual instrument (VI), because their appearance and operation imitate physical instruments, such as oscilloscopes and multimeters

  6. Laptop PC PXI Modular Instrumentation PDA Desktop PC High-Speed Digitizers Counter/ Timers Distributed I/O and Embedded Control High-Resolution Digitizers and DMMs Multifunction Data Acquisition Dynamic Signal Acquisition Instrument Control Machine Vision Motion Control Digital I/O Signal Conditioning and Switching Unit Under Test The VI approach for measurement systems LabVIEW + Computer Hardware + sensor Object being tested

  7. Three parts of a VI Front panel Block diagram Icon and connector pane Three palettes Tools palette The Controls palette The Functions palette Show context Help Status bar LabVIEW provides an easy-to-use graphical programming environment, including all of the tools necessary for data acquisition (DAQ), data analysis and presentation of results. LabVIEW tries to make your life as hassle-free as possible. It has extensive libraries of functions and subroutines to help you with most programming tasks. LabVIEW environment

  8. Three parts of a VI A VI contains the following three components: • Front panel—Serves as the user interface for input and show results for output and presentation. • Block diagram—Contains the graphical source code that defines the functionality of the VI. (It is a executable program.). It is similar to circuits • Icon and connector pane—Identifies the VI so that you can use the VI in another VI. Actually every graphic icon is a kind of sub-VI. It can execute a simple or complicated task and with input and output terminals.

  9. Front Panel • The front panel is the user interface of the VI. • A front panel contains controls for input and indicators for output or data presentation • Controls are knobs, pushbuttons, dials, and other input devices. • Controls simulate instrument input devices and supply data to the block diagram of the VI. • Indicators are graphs, LEDs, and other displays. • Indicators simulate instrument output devices and display data the block diagram acquires or generates.

  10. Front Panel Toolbar Icon Boolean Control Graph Legend Waveform Graph Scale Legend Plot Legend A VI’s Front Panel • Front Panel • Controls = Inputs • Indicators = Outputs

  11. Block diagram • A virtual circuit in which virtual components are wired together • A executable graphical program • Accompanying “program” for front panel

  12. A VI’s Block Diagram Block Diagram Toolbar Divide Function SubVI Graph Terminal Wire Data Numeric Constant Timing Function Boolean Control Terminal While Loop Structure

  13. Icon and connector pane • Icon and connector pane—Identifies the VI so that you can use the VI in another VI. A VI within another VI is called a sub-VI. • Provide the connectors for wiring

  14. Three LabVIEW Palettes • The Tools paletteis available on the front panel and the block diagram. • A tool is a special operating mode of the mouse cursor. • The Controls palette is available only on the front panel. • The Controls palette contains the controls and indicators you use to create the front panel. • The Functions palette is available only on the block diagram. • The Functions palette contains the VIs and functions you use to build the block diagram.

  15. Tools Palette • The Tools paletteis available on the front panel and the block diagram. • A tool is a special operating mode of the mouse cursor. • Select View»Show Tools Palette to display the Tools palette. • Floating Palette • Used to operate and modify front panel and block diagram objects. Automatic Selection Tool Scrolling Tool Breakpoint Tool Probe Tool Color Copy Tool Coloring Tool Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Shortcut Menu Tool

  16. The Controls palette • Select View»Show Controls Palette or right-click the front panel workspace to display the Controls palette • In the front panel mode, right click any empty place, the “control palette” will be shown. After you choose proper screen, you can pin that screen.

  17. Functions Palette • Select View»Show Functions Palette or right-click the block diagram workspace to display the Functions palette. • In the Block diagram mode, right click any empty place, the “function palette” will be shown. After you choose proper screen, you can pin that screen.

  18. Show context Help When you point at any icon (graphical code), the description of the icon will be shown if the “show context help” is checked.

  19. Status Toolbar Run Button Continuous Run Button Abort Execution Additional Buttons on the Diagram Toolbar Execution Highlighting Button Retain Wire Values Button Step Function Buttons

  20. End of Overview • The next few slides will help you get started making your own virtual instrument.

  21. Open LabVIEW

  22. Lab instructions • Read Ch1 in “Getting Started with LabVIEW. • If your instructor hands out the pages for this chapter you won’t need to open up the manual (instructions follow) • This manual is found (on my machine) at C:\Program Files\National Instruments\LabVIEW 8.2\manuals or 2 selections down from where you clicked to start LabView. • Click on LV_Getting_Started.pdf to open the manual. • Do NOT print out the manual!!!! • If you are working as a team have one of your team mates open up the PDF and use that as your copy.

  23. Tutorial • As you read through the chapter make the VI and modifications suggested. • Turn in a screen print of the design, and • Answer the questions on the following page.

  24. Begin designing • You are on your way. • This lab is part of the design process steps Gathering Information and Conceptualizing Alternate Solutions. • The question you are considering is: Will this software help me with the soldering iron project? If so, how?

More Related