labview_updated
labview_updated
LABORATORY MANUAL
Prepared by,
Mrs. Archana B K
AcademicYear–2025-2026 LAB
MANUAL
Prepared by:
Mrs. Archana B K
Department of ECE
Our Vision
Our Mission
2
ProgramOutcomes(POs)
2. Problem analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of mathematics,
natural sciences, and engineering sciences.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex engineering activities with
an understanding of the limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings.
11. Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader
in a team, to manage projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.
3
Course objectives:
3. Locate various tool bars and pull-down menus for the purpose of implementing
specific functions.
Course Outcomes:
4
List of Experiments
5
Assessment Details (both CIE and SEE)
The weightage of Continuous Internal Evaluation (CIE) is 50% and for Semester End
Exam (SEE) is 50%. The minimum passing mark for the CIE is 40% of the maximum
marks (20 marks out of 50) and for the SEE minimum passing mark is 35% of the
maximum marks (18 out of 50 marks). A student shall be deemed to have satisfied the
academic requirements and earned the credits allotted to each subject/ course if the
student secures a minimum of 40% (40 marks out of 100) in the sum total of the CIE
(Continuous Internal Evaluation) and SEE (Semester End Examination) taken together.
Record should contain all the specified experiments in the syllabus and each
experiment write-up will be evaluated for 10 marks.
Total marks scored by the students are scaled down to 30 marks (60% of
maximum marks).
Department shall conduct a test of 100 marks after the completion of all the
experiments listed in the syllabus.
The suitable rubrics can be designed to evaluate each student’s performance and
6
learning ability.
The marks scored shall be scaled down to 20 marks (40% of the maximum
marks). The Sum of scaled-down marks scored in the report write-up/journal
and marks of a test is the total CIE marks scored by the student.
SEE shall be conducted jointly by the two examiners of the same institute,
examiners are appointed by the Head of the Institute.
(Rubrics) Breakup of marks and the instructions printed on the cover page of the
answer script to be strictly adhered to by the examiners. OR based on the course
requirement evaluation rubrics shall be decided jointly by examiners.
Students can pick one question (experiment) from the questions lot prepared by
the examiners jointly.
7
Table of Contents
8
INTRODUCTION
The code files have the extension “.vi”, which is an abbreviation for “Virtual
Instrument”. LabVIEW offers lots of additional Add-Ons and Toolkits.
Key features:
• Dataflow Programming:
9
Graphical Programming:
Benefits:
10
• National Instruments emphasizes that LabVIEW enables individuals
with limited coding experience to write programs and deploy test solutions
efficiently.
• The graphical programming environment allows for intuitive program
development.
• LabVIEW's design and toolsets aim to reduce the time required for
program development compared to more conventional or competing
systems.
• The introduction of a new hardware driver topology, DAQmx Base, mainly
consists of G-coded components with minimal register calls through NI
Measurement Hardware DDK functions.
• This topology provides platform-independent hardware access to numerous
data acquisition and instrumentation devices.
• The DAQmx Base driver is available for LabVIEW on Windows, Mac OS
X, and Linux platforms, offering flexibility and compatibility across
different operating systems.
11
STARTING WITH LABVIEW
i. Front Panel
Fig 1 LabVIEW interface showing Front Panel (Left) and Block Diagram
(Right)
12
1. The Front Panel:
Fig 2. Function Palette showing the Numeric Subpalette with various Numerical
function blocks
14
2. The Block Diagram:
15
Steps to Create and Run a VI in LabVIEW:
Step 1: Double Click on the LabVIEW icon on the desktop. This will
bring up an interface asking the user to Open Existing Projects or to
Create a New Project. Click on “Create Project” and then “Blank VI”
Step 2: Once the Blank VI is opened, press Ctrl+T to line up the Front
Panel (grey with grids) and Block Diagram panes adjacent to one
another. This makes working with the panels very convenient.
Step 3: Add the appropriate Controls and Indicators from the Controls
Palette in the Front Panel. This will create corresponding Input and Output
terminals in the Block Diagram.
Step 4: In the Block Diagram, right click in the white space to bring up
the Functions Palette. Select the appropriate functions or structure
blocks and place them in the Block Diagram pane.
16
Step 7: If the “Run” button shows a broken arrow, click on it to check the
error. Fix all the shown errors and then Run the Program.
Step 8: Click on the Run button at the top of either the Front Panel or
the Block Diagram. There are two options – “Run” runs the VI once.
“Run Continuously” keeps the VI running till the Stop or Pause buttons
are pressed.
Step 9: Provide the appropriate Inputs in the Controls and check the outputs
shown in the Indicators, to ensure that the VI is working properly.
17
Experiment 1:
Basic Arithmetic Operations
Components Needed:
Front Panel: Numeric Palette: Numeric Controls (2), Numeric Indicators (4) Block
Diagram: Numeric Palette: Add (1), Subtract (1), Multiply (1), Divide (1).
Algorithm:
panel.
Step 3: Numeric controls are given as inputs and numeric indicators are given as
output; they are selected by right clicking on the front panel.
Step 4: Different arithmetic operators such as addition, subtraction,
multiplication and division are generated in block diagram panel.
Step 5: Using wiring operation inputs and outputs are connected to the respective
operators in the block diagram panel.
Step 6: Input values are given in the front panel and the program is
Result: Thus, the arithmetic operations were performed and the result is
verified using lab view.
18
Block Diagram:
Sample Output:
19
Experiment 2:
Boolean Operations
Front Panel: Boolean Palette: Boolean Controls (2), Boolean Indicators (5) Block
Diagram: Boolean Palette: And (1), Or (1) , Exclusive Or (1) , Not (1)
Not And (1)
Algorithm:
diagram panel.
Step 3: To perform Boolean operation push buttons are taken as inputs and round
LED as output.
Step 4: Different Boolean operations such as AND, OR, XOR, NOT, NAND are
selected from the block diagram panel.
Step 5: Boolean inputs and outputs are wired in the block diagram
panel. Step 6: Logic values 0 & 1 are given in the front panel and the
program is executed.
20
Truth Table:
21
Block Diagram:
Sample Output:
22
Experiment 3:
Aim: To design a VI to evaluate the Sum of “N” numbers using “FOR” loop.
Components Needed:
Front Panel: Numeric Palette: Numeric Controls (1), Numeric Indicator (1) Block
Diagram: Structures Palette: For Loop (1), Numeric Palette: Add (1), Increment (1),
Numeric Constant (1)
Algorithm:
Step 2: Right click on the block diagram panel, select program, go to structures
and select a FOR loop.
Step 3: Right click on the border of the FOR loop and select add shift register,
borders are converted into shift register.
Step 4: Using wiring operations required connections are given in the block
diagram. Step 5: Inputs are given in the front panel and the program is
executed.
Result: A VI was built to evaluate the sum of the first N numbers using FOR
loop, and the results were verified with manual calculation.
23
Front Panel:
Block Diagram:
Sample Output:
24
Experiment 4:
Aim: To design a VI to evaluate the Factorial of a given number using “FOR” loop.
Components Needed:
Front Panel: Numeric Palette: Numeric Controls (1), Numeric
Indicator (1) Block Diagram: Structures Palette: For Loop (1),
Numeric Palette: Multiply (1), Increment (1), Numeric Constant (1)
Algorithm:
Step 2: Right click on the block diagram panel, select program, go to structures
and select a FOR loop.
Step 3: Right click on the border of the FOR loop and select add shift register,
borders are converted into shift register.
Step 4: Using wiring operations required connections are given in the block
diagram. Step 5: Inputs are given in the front panel and the program is
executed.
Result: A VI was built to evaluate the factorial of a given number using FOR
loop, and the results were verified with manual calculation.
25
Front Panel:
Block Diagram:
Sample Output:
26
Experiment 5:
Components Needed:
Algorithm:
Step 3: Numeric controls are given as inputs and numeric indicators are given as
output; they are selected by right clicking on the front panel.
Step 4: Arithmetic operator square is generated in block diagram panel.
Step 5: Using wiring operations required connections are given in the block
diagram. Step 6: Inputs are given in the front panel and the program is
executed.
Result: A VI was built to evaluate the square of a given number, and the results
were verified with manual calculation.
27
Front Panel:
Block Diagram:
Sample Output:
28
Experiment 6:
Components Needed:
Front Panel: Numeric Palette: Numeric Controls (1), Numeric Indicator (1) Block
Diagram: Structures Palette: While Loop (1), Numeric Palette:
Multiply (1), Increment (1), Numeric Constant (1) Comparison Palette:
Equal? (1)
Algorithm:
Step 2: Right click on the block diagram panel, select program, go to structures
and select a WHILE loop.
Step 3: Right click on the border of the WHILE loop and select add shift register,
borders are converted into shift register.
Step 4: Using wiring operations required connections are given in the block
diagram. Step 5: Inputs are given in the front panel and the program is
executed.
Result: A VI was built to evaluate the factorial of a given number using WHILE
29
loop, and the results were verified with manual calculation.
30
Front Panel:
Block Diagram:
Sample Output:
31
Experiment 7:
Block Diagram: Structures Palette: While Loop (1), Numeric Palette: Increment (1),
Quotient & Remainder (1), Comparison Palette: Equal? (1), Equal to 0? (1), Select
(1) Array Palette: Array Size (1), Index Array (1), Sort 1D Array (1)
Algorithm:
Step 2: Right click on the block diagram panel, select program, go to structures
and select a WHILE loop.
Step 3: Create an array index in the while loop and its control. Go to array and
select, array size, sort 1D array. Create numeric controls to it.
Step 4: Select quotient remainder from numeric control; equals, equal to 0 and
increment operator from comparison.
Step 6: Using wiring operations required connections are given in the block
diagram.
Step 7: Inputs are given in the front panel and the program is executed.
32
Front Panel:
Block Diagram:
33
Sample Output:
34
Experiment 8:
Components Needed:
Algorithm:
Step 2: Right click on the front panel →modern →array→ array matrix→
numeric control. Step 3: Create two numeric indicators in the front panel for
maximum value and minimum value.
Result: A VI was built to find and display the Maximum and Minimum values in
the array.
35
Front Panel:
Block Diagram:
Sample Output:
36
Experiment 9:
Aim: To Build a Virtual Instrument that simulates heating and cooling system. The
system must be able to be controlled manually or automatically.
Components Needed:
Front Panel: Boolean Palette: Boolean Push buttons (3), Boolean LEDs (4)
Thermometer (1)
Block Diagram: Boolean constant, Comparison (greater than or equal to,
lesser than), numeric constant, In Range and Coerce (1), Case Structure
(1), AND gate (1), NOT gate (2).
Algorithm:
Step 2: Create a three push buttons for Manual, Heater and Cooler and 3 LEDs
for Manual, Heater, Cooler and Normal.
Step 4: In the Block diagram open a case structure and connect the manual
button as input to the case.
Result: A VI was built to simulate a heating and cooling system. The System was
designed to be capable of being controlled automatically or manually.
Front Panel:
38
Block Diagram:
39
Sample Output:
40
Experiment 10:
node).
Components Needed:
Algorithm:
Step 2: Create Input Controls and Output indicators in Front Panel. Add
Formula Node in Block Diagram.
Step 4: Write the Equations in Formula Node, linking Local Input and Output
and Indicators.
Result: A VI was built to simulate a simple calculator using Formula Node. The
results were verified using manual calculations.
41
Front Panel:
Block Diagram:
Sample Output:
42
Experiment 11:
Components Needed:
Front Panel: Numeric – Tank (1), Knob (1), Numeric Indicator (1), Boolean
indicator (2) Block Diagram: Comparison – greater than or equal to (1), less
than (1)
Algorithm:
Step 2: Create a numeric indicator to indicate water level and two Boolean
round LEDs to indicate water level as more or less.
Step 3: When the knob is rotated, the water level in the tank
indicator.
Step 5: When the water level crosses 8, Water level more LED
glows.
Step 6: When the water level is less than 2, water level less
LED glows.
Result: A VI was built to simulate a simple calculator using Formula Node. The results
43
were verified using manual calculations.
Front Panel:
Block Diagram:
44
Sample Output :
45
46
Experiment 12:
Components Needed:
Front Panel: Numeric Palette: Numeric Control (1), Numeric Indicators (2) Block
Diagram: Structures Palette: Formula Node (1), Numeric Palette: Math Constant: pi
(1)
Algorithm:
Step 2: Create Input Control and Output indicators in Front Panel. Add Formula
Node in Block Diagram.
Step 4: Write the Equations in Formula Node, linking Local Input and Output
and Indicators.
Result: A VI was built to calculate the Area and Perimeter for a Circle, given the
Radius as Input. The results were verified with manual calculations.
47
Front Panel:
Block Diagram:
Sample Output:
48