Download - Presentation on LabVIEW Basics
![Page 1: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/1.jpg)
INTRODUCTION LabVIEW ENVIRONMENT LabVIEW PROGRAMMING CONCEPT SOFTWARE CONSTRUCTS IN
LabVIEW
PRESENTATION ON LabVIEW
![Page 2: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/2.jpg)
INTRODUCTION
• LabVIEW is the acronym for Laboratory Virtual Instrument Engineering Workbench
• It is a Graphical-based programming language• VI (virtual instrument) is the basic LabVIEW
element• Programming languages such as C, C++,BASIC
use functions and subroutines LabVIEW uses VI
![Page 3: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/3.jpg)
BENEFITSExtensive Interface - Even people with limited
coding experience can write programs and deploy solutions in reduced time interval.It also includes An interface to .NET framework assembly
Code Reuse and Platform independent -The G-code is independent of the operating system
Parallel Processing- Easy to code programs with multiple tasksperformed in parallel by multithreading
![Page 4: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/4.jpg)
APPLICATIONS OF LabVIEW
Machine monitoring and control :LabVIEW Real-Time module helps in preparing powerful machine monitoring and control applications
Research and Analysis : Scientist and Researchers use it biomedical ,aerospace energy industries etc .
Control Design : Real world data can be compared with theoretical data .
![Page 5: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/5.jpg)
Analogy between LabVIEW and C
• VI FUNCTION• DRAG-DROP UNITS COMMANDS• BLOCK DIAGRAM COMMAND WINDOW
• FRONT PANEL USER INTERFACE• FILE EXTENSION .VI .C• MATH-SCRIPT math.stdio and lot more …..
![Page 6: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/6.jpg)
FRONT PANEL •
BLOCK DIAGR
AM
CONNECTOR PANE
![Page 7: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/7.jpg)
LabVIEW Environment
A VI has three main parts A. Front PanelB. Block DiagramC. Connector Pane Front Panel: Interacts with the user Block Diagram: Contains the code Connector Pane: Method of connecting to other
VI’s
![Page 8: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/8.jpg)
Front Panel
• Right click controls palette pop's up• Connector pane (terminal connector) is a part
of front panel• Caption and Label both are front panel
properties• Traditional Debugging features not available
for front panel
![Page 9: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/9.jpg)
FRONT PANEL
It is the user interface
![Page 10: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/10.jpg)
Block Diagram
• Label is block diagram property• Right click functions palette pop's up• Traditional debugging features and clean up
diagram option(ctrl+u) available only for block diagram
![Page 11: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/11.jpg)
BLOCK DIAGRAM
It contains the code
![Page 12: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/12.jpg)
Connector Pane
Means of Passing Data to other VIThe Connector Pane terminals display
the color of data
![Page 13: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/13.jpg)
CONNECTOR -PANE
Means of passing data to other VI
![Page 14: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/14.jpg)
BUILT-IN-HELP
This is enabled by selecting this item from the Help pull-down menu
If the cursor is placed over the particular button, a small box pops up with its description
It is also activated from the Help pull-down menu by selecting Show Help (Ctrl+H)
![Page 15: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/15.jpg)
![Page 16: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/16.jpg)
LabVIEW Programming Concept
LabVIEW follows Data-Flow programmingThe process to determine the execution of
program is called Arbitrary-InterleavingDuring compilation the VI compiler constructs a
wired tableLabVIEW functions are polymorphic LabVIEW is not an interpreted language it is
compiled behind the scenes by LabVIEW’s execution engine
![Page 17: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/17.jpg)
LabVIEW constructs a wire table for the VIThis wire table identifies elements in the block
diagram that have inputs needed for that element to run
A LabVIEW program is executed by pressing the arrow or the Run button located in the palette along the top of the window
![Page 18: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/18.jpg)
LabVIEW has three paletteso Functions Paletteo Control Paletteo Tools Palette
![Page 19: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/19.jpg)
CONTROL PALETTE
![Page 20: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/20.jpg)
Invoke the control palette by clicking VIEW-CONTROL PALETTE or by right clicking on the front panel
The controls are grouped into categories in a tree
The sub palettes have a lock in the top left corner to keep the window visible while you are working with the controls
![Page 21: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/21.jpg)
FUNCTION PALETTE
Invoke the function palette by VIEW-FUCNTION PALETTE or by right clicking on the block diagram
The functions are grouped into categories
![Page 22: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/22.jpg)
TOOLS PALETTE
![Page 23: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/23.jpg)
VARIOUS TOOLS Automatic tool selectionOperating value PositioningLabeling WiringShort-cut menuScrollingBreakpointProbeGet colorColoring
![Page 24: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/24.jpg)
DATA TYPES Numeric StringDynamic Data type BooleanEnumRingWaveformVariantTimestamp
![Page 25: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/25.jpg)
STRUCTURES
While-loop- Executes at least once then execute the conditional terminal
For-loop- for(i=0,i<N,i++)If-Else – if (condition) body1
else body2Switch – switch (case1) (case2)……
![Page 26: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/26.jpg)
• FOR LOOPN=count terminali=iteration count
![Page 27: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/27.jpg)
WHILE LOOPi=Iteration count
Stop Button =test for stop condition(by default it is stop if true)
![Page 28: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/28.jpg)
If-Elseif ‘?’ gets value 1, T is executedif it gets value 0 ,F is executed
![Page 29: Presentation on LabVIEW Basics](https://reader035.vdocuments.net/reader035/viewer/2022062300/5561aebfd8b42afd708b553d/html5/thumbnails/29.jpg)
SWITCH CASE(MULTIPLE CASE)
? – CONDITIONAL TERMINALUPPER BOX DISPLAY THE CASE NUMBER