You are on page 1of 27

LabVIEW

Programming

By – Pratiksha Pawar
PRN No. - 120180388
Introduction

 LabVIEW stands for Laboratory Virtual Instrument Engineering


Workbench.
 LabVIEW tool was originally released in the year 1986 for
Apple Macintosh.
 The programming language that is used in LabVIEW is
graphical language, which is named as ‘G’.
 This software is predominantly used for data acquisition,
industrial automation, etc.
History

 In 1986, James Truchard and Jeff Kodosky introduced


LabVIEW, a graphical programming language that enables
user-defined testing, measurement and control systems and is
used by engineers, scientists, academics and students around
the world.
 LabVIEW was launched as a tool for scientists and engineers to
facilitate automated measurements - the aim was that it
would be a tool that would be as productive for scientists and
engineers as spreadsheets were for financial analysts.
Advantages

 Drag and drop programming  Can be easily interfaced with


 Easy modification of program NI hardware
 User Interface  can be interfaced with 3rd
party hardwares
 Multiple Operating systems
are supported (Windows ,  Cost efficient
mac, etc.)  Easy to learn
 Interface on android smart  Vast modules for engineering
phones purpose
 Can be used in automation
Disadvantages

 LabVIEW is single sourced and some companies may not like


to use a product that is single sourced and not standardised by
the industry.
 Cost of ownership – although in line with many other industry
products of a similar nature, its cost should be considered
before it is introduced.
 For those more accustomed to text programming, graphical
programming can take a little familiarisation time.
Comparison
Text Based Programming Graphical Programming
Syntax must be known to do programming Syntax is knowledge but is not required for
programming
The execution of the program is from top to The execution of the program is from left to right
bottom
To check for the error the program has to be Errors are indicated as we wire the blocks
compiled or executed
Front panel design needs extra coding or needs Front panel design is a part of programming
extra work
Text based programming is not interactive Graphical programming is highly interactive The
programming is data flow programming
This is the text based programming where the The programming is data flow programming
programming is not conventional method
Logical error finding is easy in large programs Logical error finding in large programs is quiet
complicated
Program flow is not visible Data flow is visible
It is Text based Programming It is icon based programming and wiring
Passing parameters to sub routine is difficult Passing Parameters to sub VI is easy
LabVIEW in Industries
Applications of LabVIEW in Various
Industries
 Instrumentation
 Process Control
 Electronics
 Communication
 Biomedical
 Robotics
 Image Processing
 Research
Dataflow & Datatype
 Data types are important to remember as it helps us in
determining what kind of data we have used in our program
and what else we can use.
 In LabView, the data types cannot be interconnected i.e. if a
variable is of integer type, then its value must also be the type
of integer otherwise the LabView will give you an error.
 There are some unique colors assigned to different data types,
which is focused on ensuring that they are not interconnected
to each other.
 The most common data types are Numeric, String, Arrays and
Boolean.
Numeric Function
String Function
Boolean Function
Converting Datatypes (Format to String)
Array
Cluster
Enums
Structure

 A structure is defined as a graphical representation of a loop


i.e., a loop is nothing but a set of code blocks that are
executed based on the condition match.
 In reality, structures have control over the execution flow
within a Virtual Instrument (VI).
While Loop
For loop
Event Driven
Feedback Loop
Decision Making Code
Applications
Project 1 : Rock Paper Scissors
The user selects his choice by clicking buttons. The value change of the button causes the
computer to pick a random choice The choices are compared and the result is displayed. The
computer’s choice is calculated using the random number function and evaluating the
number of predefined ranges. Rock beats Scissors, Paper beats Rock, Scissors beats Paper and
whoever become 5 first, wins the game
Project 2 : Microphone Analysis
The sound signal is
acquire by the
microphone and with
the use of the
LabVIEW we can
generate the
waveform of the
sound on the
LabVIEW screen.
Acquire sound
module is available
on the LabVIEW, this
module takes the
sound signal from the
microphone and its
output is the graph
indicator.
References

 NI.com
 The Complete LabVIEW Essentials - Code & Acquire Data Now
 The Ultimate LabView 2020 Course
 LabVIEW & MULTISIM
 ProgrammingKnowledge
 ElectronicsNotes

You might also like