You are on page 1of 19

INDUSTRIAL TRAINING REPORT

on

“NI LABVIEW”
Done at
“ABES ENGINEERING COLLEGE”
by
ANUSHA BANSAL (1703231043)

Submitted to
Department of Electronics & Communication Engineering
in partial fulfilment of the requirements for the Degree of
Bachelor of Technology
in
Electronics & Communication Engineering

ABES Engineering College, Ghaziabad


Dr. A.P.J. Abdul Kalam Technical University, Lucknow
JANUARY,21
ACKNOWLEDGEMENT
Presentation, Inspiration and Motivation have always
played a key role in the success of any venture. I would
like to express my sincere thanks to Prof. Sanjay Singh,
Head of Department of Electronics and Communication
Engineering, ABES Engineering College, Ghaziabad to
encourage me to the highest peak and to provide me
the opportunity to prepare the project. I feel to
acknowledge my indebtedness and deep sense of
gratitude to my guide Mr. Devrat Tyagi whose valuable
guidance and kind supervision given to me throughout
the course which shaped the present work as its show.
I am immensely obliged to my friends for their
elevating inspiration, encouraging guidance and kind
supervision in the completion of my project. Last, but
not the least, my parents are also an important
inspiration for me. So with due regards, I express my
gratitude to them
CONTENTS

 Introduction
 Training Structure
 Data Structure in Labview
 Execution Structures in LabVIEW
 Some More Programs
 Benifits of Labview
 Applications of Labview
INTRODUCTION
LabVIEW is the acronym for Laboratory Virtual Instrument
Engineering Workbench. Lab VIEW is a graphical programming
language that uses icons instead of lines of text to create programs.
LabVIEW program called Virtual Instrument produced by National
Instruments in 1988. LabVIEW is a much loved tool of the scientist
and engineer.
Jeff Kodosky is the “Father of LabVIEW”. Lab VIEW programs are
called virtual instruments, or VIs, because their appearance and
operation imitate physical instruments, such as oscilloscopes and
multimeters etc. . After build the user interface, add code using VIs
and structures to control the front panel objects. The block diagram
contains this code.
Each VI contains three main parts:
i. Front Panel - How the user interacts with the VI.
ii. Block Diagram - The code that controls the program.
iii. Icon/Connector - Means of connecting a VI to other Vis.
The Front Panel is used to interact with the user when the program is
running. Users can control the program, change inputs, and see data
updated in real time. Stress that controls are used for inputs-
adjusting a slide control to set an alarm value, turning a switch on or
off, or stopping a program. Indicators are used as outputs.
Thermometers, lights, and other indicators indicate values from the
program. These may include data, program states, and other
information. Every front panel control or indicator has a
corresponding terminal on the block diagram. When a VI is run,
values from controls flow through the block diagram, where they are
used in the functions on the diagram, and the results are passed into
other functions or indicators.

Fig1. Front Panel

Fig2. Block Diagram


TRAINING
STRUCTURE
Summer Training program includes LabView Core I and Core
II concepts of programming.
LabView Core-1 Course Details
The LabVIEW Core 1 course teaches you programming concepts,
techniques, features, VIs, and functions you can use to create test and
measurement, data acquisition, instrument control, datalogging,
measurement analysis, and report generation applications. This course
assumes that you are familiar with Windows and that you have
experience writing algorithms in the form of flowcharts or block
diagrams.
Navigating LabView:
 Introducing LabView Environment
 Comparison with Text Based Programming
 Creating and using LabView Projects
 Parts of Vi - Front Panel - Block Diagram - Icon and Connector
Panel - Controls Pallete - Function Pallete - Documentation of Vis
Creating First Application:
 Indicators - Controls - wiring the control and indicator - building
Vis - run modes data
 Types in LabView -development of GUIs - LabView help
 Searching controls, Vis and function – implementing model of
LabView
 Understanding the dataflow programming model of LabView
 Recognizing different data types
 Tools for developing, cleaning and organizing your Vis
 Using Express Vis to build a basic VI

LabView Core-2 concepts includes


 Data acquisition using LabView - digital I/O - analog I/O – reading
data from real world – writing data to real world communication Data
Between Parallel Loops
 Implementing Design Patterns
 Creating and Distributing Application.

DATA STRUCTURES IN
LABVIEW
 String Data Type

A string is a sequence of displayable or non displayable ASCII characters. Strings


provide a platform-independent format for information and data. Some of the more
common applications of strings include the following:
 Creating simple text messages.
 Controlling instruments by sending text commands to the instrument and
returning data values in the form of either ASCII or binary strings, which you
then convert to numeric values.
 Storing numeric data to disk. To store numeric data in an ASCII file, you must
first convert numeric data to strings before writing the data to a disk file.
 Instructing or prompting the user with dialog boxes.

 Numeric Data Type


 LabVIEW represents numeric data as floating-point numbers, fixed-point
numbers, integers, unsigned integers, and complex numbers. Double and
Single precision as well as Complex numeric data is represented with the
color orange in LabVIEW. All Integer numeric data is represented with the
color blue.
 Note: The difference among the numeric data types is the number of bits they
use to store data and the data values they represent.
 Certain data types also provide extended configuration options. For example,
you can associate physical units of measure with floating-point data, including
complex numbers, and you can configure the encoding and range for fixed-
point data.

 Boolean Data Type

 LabVIEW stores Boolean data as 8-bit values. You can use a Boolean in
LabVIEW to represent a 0 or 1, or a TRUE or FALSE. If the 8-bit value is zero,
the Boolean value is FALSE. Any nonzero value represents TRUE. Common
applications for Boolean data include representing digital data and serving as
a front panel control that acts as a switch that has a mechanical action often
used to control an execution structure such as a Case structure. A Boolean
control is typically used as the conditional statement to exit a While Loop. In
LabVIEW, the color green represents Boolean data.

 Dynamic Data Type

 Most Express VIs accept and/or return the dynamic data type, which appears as a
dark blue terminal.
 Using the Convert to Dynamic Data and Convert from Dynamic Data VIs, you can
convert floating-point numeric or Boolean data of the following data types:
 1D array of waveforms
 1D array of scalars
 1D array of scalars—most recent value
 1D array of scalars—single channel
 2D array of scalars—columns are channels
 2D array of scalars—rows are channels
 Single scalar
 Single waveform

 Arrays
 Sometimes it is beneficial to group related data. Use arrays and clusters to
group related data in LabVIEW. Arrays combine data points of the same data
type into one data structure, and clusters combine data points of multiple data
types into one data structure.
 An array consists of elements and dimensions. Elements are the data points
that make up the array. A dimension is the length, height, or depth of an array.
An array can have one or more dimensions and as many as (2 31)—1 elements
per dimension, memory permitting.

 Clusters
 Clusters group data elements of mixed types.
 An example of a cluster is the LabVIEW error cluster, which combines a
Boolean value, a numeric value, and a string.
 A cluster is similar to a record or a struct in text-based programming
languages.
 Bundling several data elements into clusters eliminates wire clutter on the
block diagram and reduces the number of connector pane terminals that
subVIs need.

 Enums
 An enum (enumerated control, constant or indicator) is a combination of data
types.
 An enum represents a pair of values, a string and a numeric, where the enum
can be one of a list of values

EXECUTION STRUCTURES
IN LABVIEW
Execution structures contain sections of graphical code and control
how and when the code inside is run. The most common execution
structures are While Loops, For Loops and Case structures which we
can use to run the same section of code multiple times or to execute a
different section of code based on some condition.

LOOPS
 While Loops
Similar to a Do Loop or a Repeat-Until Loop in text-based programming languages, a
While Loop, shown in Figure 1, executes the code it contains until a condition
occurs.

(1) LabVIEW While Loop | (2) Flowchart | (3) Pseudo Code

Fig3. shows a While Loop in LabVIEW, a flowchart equivalent of the While Loop functionality,
and a pseudo code example of the functionality of the While Loop.

The While Loop is located on the Structures palette. Select the While Loop from the
palette and then use the cursor to drag a selection rectangle around the section of
the block diagram you want to repeat. When you release the mouse button, a While
Loop boundary encloses the section you selected.

PROGRAM USING WHILE LOOP


Create a VI that continuously generates random numbers between 0 and 1000 until it generates a
AIM-
number that matches a number selected by the user. Determine how many random numbers the VI generated

before the matching number.


 For Loops

A For Loop executes a subdiagram a set number of times. Figure shows a For Loop
in LabVIEW, a flowchart equivalent of the For Loop functionality, and a pseudo code
example of the functionality of the For Loop.

(1) LabVIEW For Loop | (2) Flowchart | (3) Pseudo Code

Fig4. For Loop

The For Loop is on the Structures palette. You also can place a While Loop on the
block diagram, right-click the border of the While Loop, and select Replace with For
Loop from the shortcut menu to change a While Loop to a For Loop.
The count terminal is an input terminal whose value indicates how many times to
repeat the subdiagram.

The iteration terminal is an output terminal that contains the number of completed
iterations.
The iteration count for the For Loop always starts at zero.

 Case Structures

A Case structure has two or more subdiagrams, or cases.


Only one subdiagram is visible at a time, and the structure executes only one case at
a time. An input value determines which subdiagram executes. The Case structure is
similar to switch statements or if...then...else statements in text-based programming
languages.

The case selector label at the top of the Case structure contains the name of the
selector value that corresponds to the case in the center and decrement and
increment arrows on each side.
Click the decrement and increment arrows to scroll through the available cases. You
also can click the down arrow next to the case name and select a case from the pull-
down menu.

Wire an input value, or selector, to the selector terminal to determine which case
executes.

PROGRAM USING CASE STRUCTURE


AIM- Create a VI that calculates the square root of a number the user enters. If the number is negative, display
the following message to the user: Error...Negative Number
IMAGE THRESHOLDING
ICON
SPREADSHEET

PARALLELISM
TEMPERATURE LIMIT VI

BENIFITS OF
LABVIEW

 Extensive 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 tasks performed in
parallel by multithreading

APPLICATION 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
 Currently used in firms like
Nokia,Phillips,Amazon etc. 

You might also like