1 / 17

LabVIEW and “ G ” Graphical Programming Language

LabVIEW and “ G ” Graphical Programming Language. By: Ramtin Raji Kermani. What is LabVIEW?. LabVIEW (Laboratory of Virtual Instrument Engineering Workbench) is a development environment based on graphical programming. . What is LabVIEW?.

salaam
Download Presentation

LabVIEW and “ G ” Graphical Programming Language

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. LabVIEWand “G” Graphical Programming Language By: Ramtin Raji Kermani

  2. What is LabVIEW? LabVIEW (Laboratory of Virtual Instrument Engineering Workbench) is a development environment based on graphical programming.

  3. What is LabVIEW? • LabVIEW relies on graphical symbols rather than textual language to describe programming actions • The principle of dataflow, in which functions execute only after receiving the necessary data, governs execution in a straightforward manner.

  4. LabVIEW features • Product of National Instruments (NI) • Software for Virtual Instrumentation • Data Acquisition (DAQ) • Graphical Programming • Data Storage and Analysis for wide Range of applications

  5. LabVIEW features • LabVIEW programs are called: • Virtual Instruments (VIs) because their appearence and operation imitate actual instruments. • However, they are analogous to main programs, functions and subroutines from popular language like C, Fortran, Pascal, …

  6. Virtual Instruments 1- The front panel: an interactive user interface of a VI, so named because it can simulates the front panel of a physical instrument. 2- The block (or wiring) diagram: It is the VI’s source code, constructed in LabVIEW’s graphical programming language, G. It is the actual executable program. Subroutine in the blockdiagram of VI. 3- Icon/connector

  7. VIs • Front Panel • User Interface (UI) • Controls = Inputs • Indicators = Outputs • Block Diagram • Graphical Code • Data travels on wires from controls through functions to indicators • Blocks execute by Dataflow

  8. Front Panel

  9. Front Panel a A combination of controls and indicators. Controls = Inputs from the user = Source Terminals Indicators = Outputs to the user = Destinations

  10. Block Diagram

  11. Terminals When you place a control (or indicator) on the FRONT PANEL LabVIEW automatically creates a corresponding control (or indicator) terminalon the BLOCK DIAGRAM

  12. Control or Indicator Terminal? Control terminals have thick borders Indicator terminals have thin borders

  13. Nodes • Node is just a fancy word for a program execution element– • Nodes are analogous to statements, operators, functions and • subroutines in standard programming language: • The addand subtract functions represent one type of node. • A structure is an other type of node. Structures can execute code repeatedly or conditionally, similar to loops and case statements in traditional programming languages. • LabVIEW also has special nodes, called formula nodes, which are useful for evaluating mathematical formulas or expressions.

  14. Control or Indicator Terminal? Wires Node

  15. Data Types Each wire has different style or color, depending on the data type that flows through the wire:

  16. Type Checking If you connect more than one source or no source at all to a wire, LabVIEW DISAGREES with what you’re doing, and the wire will appear broken

  17. ACTION ! Let get into Action …

More Related