Download - Presentation on LabVIEW Basics
INTRODUCTION LabVIEW ENVIRONMENT LabVIEW PROGRAMMING CONCEPT SOFTWARE CONSTRUCTS IN
LabVIEW
PRESENTATION ON LabVIEW
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
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
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 .
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 …..
FRONT PANEL •
BLOCK DIAGR
AM
CONNECTOR PANE
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
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
FRONT PANEL
It is the user interface
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
BLOCK DIAGRAM
It contains the code
Connector Pane
Means of Passing Data to other VIThe Connector Pane terminals display
the color of data
CONNECTOR -PANE
Means of passing data to other VI
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)
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
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
LabVIEW has three paletteso Functions Paletteo Control Paletteo Tools Palette
CONTROL PALETTE
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
FUNCTION PALETTE
Invoke the function palette by VIEW-FUCNTION PALETTE or by right clicking on the block diagram
The functions are grouped into categories
TOOLS PALETTE
VARIOUS TOOLS Automatic tool selectionOperating value PositioningLabeling WiringShort-cut menuScrollingBreakpointProbeGet colorColoring
DATA TYPES Numeric StringDynamic Data type BooleanEnumRingWaveformVariantTimestamp
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)……
• FOR LOOPN=count terminali=iteration count
WHILE LOOPi=Iteration count
Stop Button =test for stop condition(by default it is stop if true)
If-Elseif ‘?’ gets value 1, T is executedif it gets value 0 ,F is executed
SWITCH CASE(MULTIPLE CASE)
? – CONDITIONAL TERMINALUPPER BOX DISPLAY THE CASE NUMBER