1 / 58

LabVIEW in 3 Hours

LabVIEW in 3 Hours. Engineering – Industries. Manufacturing. Telecom. Electronics. Automotive. Test Industries. Semiconductor. Chemical Processing. Aerospace. Transportation. Military. Biomedical. Instrumentation. Instrumentation. Data Acquisition. Virtual Instrumentation.

peggy
Download Presentation

LabVIEW in 3 Hours

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. LabVIEW in 3 Hours

  2. Engineering – Industries Manufacturing Telecom Electronics Automotive Test Industries Semiconductor Chemical Processing Aerospace Transportation Military Biomedical

  3. Instrumentation

  4. Instrumentation

  5. Data Acquisition

  6. Virtual Instrumentation Application Software Hardware and Driver Software Network

  7. PXI/CompactPCI PLCs Vision Distributed I/O Data Acquisition and Signal Conditioning GPIB/Serial and VXI Modular Instrumentation Virtual Instrumentation Architecture LabVIEW Instrument / Data Acquisition Drivers

  8. Section I – The LabVIEW Environment • LabVIEW terms • Components of a LabVIEW application • LabVIEW programming tools • Creating an application in LabVIEW

  9. LabVIEW Programs Are Called Virtual Instruments (VIs)

  10. LabVIEW Programs Are Called Virtual Instruments (VIs) Two Work Areas: 1. Front Panel Controls = Inputs to the computer

  11. LabVIEW Programs Are Called Virtual Instruments (VIs) Two Work Areas: 1. Front Panel Controls = Inputs to the computer Indicators = Outputs from the computer

  12. LabVIEW Programs Are Called Virtual Instruments (VIs) Two Work Areas: 1. Front Panel Controls = Inputs to the computer Indicators = Outputs from the computer 2. Block Diagram Instruction set for controls, indicators “Source Code”

  13. VI Front Panel PanelToolbar Pull-down menu Boolean Control Double Indicator Waveform Graph (Type of Indicator)

  14. VI Block Diagram Pull-down menu Temperature Indicator Data Acquisition Function Thermometer Terminal Delay WhileLoop Stop Loop Terminal Stop Button Terminal

  15. Controls Palette (Front Panel Window) Functions Palette (Block Diagram Window) Controls and Functions Palettes Graphical, floating palettes Used to place controls & indicators on the front panel, or to build the block diagram

  16. Tools Palette (Front Panel) • Operating Tool • Positioning/Resizing Tool • Labeling Tool • Coloring Tool

  17. Tools Palette (Block Diagram) Automatic Selection • Operating Tool • Positioning/Resizing Tool • Labeling Tool • Coloring Tool Wiring Tool Breakpoint Tool Probe Tool

  18. Status Toolbar Run Button Continuous Run Button Abort Execution Pause/Continue Button Text Settings Align Objects Distribute Objects Reorder Additional Buttons on the Diagram Toolbar Execution Highlighting Button Step Into Button Step Over Button Step Out Button

  19. Status Toolbar Run Button Continuous Run Button Abort Execution Pause/Continue Button Text Settings Align Objects Distribute Objects Reorder Additional Buttons on the Diagram Toolbar Execution Highlighting Button Step Into Button Step Over Button Step Out Button

  20. Open a Virtual Instrument Basic Spectral Measurement.vi

  21. Template Browser

  22. Create a New VI

  23. Creating a VI – Front Panel Front Panel Window

  24. Creating a VI – Front Panel Front Panel Window

  25. Creating a VI – Block Diagram Block Diagram Front Panel Window

  26. LabVIEW’s Context Help

  27. Creating a VI – Adding Functions

  28. Creating a VI – Adding Functions

  29. Creating a VI – Wiring Wire attachment points (nodes) flash when the wiring tool is passed over wiring tool Right Click Node Terminals (communication ports)

  30. Creating a VI – Adding Functions

  31. Creating a VI – Adding Functions

  32. Express Functions Same overall functionality

  33. Section II • What is a subVI? • Creating a subVI • Using a VI as a subVI

  34. SubVIs LabVIEW is modular • Any VI can be used as a subroutine (or subVI) to other programs • Advantages • Modular • Easier to debug • Don’t have to recreate code

  35. Creating a SubVI • Create code • Select code for use in subVI • Click Edit-Create subVI

  36. Editing a SubVI

  37. Insert the SubVI into a Top Level VI Accessing user-made subVIs Functions >> Select a VI Or Drag icon onto target diagram

  38. Create SubVI from your code

  39. View your subVI

  40. Section III – Data Acquisition • Data acquisition (DAQ) basics • Connecting Signals • Simple DAQ application

  41. DAQ – Data Acquisition • Plug-in board for a computer with: • Analog input channels • Analog output channels • Counters • Digital I/O • Controlled by a suite of LabVIEW VIs Functions>>Data Acquisition

  42. DAQ – DataAcquisition

  43. Hardware Connections SC-2075 BNC-2120 SCB-68

  44. Channel Connections Signal Motor Single-Ended Measurement Ground Battery + Signal 1 Differential Measurement - Signal 2

  45. Analog Signals Data Acquisition System 1.659487387 volts ADC 1010100111110

  46. Digital Signals

  47. Measurement & Automation Explorer

  48. Channel Connections Channel Connections • Single-Ended Mode: ACHx and AIGND used to connect signal to channel x • Differential Mode: ACHx, ACHx+8 used to connect signal to channel x

  49. Section IV – Loops and Charts • For Loop • While Loop • Charts • Graphs

  50. Loops • While Loops • Terminated by condition • Always Runs Once • Delay between iterations may be added • For Loops • Terminate after N iterations • N specified on block diagram

More Related