Samuel Alberg Thrysøe, PhD, PostDoc, Kontakt info: Tlf: +45 25533552.

Slides:



Advertisements
Similar presentations
A. Virtual Instruments (VIs)
Advertisements

Previously… We created a simulated temperature reader which alerts if too hot or too cold… Download the solved practice to keep in sync: Thermostat.vi.
Additional Programming Concepts MVRT 2011 – 2012 Season.
LabVIEW is a graphical programming development environment for data acquisition and control, data analysis, and data presentation. With LabVIEW you can.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 2 Virtual Instruments Read Bishop, Chapter 2. Lab #2 and Homework #2 due next week. Quiz #1 next week.
LabView Academy 5. óra. Témakörök SubVI Modularitás Icon Connector Pane.
Lesson 2 Navigating LabVIEW
Based on LabVIEW 2011 Student Edition
Welcome! Workshop 2 of 7.
Loops in LabVIEW (while,for and case)
De la Rosa-Pohl ECE 1100 Introduction to Engineering Intro to LabVIEW: Programming for Symon University of Houston Diana de la Rosa-Pohl Len Trombetta.
Introduction to LabVIEW
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Loops A.About While Loops B.About For Loops C.About Case structures D.Sequence Structures E.Formula Node You Will Learn:
1 Lesson 5 Clusters TOPICS Introduction to Clusters Cluster Functions Error Clusters.
Introduction to LabVIEW Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/5/14.
Lesson 6 A. Using graphs to display data B. About clusters C. Some cluster functions You Will Learn: graphs and clusters.
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.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 4 SubVIs  Read Bishop, Chapter 4.  Lab #4 and Homework #4 due next week.
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.
How to use LabVIEW Ihor Korolov February 2011.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Build.
Workshop 3 of 7 Welcome!. Today's Topics Review of Workshop 2 Loops While For Auto-indexing Shift registers Case Structure.
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.
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.
Design of Bio-Medical Virtual Instrumentation Tutorial 3.
LabView instrumentoinnissa, 55492, 3op Labview in instrumentation Lecturer: Heikki Ojala, room C204a
CS320n –Visual Programming More LabVIEW Control Structures.
EET 2259 Unit 7 Case Structures; Sequence Structures  Read Bishop, Sections 5.4 and 5.5.  Lab #7 and Homework #7 due next week.  Quiz #3 next week.
Samuel Alberg Thrysøe, PhD, Assistant Professor, Contact info: Phone:
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:
Lab 7 – Misc. pieces Southern Methodist University Bryan Rodriguez.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Virtual Instrumentation With LabVIEW. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components.
CS320n –Visual Programming More LabVIEW Foundations.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 9 Arrays  Read Bishop, Sections 6.1 to 6.3.  Homework #9 and Lab #9 due next week.  Quiz #5 next.
Workshop 2 of 4 Welcome!. Survey While You Wait ni.com/duke >> Recent Documents >> LabVIEW Workshop Participation Survey.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
LabVIEW Course Course 2.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.
Workshop 5 of 7 Welcome!. Today's Topics Review from Workshop 4 Modularity & subVIs Documentation File Input/Output Introduction.
Week 3 Labview exercises
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Course Learning Map Lesson # Lesson Title Lesson 3 Lesson 2 Lesson 1
Introduction to LabVIEW
Lab 2 : Structures Muhammad Zaigham Abbas Shah DIGITAL INSTRUMENTATION SYSTEMS.
Chapter 5 Structures.
Chapter 5 SubVIs.
LabVIEW 7.1 寒假短期教學課程 歐陽丞修 2006/02/06.
Structures- case, sequence, formula node
Introduction to LabVIEW
LabVIEW基礎課程(一) 參考書籍: LabVIEW for Everyone (Jeffrey Travis/Jim Kring)
EET 2259 Unit 7 Case Structures; Sequence Structures
EET 2259 Unit 2 Virtual Instruments
EET 2259 Unit 4 SubVIs Read Bishop, Chapter 4.
Presentation transcript:

Samuel Alberg Thrysøe, PhD, PostDoc, Kontakt info: Tlf:

2

3 1.Waveform Chart 2.Waveform Graph 3.XY Graph 4.Indicator Graph

4 1.Waveform Chart 2.Waveform Graph 3.XY Graph 4.Indicator Graph

5 1.Waveform Chart 2.Waveform Graph 3.XY Graph 4.Indicator Graph

6

Have one or more sub- diagrams (cases) Only one will run when the structured is called The control wired to the selector input chooses which case to run – Can be Boolean, string, integer, enum etc. Right-click on the structure border to remove/add cases 7

8

Return the T(rue) value, if the boolean input is true Returns the F(alse) value, if the boolean input is False 9

Temperature Case – Dice Throw Response – Square Root * Addition/Subtraction

11

Block 1 2.Block 2 3.They run simultaneously

Block Diagram Execution – Depends on the dataflow – Does NOT execute left to right/top to bottom A node is executed when data is present at ALL the inputs Nodes pass data to the output terminals when they are done 13

Controls dataflow in VI block diagrams Divides VI into frames – Looks like celluloid film Flow passes from frame to frame when all the nodes in the individual frame are done Drawn like loops and case structures Right-click the border to add/remove frames Two types of sequence structures: – Flat Provides better overview – Stacked Like case structures Gives the opportunity to use local sequence variables 14

15 Flat structure Stack structure

You can read from / write to controls and indicators everywhere in the sequence diagram Right-click the icon and choose: – Create  Local variable – Right-click the local variable to switch between Read Write 16

– Response Time * Time to Match 2

A formula node contains … Formulas! Y=x^2+x+1 on a normal block diagram: And as a formula node: 18

19

Use the Formula Express VI – Express -> Arithmetic & Comparison -> Formula Write the formula using the inputs, which you can label Wire the in-/outputs on the Block Diagram 20

Temp Conversion 2

22

Collections of code Low-level VI inside high-level VI – Reduces the number of Block Diagram nodes – Increases readability – Modular approach Analogue to functions in text-based languages 23

Function Pseudo Code function average (in1, in2, out) { out = (in1 + in2)/2.0; } SubVI Block Diagram Calling Program Pseudo Code main { average (in1, in2, pointavg) } Calling VI Block Diagram

2 methods – Create a blank VI and insert the wanted nodes – Mark a number of nodes in the Block Diagram and choose Edit -> Create SubVI Controls  Inputs Indicators  Outputs 25

Mark the area, to be turned into a SubVI Choose Edit  Create SubVI

Important to differentiate the SubVIs Right-click the standard-icon to the top right on the Block Diagram and choose: Edit Icon 27

Right-click the VI icon to the top right on the Front Panel and choose: Show Connector The Icon changes to connector – Edit the terminals by right-clicking the connector and choose Add/Remove Terminal – Or choose standard configurations Right-click Connector -> Patterns Connect inputs (left) with controls Connect outputs (right) with indicators 28

29

The terminals are named according to the names of the controls/indicators in SubVIs 30

Connections can be – Required – Recommended – Optional 31

The values of controls can be set to standard – Edit -> Make Current Values Default These are used, if the input is not connected 32

33 TempConversion.vi

– Choose Column DiceThrows3_SubVIs * Random LED_SubVI

35

Analogue to Structs in C++ / Matlab Combines one or more data types in a single structure – Eg boolean, strings and integers Reduceres the complexity of block diagrams Unbundle gives access to the individual elements 36

Create a cluster shell – Using same approach as case structures and loops – Controls -> Modern -> Array, Matrix & Cluster 37

Changing the order of cluster components: – Right-click the border of the cluster on the Front Panel – Choose ”Reorder Controls In Cluster…” Two boxes will appear on all the cluster components – White = Current position – Black = New position To move a component: – Choose the top space – Click on the control

39 ClusterOrder

40 Terminal labels reflect the data type Updates specific cluster object values Returns the cluster elements named

You can change between clusters and arrays IF – All cluster components have the same data type All are boolean/numeric/string etc. 41

Cluster IO Cluster Bundling *3.5.3 – Login

43