Download presentation
1
Programming in LabVIEW
Dr. Maria Princz University of Debrecen, Hungary Faculty of Engineering, Basic Technical Studies Department
2
National Instruments Producer of automated test equipment and virtual instrumentation software. Headquarter: Austin, Texas Founded: 1976 Branch offices are in more than 90 countries. 2002 – NI opened first overseas manufacturing facility in Debrecen. National Instruments software products include LabVIEW.
3
LabVIEW (Laboratory Virtual Instrument Engineering Workbench)
design platform and development environment for a visual programming language introduction in 1986 LabVIEW is commonly used for data acquisition instrument control industrial automation. different platforms (including Microsoft Windows, various versions of UNIX, Linux, and Mac OS X)
4
Advantages of LabVIEW easy-to-use, interactive, graphical programming language broad engineering tool LabVIEW has built-in measurement and analysis functionality to provide students with a hands-on learning experience LabVIEW provides open connectivity to leading engineering tools such as Multisim, Mathcad, Mathematica, Excel, and more easy to learn and teacher can focus more of her/his time on teaching theory, and less on teaching programming widely used in industry
5
Text-based programming languages
Comparison LabVIEW Text-based programming languages icons lines of text dataflow programming (flow of data determines execution order) control flow programming (sequential order of program elements)
6
LabVIEW LabVIEW programs called virtual instruments (VIs).
Each VI has three components: a block diagram, a front panel and a connector panel.
7
Data Types in LabVIEW
8
Three Types of Functions
9
Debugging Techniques
10
Elements of Typical Programs
Loops While Loop For Loop Decision Making Select (simple if statment) Case Structure Functions and SubVIs 3 Types of functions (from the Function Palette) Creating SubVIs
11
Loops
12
Shift Register – Access Previous Loop Data
Shift registers transfer data from one iteration to the next:
13
How Do I Make Decisions in LabVIEW?
14
Creating SubVIs
15
LabVIEW Functions and SubVIs Operate Like Functions in Other Languages
16
Thank you for your attention.
18
Virtual Instrumentation Applications
19
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.
20
File I/O
21
Local Variables
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.