How to use LabVIEW Ihor Korolov February 2011.

Slides:



Advertisements
Similar presentations
LabVIEW for Physicists 24 th October 2002 Ben Jeffery.
Advertisements

LabVIEW Crash Course Presented by:.
LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
Lesson 2 Navigating LabVIEW
LabVIEW and G Graphical Programming Language By: Ramtin Raji Kermani.
Diego Torres LabVIEW Student Ambassador Fall 2011 ITESM CQ
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Introduction to LabVIEW
Introduction to LabVIEW 8.5
Hands-On Material From National Instruments Introduction to LabVIEW Electrical Wiring Feng-Ju Hsieh ENGR 100 Section C.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
National Instruments Confidential. 2 LabVIEW Development Tips and Tricks Revealed Carl Ljungholm - LabVIEW Product Support Engineer Travis Hailey - LabVIEW.
PC Applications Course LabVIEW: Laboratory Virtual Instrument Engineering Workbench Graphical Programming Easy to use Faster Development Time.
Laboratory 5: Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report / Presentation Closing.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
ME 411/511Prof. Sailor Data Acquisition & LabView Lecture goals… –Learn the basics of how to use and modify LabView Virtual Instruments –Become familiar.
LabVIEW: Tips & Tricks Ihor Korolov March 2011.
Virtual Instrumentation With LabVIEW
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Lecture 13LabVIEW and GPIB LabVIEW (National Instruments) –Graphical program language –Widely used in academia (lab) and industry (R&D) General Purpose.
Infinity-project.org Engineering education for today’s classroom The Infinity Project SM LabVIEW for The Infinity Project.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Virtual Instrumentation With LabVIEW. Section I LabVIEW terms Components of a LabVIEW application LabVIEW programming tools Creating an application in.
Tips and Tricks to Speed LabVIEW Development Useful Nuggets to Save You Time ni.com/labviewzone.
LabView Basics The Fighting Pi Controls Group. About LabView LabView is a highly adaptable programming GUI (Graphic User Interface) LabView compiles the.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
MCEN 371 – Mechanical Engineering Lab Chapter 6: LabVIEW Part 1: Introduction.
Chapter 1 LabVIEW Basics. Features > Uses Graphic Symbols > Created by National Instruments > Virtual Instruments (VIs) > Extensive Library of VIs.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs LabVIEW Programs Are Called Virtual Instruments (VIs) Block Diagram.
LabVIEW an Introduction
Introduction to LabVIEW
Each VI has 2 Windows Front Panel User Interface (UI) –Controls = Inputs –Indicators = Outputs Block Diagram Graphical Code –Data travels on wires from.
1 LabVIEW DSP Test Integration Toolkit. 2 Agenda LabVIEW Fundamentals Integrating LabVIEW and Code Composer Studio TM (CCS) Example Use Case Additional.
LabVIEW in 3 Hours. What is Test & Measurement? Keypad Functionality Keypad Functionality LCD Testing LCD Testing Sound Quality Sound Quality Acoustic.
Part I MVRT 2011 – 2012 Season Introduction to LabVIEW.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
Creating, Editing, & Debugging a VI A.How to Create VIs B.How to Edit VIs C.How to Debug VIs You Will Learn:
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 3 Editing and Debugging VIs  Read Bishop, Chapter 3.  Lab #3 and Homework #3 due next week.  Quiz.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Introduction to LabVIEW 8.5
An Overview of LabVIEW by: The Software User-Interface Group!
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
Workshop 2 of 4 Welcome!. Survey While You Wait ni.com/duke >> Recent Documents >> LabVIEW Workshop Participation Survey.
3-Hour Hands-On Introduction to LabVIEW. 2 Course Goals Become comfortable with the LabVIEW environment and data flow execution Use LabVIEW to solve problems.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Introduction to LabVIEW
A Presentation on Mr. SAJID NAEEM M.SC – Electronics (UOP) PG-DEP (C-DAC)
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report/Presentation Closing.
LabVIEW Course Course 1.
Wednesday NI Vision Sessions
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
EET 2259 Unit 3 Editing and Debugging VIs
הודעות-שיעור1 שי שרעבי חדר 201
Lesson 2: Introduction to Control programming using Labview
הודעות ריענון מהיר והרחבות Charts & Graphs גרף XY בניית מחולל אותות
Chapter 5 SubVIs.
LabVIEW 7.1 寒假短期教學課程 歐陽丞修 2006/02/06.
Introduction to LabVIEW
Structures- case, sequence, formula node
Introduction to LabVIEW
EET 2259 Unit 3 Editing and Debugging VIs
Presentation transcript:

How to use LabVIEW Ihor Korolov February 2011

Contents What is LabVIEW? How does LabVIEW work? Block diagram Front panel Palettes Data flow programming. Functions. LabVIEW Programming Structures (Formula, Case structure …) What is a subVI? Using a VI as a subVI. How to use LabVIEW with data acquisition (DAQ) software Measurements and automation explorer (MAX) I. Korolov: How to use LabVIEW

What is LabVIEW? LabVIEW – Laboratory Virtual Instrument Engineering Workbench is a graphical (visual) programming from National istruments (NI). The purpose is automating the usage of processing and measuring equipment in any laboratory setup. Originally released for the Apple Macintosh in 1986, the graphical language at the heart of LabVIEW is called "G". C language Dataflow programming language uses icons instead of lines of text to create programs The graphical approach of LabVIEW allows non-programmers to build programs by dragging and dropping virtual representations of lab equipment with which they are already familiar. Cross-platform I. Korolov: How to use LabVIEW

LabVIEW Professional Development System Price Desktop PC LabVIEW Professional Development System Laptop PDA http://www.ni.com/labview/buy/ I. Korolov: How to use LabVIEW

LabVIEW www.ni.com I. Korolov: How to use LabVIEW PXI Modular Instrumentation Desktop PC Laptop PC PDA High-Speed Digitizers High-Resolution Digitizers and DMMs Multifunction Data Acquisition Dynamic Signal Acquisition Instrument Control Digital I/O Counter/ Timers Machine Vision Motion Control Distributed I/O and Embedded Control Signal Conditioning and Switching Unit Under Test www.ni.com I. Korolov: How to use LabVIEW

How does LabVIEW work? I. Korolov: How to use LabVIEW

How does LabVIEW work? I. Korolov: How to use LabVIEW

How does LabVIEW work? Front panel Block Diagram Ctrl+E Block diagram toolbar Continuous run Clean Up diagram Pause Run Stop Reorder objects Debugging features I. Korolov: How to use LabVIEW

LabVIEW Front panel How does LabVIEW work? Used to display Controls or Indicators I. Korolov: How to use LabVIEW

- Actual program - Invisible to user How does LabVIEW work? LabVIEW Block Diagram - Actual program - Invisible to user - Read left to right I. Korolov: How to use LabVIEW Example LP

How does LabVIEW work? Palettes Front panel Block Diagram Controls palette Tools palette I. Korolov: How to use LabVIEW

Automatic Selection Tool How does LabVIEW work? 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 I. Korolov: How to use LabVIEW Example

Data flow programming I. Korolov: How to use LabVIEW

Data flow programming If you put a control (or indicator) on the front panel LabVIEW automatically creates a corresponding control (or indicator) terminal on theBlock Diagram I. Korolov: How to use LabVIEW Example FP TB

Data flow programming. Functions. View as icon “Add” function Click and Ctrl+H wire I. Korolov: How to use LabVIEW Example2,3

Data flow programming. Functions. I. Korolov: How to use LabVIEW Example

Some of basic wires used in block diagrams Data flow programming. Wires Some of basic wires used in block diagrams Data type Color Floating-point orange Integer blue Boolean green String Pink/purple Dynamic Dark blue Broken wires The wire connects more than one data source You have connected two terminals of different types I. Korolov: How to use LabVIEW

Data flow programming. Functions I. Korolov: How to use LabVIEW Example

Data flow programming. Functions Polymorphism Array Arithmetic Operations I. Korolov: How to use LabVIEW

Programming structures I. Korolov: How to use LabVIEW

For loop LabVIEW Programming Structures From 0 to N-1 Right click I. Korolov: How to use LabVIEW Example For Loop

While loop LabVIEW Programming Structures Auto-indexed tunnel Loop tunnel Shift register Timed While loop Repeats the sub diagram inside the loop until the conditional terminal receives a particular Boolean value I. Korolov: How to use LabVIEW Example WhileL

Case structure LabVIEW Programming Structures I. Korolov: How to use LabVIEW Example

Flat sequence structure LabVIEW Programming Structures Flat sequence structure 1 2 3 Stacked sequence structure 4 Sequence structures are used to ensure a subdiagram executes after or before another subdiagram 3 2 1 I. Korolov: How to use LabVIEW

LabVIEW Programming Structures Local variables Global variables Use global variables to access and pass data among several VIs Use local variables to read or write to one of the controls or indicators on the front panel of a VI. I. Korolov: How to use LabVIEW Example

LabVIEW: Wait statements Wait (ms) function Wait Until Next ms Multiple function Pre-loop code Loop code I. Korolov: How to use LabVIEW

Waveform Graph – Plot an array of numbers against their indices LabVIEW: Graphs Waveform Graph – Plot an array of numbers against their indices XY Graph – Plot one array against another Digital Waveform Graph – Plot bits from binary data Graph properties I. Korolov: How to use LabVIEW Example Graph

Write/Read LabVIEW Measurements file LabVIEW: File I/O Write to a File Read from a File Write/Read LabVIEW Measurements file Writing to LVM file Reading from LVM file I. Korolov: How to use LabVIEW Example File I/O

SubVI I. Korolov: How to use LabVIEW

What is a subVI? Using a VI as a subVI. A SubVi is a stand VI that can be called by other VI and it is similar to an individual function. Advantages Modular Easier to debug Don’t have to recreate code Require less memory I. Korolov: How to use LabVIEW

What is a subVI? Using a VI as a subVI. How to create a subVI? A SubVi is a stand VI that can be called by other VI and it is similar to an individual function. Create/Edit the Icon Create the Connector Assign Terminals to controls and indicators Add description (optional) Save the VI Insert the VI into a Top Level VI 1 Create/Edit the Icon Right-click on the icon in the block diagram or front panel I. Korolov: How to use LabVIEW

What is a subVI? Using a VI as a subVI. 2 Create the Connector Right click on the icon pane (front panel only) 3 Assign Terminals to controls and indicators r 4 Documentation (VI properties) 5. Save the VI 6. Insert the VI into a Top Level VI I. Korolov: How to use LabVIEW Example

Data acquisition I. Korolov: How to use LabVIEW

Sensors How to use LabVIEW with DAQ software Data acquisition (DAQ) Fundamental task of a DAQ system is to measure or generate real-world physical signals Data acquisition (DAQ) Connecting Signals Simple DAQ application DAQ device Sensors Terminal Block I. Korolov: How to use LabVIEW

Measurements and automation explorer (MAX) MAX is the primary configuration and testing utility that is available for the DAQ device Measurement & Automation Explorer (MAX) provides access to all your NI DAQ, GPIB, IMAQ, IVI, Motion, VISA, and VXI devices. Here can configure your NI hardware and software, add new channels, interfaces, and virtual instruments, execute system diagnostics, and view the devices and instruments connected to your system. Configuration tree Configuration View Task list I. Korolov: How to use LabVIEW MAX

Specific VIs for performing: Analog Input Analog Output Digital I/O How to use LabVIEW with DAQ software Traditional NI-DAQ Specific VIs for performing: Analog Input Analog Output Digital I/O Counter operations NI-DAQmx Next generation driver: VIs for performing a task One set of VIs for all measurement types DAQ assistant Measurement type can be: Analog Input Analog Output Counter Input Counter Output Digital I/O I. Korolov: How to use LabVIEW

How to use LabVIEW with DAQ software Ni USB 6501 DAQ assistant Quickly and easily program the DAQ device Creates a local task Most applications can use the DAQ Assistant I. Korolov: How to use LabVIEW Example DAQ

How to use LabVIEW ? Tips and tricks (3.03.2011) GPIB Communication and Configuration Virtual Instrument Software Architecture (VISA) Serial Port Communication Instrument Drivers (How to create and use *.dll in LabVIEW) Application control (property node and invoke node) How to execute a system command Remote panel connection manager and Web publishing tool … I. Korolov: How to use LabVIEW

Köszönöm for your attention! I. Korolov: How to use LabVIEW