• Document: Introduction to LabVIEW
  • Size: 800.21 KB
  • Uploaded: 2018-12-08 17:43:35
  • Status: Successfully converted


Some snippets from your converted document:

Introduction to LabVIEW How to Succeed in EE 20 Lab • Work as a group of 2 • Read the lab guide thoroughly • Use help function and help pages in LabVIEW • Do the Pre-Lab before you come to the lab • Don’t do the post-lab independent section at the last minute Lab Goals • Become comfortable with the LabVIEW environment and data flow execution – Front panels – Block diagrams – Functions and Controls Palettes – Use built-in LabVIEW functions • Use LabVIEW to solve problems • Learn LabVIEW concepts – Finding and using math and complex analysis functions – Working with data types, such as arrays and clusters – Displaying results 3 This lab prepares you to do the following: •Use LabVIEW to create applications. •Understand front panels, block diagrams, and icons and connector panes. •Use built-in LabVIEW functions. Section I – LabVIEW Environment A. Components to a LabVIEW Application • Front Panel • Block Diagram B. Programming Environment • Controls Palette • Functions Palette • Tools Palette • Status Toolbar C. Additional Help • Context Help Window • Tips for Working in LabVIEW 4 Open and Run LabVIEW Start»All Programs»National Instruments LabVIEW » 8.5 Startup Screen: 8.5 Start from a blank VI: New»Blank VI or Start from an example: Examples»Find Examples… 5 LabVIEW LabVIEW is a graphical programming language that uses icons instead of lines of text to create applications. In contrast to text-based programming languages, where instructions determine program execution, LabVIEW uses dataflow programming, where the flow of data determines execution order. LabVIEW Example Finder LabVIEW features hundreds of example VIs you can use and incorporate into VIs that you create. In addition to the example VIs that are shipped with LabVIEW, you can access hundreds of example VIs on the NI Developer Zone (zone.ni.com). You can modify an example VI to fit an application, or you can copy and paste from one or more examples into a VI that you create. LabVIEW Programs Are Called Virtual Instruments (VIs) Each VI has 2 windows Front Panel • User interface (UI) – Controls = Inputs – Indicators = Outputs Block Diagram (ctrl-e) • Graphical code – Data travels on wires from controls through functions to indicators – Blocks execute by data flow 6 LabVIEW programs are called virtual instruments (VIs). Controls are inputs and indicators are outputs. Each VI contains three main parts: • Front panel – How the user interacts with the VI • Block diagram – The code that controls the program • Icon/connector – The means of connecting a VI to other VIs In LabVIEW, you build a user interface by using a set of tools and objects. The user interface is known as the front panel. You then add code using graphical representations of functions to control the front panel objects. The block diagram contains this code. In some ways, the block diagram resembles a flowchart. You interact with the front panel when the program is running. You can control the program, change inputs, and see data updated in real time. Controls are used for inputs such as adjusting a slide control to set an alarm value, turning a switch on or off, or stopping a program. Indicators are used as outputs. Thermometers, lights, and other indicators display output values from the program. These may include data, program states, and other information. Every front panel control or indicator has a corresponding terminal on the block diagram. When you run a VI, values from controls flow through the block diagram, where they are used in the functions on the diagram, and the results are passed into other functions or indicators through wires. Controls Palette (Place items on the front panel window) Control: Customize Numeric Palette View Indicator: Numeric Slide 7 Use the Controls palette to place controls and indicators on the front panel. The Controls palette is available only on the front panel. To view the palette, select View»Controls Palette. You also can display the Controls palette by right-clicking an open area on the

Recently converted files (publicly available):